Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
龚小红
oto
Commits
fccdce50
Commit
fccdce50
authored
Jul 09, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了我的名片基本信息、服务案例、精选产品的测试用例
parent
1e1a4e4d
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
572 additions
and
1 deletion
+572
-1
GoodMajor.java
src/test/java/com/kjj/bean/card/GoodMajor.java
+11
-0
WechatCard.java
src/test/java/com/kjj/bean/card/WechatCard.java
+33
-0
PersonCard.java
src/test/java/com/kjj/cases/basics/card/PersonCard.java
+508
-0
Treasure.java
src/test/java/com/kjj/cases/live/treasure/Treasure.java
+1
-1
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+9
-0
JsonUtil.java
src/test/java/com/kjj/utils/JsonUtil.java
+5
-0
wechatTestNG.xml
src/test/wechatTestNG.xml
+5
-0
No files found.
src/test/java/com/kjj/bean/card/GoodMajor.java
0 → 100644
View file @
fccdce50
package
com
.
kjj
.
bean
.
card
;
import
lombok.Data
;
@Data
public
class
GoodMajor
{
String
code
;
String
desc
;
boolean
choose
;
String
type
;
}
src/test/java/com/kjj/bean/card/WechatCard.java
0 → 100644
View file @
fccdce50
package
com
.
kjj
.
bean
.
card
;
import
lombok.Data
;
@Data
public
class
WechatCard
{
String
avatar
;
String
address
;
String
addressLocation
;
int
avatarStyle
;
String
backgroundAvatar
;
String
backgroundAvatarThumbnail
;
int
companyId
;
String
companyName
;
String
companyLogo
;
String
jobPost
;
String
normalAvatar
;
String
normalAvatarThumbnail
;
String
parentCompanyName
;
String
professionalAvatar
;
String
professionalAvatarThumbnail
;
String
phoneNumber
;
String
screenshotUrl
;
String
sellerName
;
String
s_cid
;
String
sellerId
;
String
wechatNumber
;
String
wechatQrCode
;
int
userVersion
;
boolean
self
;
boolean
vip
;
int
tradeType
;
}
src/test/java/com/kjj/cases/basics/card/PersonCard.java
0 → 100644
View file @
fccdce50
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/treasure/Treasure.java
View file @
fccdce50
...
@@ -146,7 +146,7 @@ public class Treasure implements Authorization {
...
@@ -146,7 +146,7 @@ public class Treasure implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
simpleParam
,
BasicConfig
.
MOBILE_simple
,
"未登录查询分享人头像昵称失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
simpleParam
,
BasicConfig
.
MOBILE_simple
,
"未登录查询分享人头像昵称失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"已登录查询
分享人头像昵称
"
,
priority
=
10
)
@Test
(
description
=
"已登录查询
助力信息
"
,
priority
=
10
)
public
void
已登录查询分享人头像昵称
()
{
public
void
已登录查询分享人头像昵称
()
{
visitorAuth2
();
visitorAuth2
();
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
fccdce50
...
@@ -573,6 +573,15 @@ public class BasicConfig {
...
@@ -573,6 +573,15 @@ public class BasicConfig {
public
static
final
String
SELLERCARD_GETSELLERCARDSTYLE
=
HOST
+
"/kjy/mp/sellerConfig/getSellerCardStyle"
;
public
static
final
String
SELLERCARD_GETSELLERCARDSTYLE
=
HOST
+
"/kjy/mp/sellerConfig/getSellerCardStyle"
;
public
static
final
String
SELLERCARD_TOPOFCONTENT
=
HOST
+
"/kjy/mp/sellerCardV5/topOfContent"
;
public
static
final
String
SELLERCARD_TOPOFCONTENT
=
HOST
+
"/kjy/mp/sellerCardV5/topOfContent"
;
public
static
final
String
SELLERCARD_BOTTOMOFCONTENT
=
HOST
+
"/kjy/mp/sellerCardV5/bottomOfContent"
;
public
static
final
String
SELLERCARD_BOTTOMOFCONTENT
=
HOST
+
"/kjy/mp/sellerCardV5/bottomOfContent"
;
public
static
final
String
SELLERCARD_GETPERSONINTROTEMPLATE
=
HOST
+
"/kjy/mp/sellerCardV5/getPersonalIntroTemplate"
;
public
static
final
String
SELLERCARD_UPDATESPLENDINGIMAGE
=
HOST
+
"/kjy/mp/sellerCard/updateSplendidImage"
;
public
static
final
String
SELLERCARD_GETSPLENDINGIMAGE
=
HOST
+
"/kjy/mp/sellerCard/getSellerSplendidImage"
;
public
static
final
String
SELLERCARD_EDITDELLERCASE
=
HOST
+
"/kjy/mp/sellerCard/editSellerCase"
;
public
static
final
String
SELLERCARD_UPDATESHOWSTATUSFORCASE
=
HOST
+
"/kjy/mp/sellerCardV5/updateShowStatusForCase"
;
public
static
final
String
SELLERCARD_DELETESELLERCASE
=
HOST
+
"/kjy/mp/sellerCard/deleteSellerCase"
;
public
static
final
String
SELLERCARD_ADDORUPDATEPRODUCT
=
HOST
+
"/kjy/mp/sellerCardV5/addOrUpdateProduct"
;
public
static
final
String
SELLERCARD_UPDATESHOWSTATUSFORPRODUCT
=
HOST
+
"/kjy/mp/sellerCardV5/updateShowStatusForProduct"
;
public
static
final
String
SELLERCARD_DELETEPRODUCT
=
HOST
+
"/kjy/mp/sellerCardV5/deleteProduct"
;
...
...
src/test/java/com/kjj/utils/JsonUtil.java
View file @
fccdce50
...
@@ -73,4 +73,9 @@ public class JsonUtil {
...
@@ -73,4 +73,9 @@ public class JsonUtil {
return
JSON
.
parseArray
(
str
,
tClass
);
return
JSON
.
parseArray
(
str
,
tClass
);
}
}
public
static
<
T
>
List
<
T
>
parseResponsePathToListBean
(
Response
response
,
String
path
,
Class
<
T
>
tClass
){
Object
data
=
response
.
jsonPath
().
getJsonObject
(
path
);
String
str
=
new
JsonBuilder
(
data
).
toString
();
return
JSON
.
parseArray
(
str
,
tClass
);
}
}
}
src/test/wechatTestNG.xml
View file @
fccdce50
...
@@ -51,6 +51,11 @@
...
@@ -51,6 +51,11 @@
<class
name=
"com.kjj.cases.basics.GreetingCard"
/>
<class
name=
"com.kjj.cases.basics.GreetingCard"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"名片"
>
<classes>
<class
name=
"com.kjj.cases.basics.card.PersonCard"
/>
</classes>
</test>
<test
preserve-order=
"true"
name =
"种草素材"
>
<test
preserve-order=
"true"
name =
"种草素材"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.assistant.RecommendMaterial"
/>
<class
name=
"com.kjj.cases.assistant.RecommendMaterial"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment