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
3dfa276f
Commit
3dfa276f
authored
Jul 21, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口地址修改
parent
f08e580a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+1
-3
No files found.
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
3dfa276f
...
...
@@ -228,8 +228,6 @@ public class LiveLater implements Authorization {
System
.
out
.
println
(
response
.
body
().
asString
());
int
visitorInviteNum
=
response
.
jsonPath
().
getInt
(
"data.visitorInviteNum"
);
Assert
.
assertTrue
(
visitorInviteNum
==
1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"访客邀请数不对"
,
response
.
body
().
asString
()));
String
remarkName
=
response
.
jsonPath
().
getString
(
"data.remarkName"
);
Assert
.
assertEquals
(
remarkName
,
"访客A"
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"访客备注名不正确"
,
response
.
body
().
asString
()));
int
speakNum
=
response
.
jsonPath
().
getInt
(
"data.speakNum"
);
Assert
.
assertTrue
(
speakNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"没有评论数"
,
response
.
body
().
asString
()));
Object
questions
=
response
.
jsonPath
().
getJsonObject
(
"data.questions"
);
...
...
@@ -257,7 +255,7 @@ public class LiveLater implements Authorization {
params
.
put
(
"liveUserId"
,
this
.
liveUserId
.
get
(
1
).
getLiveUserId
());
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_getClueDetail
);
System
.
out
.
println
(
response
.
body
().
asString
());
int
answerRecords
=
response
.
jsonPath
().
getIn
t
(
"data.answerRecords"
);
Object
answerRecords
=
response
.
jsonPath
().
getJsonObjec
t
(
"data.answerRecords"
);
Assert
.
assertNotNull
(
answerRecords
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"答题线索为null"
,
response
.
body
().
asString
()));
}
...
...
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