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
b181f403
Commit
b181f403
authored
Apr 16, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dfd9db78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+3
-3
No files found.
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
b181f403
...
...
@@ -456,7 +456,7 @@ public class Lottery implements AdminAuthorization {
Response
luckDetailRes
=
network
.
getResponse
(
luckDetailParam
,
BasicConfig
.
ANCHOR_luckDetail
);
try
{
Boolean
hasLuckTask
=
luckDetailRes
.
jsonPath
().
getBoolean
(
"data.hasLuckTask"
);
Assert
.
assertTrue
(
hasLuckTask
,
network
.
message
(
luckDetailParam
,
BasicConfig
.
USER_result
,
"查询任务失败"
,
luckDetailRes
.
body
().
asString
()));
Assert
.
assertTrue
(
hasLuckTask
,
network
.
message
(
luckDetailParam
,
BasicConfig
.
ANCHOR_luckDetail
,
"查询任务失败"
,
luckDetailRes
.
body
().
asString
()));
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"result = "
+
JSON
.
toJSONString
(
luckDetailRes
.
jsonPath
().
get
()));
throw
e
;
...
...
@@ -630,7 +630,7 @@ public class Lottery implements AdminAuthorization {
break
;
}
}
Assert
.
assertTrue
(
result
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"
获取抽奖码
列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
Assert
.
assertTrue
(
result
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"
查询访客B的抽奖券
列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
}
...
...
@@ -643,7 +643,7 @@ public class Lottery implements AdminAuthorization {
Response
myCountRes
=
network
.
getResponse
(
myCountParam
,
BasicConfig
.
USER_myCount
);
long
data
=
myCountRes
.
jsonPath
().
getLong
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
myCountParam
,
BasicConfig
.
USER_myCount
,
"获取抽奖码数量失败"
,
myCountRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
myCountParam
,
BasicConfig
.
USER_myCount
,
"获取
访客B
抽奖码数量失败"
,
myCountRes
.
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