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
300ec162
Commit
300ec162
authored
Nov 03, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除企业后台的自动化测试
parent
2d6ca234
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
PersonCard.java
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
+4
-1
liveTestNG.xml
src/test/liveTestNG.xml
+0
-5
No files found.
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
View file @
300ec162
...
...
@@ -65,10 +65,13 @@ public class PersonCard implements Authorization {
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
WechatCard
card
=
JsonUtil
.
parseResponseToBean
(
response
,
WechatCard
.
class
);
System
.
out
.
println
(
response
.
body
().
asString
());
String
screenshotUrl
=
response
.
jsonPath
().
getString
(
"data.screenshotUrl"
);
String
avatar
=
response
.
jsonPath
().
getString
(
"data.screenshotUrl"
);
scid
=
response
.
jsonPath
().
getString
(
"data.scid"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
SELLERCARD_topOfDetail
,
"接口返回失败状态"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
screenshotUrl
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
avatar
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getSellerName
(),
"吉吉"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getJobPost
(),
"嘿嘿嘿"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getPhoneNumber
(),
"13012341234"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
...
...
src/test/liveTestNG.xml
View file @
300ec162
...
...
@@ -277,10 +277,5 @@
<class
name=
"com.kjj.cases.live.treasure.GoldenEgg"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"企业后台后台配置"
>
<classes>
<class
name=
"com.kjj.cases.live.Corp.ManageCorp"
/>
</classes>
</test>
</suite>
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