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
b1e2bf56
Commit
b1e2bf56
authored
Jul 15, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了我的名片、文章中名片的测试用例
parent
cfd1a190
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
27 deletions
+3
-27
WechatCard.java
src/test/java/com/kjj/bean/card/WechatCard.java
+0
-17
ArticalPersonCard.java
...est/java/com/kjj/cases/basics/card/ArticalPersonCard.java
+2
-0
PersonCard.java
src/test/java/com/kjj/cases/basics/card/PersonCard.java
+1
-0
wechatTestNG.xml
src/test/wechatTestNG.xml
+0
-10
No files found.
src/test/java/com/kjj/bean/card/WechatCard.java
View file @
b1e2bf56
...
...
@@ -8,26 +8,9 @@ public class WechatCard {
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/ArticalPersonCard.java
View file @
b1e2bf56
...
...
@@ -101,6 +101,7 @@ public class ArticalPersonCard implements Authorization {
@Test
(
description
=
"代理人_头部名片详情"
,
priority
=
7
)
public
void
代理人
_
头部名片详情
(){
//获取加密的销售ID
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
USER_INFO
);
sid
=
response
.
jsonPath
().
getString
(
"data.encodeSellerId"
);
String
sellerName
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
...
...
@@ -253,6 +254,7 @@ public class ArticalPersonCard implements Authorization {
params
.
put
(
"scId"
,
scId
);
response
=
network
.
getResponse
(
params
,
HASALREADYLIKE
);
int
favourTimesNew
=
response
.
jsonPath
().
getInt
(
"data.favourTimes"
);
favourResult
=
response
.
jsonPath
().
getBoolean
(
"data.favourResult"
);
System
.
out
.
println
(
params
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertTrue
(
favourResult
,
network
.
message
(
params
,
HASALREADYLIKE
,
"接口返回失败"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/basics/card/PersonCard.java
View file @
b1e2bf56
...
...
@@ -842,6 +842,7 @@ public class PersonCard implements Authorization {
@Test
(
description
=
"获取代理人名片详情"
,
priority
=
37
)
//priorty 方法执行优先级
public
void
获取代理人名片详情
()
{
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
SELLERCARD_READDETAIL
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
...
...
src/test/wechatTestNG.xml
View file @
b1e2bf56
...
...
@@ -16,21 +16,11 @@
<class
name=
"com.kjj.cases.basics.Pay"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="名片">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.basics.SellerCard"/>-->
<!-- </classes>-->
<!-- </test>-->
<test
preserve-order=
"true"
name=
"上传"
>
<classes>
<class
name=
"com.kjj.cases.basics.Upload"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="文章">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.basics.Article"/>-->
<!-- </classes>-->
<!-- </test>-->
<test
preserve-order=
"true"
name=
"发圈"
>
<classes>
<class
name=
"com.kjj.cases.basics.CircleFriends"
/>
...
...
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