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
ccd2e2db
Commit
ccd2e2db
authored
Sep 16, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0916直播接口报错fix
parent
caf6e3c8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
24 deletions
+78
-24
FlipCard.java
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
+1
-1
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+1
-0
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+2
-3
SecondKill.java
src/test/java/com/kjj/cases/live/secondKill/SecondKill.java
+1
-1
Treasure.java
src/test/java/com/kjj/cases/live/treasure/Treasure.java
+73
-19
No files found.
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
View file @
ccd2e2db
...
...
@@ -177,6 +177,7 @@ public class FlipCard implements Authorization {
}
/*
@Test(description = "已登录查询分享人头像昵称", priority = 11)
public void 已登录查询分享人头像昵称() {
...
...
@@ -201,7 +202,6 @@ public class FlipCard implements Authorization {
}
/*
@Test(description = "访客H获得助力", priority = 12)
public void 访客H获得助力() {
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
ccd2e2db
...
...
@@ -1886,6 +1886,7 @@ public class SaveLive implements Authorization {
Params
.
put
(
"redAmount"
,
30
);
Params
.
put
(
"redProbability"
,
100
);
Params
.
put
(
"ruleType"
,
1
);
Params
.
put
(
"showType"
,
0
);
// 取消红包封面最高66元标签展示
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_redSaveOrUpdate
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
ccd2e2db
...
...
@@ -361,9 +361,8 @@ public class Lottery implements Authorization {
Assert
.
assertTrue
(
firstGet
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"非第1次获取好运红包"
,
response
.
body
().
asString
()));
int
redNum
=
response
.
jsonPath
().
getInt
(
"data.redNum"
);
Assert
.
assertTrue
(
redNum
>
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"红包个数不对"
,
response
.
body
().
asString
()));
int
showtype
=
response
.
jsonPath
().
getInt
(
"data.showType"
);
Assert
.
assertEquals
(
showtype
,
0
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"红包封面图标签展示状态不对"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客A分享好运红包给访客B"
,
priority
=
27
)
...
...
src/test/java/com/kjj/cases/live/secondKill/SecondKill.java
View file @
ccd2e2db
...
...
@@ -205,7 +205,7 @@ public class SecondKill implements Authorization {
Response
downgradeGoodsRes
=
network
.
getResponse
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_downgradeGoodsFirst
);
try
{
String
confId
=
downgradeGoodsRes
.
jsonPath
().
getString
(
"data.confId"
);
Assert
.
assertEquals
(
confId
,
ConfSecondKill
.
skId
First
,
network
.
message
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_goodsFirst
,
"当前秒杀商品配置ID错误"
,
downgradeGoodsRes
.
body
().
asString
()));
Assert
.
assertEquals
(
confId
,
ConfSecondKill
.
skId
Second
,
network
.
message
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_goodsFirst
,
"当前秒杀商品配置ID错误"
,
downgradeGoodsRes
.
body
().
asString
()));
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_goodsFirst
,
"未获取到数据"
,
downgradeGoodsRes
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/live/treasure/Treasure.java
View file @
ccd2e2db
This diff is collapsed.
Click to expand it.
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