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
5ca9cb95
Commit
5ca9cb95
authored
Sep 16, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210916-xmc_fix' into 'master'
0916直播接口报错fix+裂变宝箱改动合入 See merge request test-group/kejiji!120
parents
caf6e3c8
ccd2e2db
Changes
5
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 @
5ca9cb95
...
@@ -177,6 +177,7 @@ public class FlipCard implements Authorization {
...
@@ -177,6 +177,7 @@ public class FlipCard implements Authorization {
}
}
/*
@Test(description = "已登录查询分享人头像昵称", priority = 11)
@Test(description = "已登录查询分享人头像昵称", priority = 11)
public void 已登录查询分享人头像昵称() {
public void 已登录查询分享人头像昵称() {
...
@@ -201,7 +202,6 @@ public class FlipCard implements Authorization {
...
@@ -201,7 +202,6 @@ public class FlipCard implements Authorization {
}
}
/*
@Test(description = "访客H获得助力", priority = 12)
@Test(description = "访客H获得助力", priority = 12)
public void 访客H获得助力() {
public void 访客H获得助力() {
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
5ca9cb95
...
@@ -1886,6 +1886,7 @@ public class SaveLive implements Authorization {
...
@@ -1886,6 +1886,7 @@ public class SaveLive implements Authorization {
Params
.
put
(
"redAmount"
,
30
);
Params
.
put
(
"redAmount"
,
30
);
Params
.
put
(
"redProbability"
,
100
);
Params
.
put
(
"redProbability"
,
100
);
Params
.
put
(
"ruleType"
,
1
);
Params
.
put
(
"ruleType"
,
1
);
Params
.
put
(
"showType"
,
0
);
// 取消红包封面最高66元标签展示
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_redSaveOrUpdate
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_redSaveOrUpdate
);
System
.
out
.
println
(
response
.
body
().
asString
());
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
5ca9cb95
...
@@ -361,9 +361,8 @@ public class Lottery implements Authorization {
...
@@ -361,9 +361,8 @@ public class Lottery implements Authorization {
Assert
.
assertTrue
(
firstGet
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"非第1次获取好运红包"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
firstGet
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"非第1次获取好运红包"
,
response
.
body
().
asString
()));
int
redNum
=
response
.
jsonPath
().
getInt
(
"data.redNum"
);
int
redNum
=
response
.
jsonPath
().
getInt
(
"data.redNum"
);
Assert
.
assertTrue
(
redNum
>
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_getRed
,
"红包个数不对"
,
response
.
body
().
asString
()));
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
)
@Test
(
description
=
"访客A分享好运红包给访客B"
,
priority
=
27
)
...
...
src/test/java/com/kjj/cases/live/secondKill/SecondKill.java
View file @
5ca9cb95
...
@@ -205,7 +205,7 @@ public class SecondKill implements Authorization {
...
@@ -205,7 +205,7 @@ public class SecondKill implements Authorization {
Response
downgradeGoodsRes
=
network
.
getResponse
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_downgradeGoodsFirst
);
Response
downgradeGoodsRes
=
network
.
getResponse
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_downgradeGoodsFirst
);
try
{
try
{
String
confId
=
downgradeGoodsRes
.
jsonPath
().
getString
(
"data.confId"
);
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
){
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_goodsFirst
,
"未获取到数据"
,
downgradeGoodsRes
.
body
().
asString
()));
Assert
.
fail
(
network
.
message
(
downgradeGoodsPar
,
BasicConfig
.
MOBILE_secondKill_goodsFirst
,
"未获取到数据"
,
downgradeGoodsRes
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/live/treasure/Treasure.java
View file @
5ca9cb95
...
@@ -99,7 +99,7 @@ public class Treasure implements Authorization {
...
@@ -99,7 +99,7 @@ public class Treasure implements Authorization {
Map
<
String
,
Object
>
confDetailParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
confDetailParam
=
new
HashMap
<>();
confDetailParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
confDetailParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
confDetailParam
,
BasicConfig
.
MANAGER_confDetail
);
Response
response
=
network
.
getResponse
(
confDetailParam
,
BasicConfig
.
MANAGER_confDetail
);
System
.
out
.
println
(
response
);
System
.
out
.
println
(
response
.
body
().
asString
()
);
Integer
openCondition
=
response
.
jsonPath
().
getInt
(
"data.openCondition"
);
Integer
openCondition
=
response
.
jsonPath
().
getInt
(
"data.openCondition"
);
System
.
out
.
println
(
openCondition
);
System
.
out
.
println
(
openCondition
);
Assert
.
assertTrue
(
openCondition
>
0
,
network
.
message
(
confDetailParam
,
BasicConfig
.
MANAGER_confDetail
,
"查询宝箱配置详情失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
openCondition
>
0
,
network
.
message
(
confDetailParam
,
BasicConfig
.
MANAGER_confDetail
,
"查询宝箱配置详情失败"
,
response
.
body
().
asString
()));
...
@@ -146,7 +146,6 @@ public class Treasure implements Authorization {
...
@@ -146,7 +146,6 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"选择宝箱"
,
priority
=
7
)
@Test
(
description
=
"选择宝箱"
,
priority
=
7
)
public
void
选择宝箱
()
{
public
void
选择宝箱
()
{
visitorAuth9
();
visitorAuth9
();
...
@@ -183,6 +182,7 @@ public class Treasure implements Authorization {
...
@@ -183,6 +182,7 @@ public class Treasure implements Authorization {
infoParam
.
put
(
"shareType"
,
7
);
infoParam
.
put
(
"shareType"
,
7
);
infoParam
.
put
(
"userType"
,
"A"
);
infoParam
.
put
(
"userType"
,
"A"
);
Response
response
=
network
.
getResponse
(
infoParam
,
BasicConfig
.
MOBILE_helpInfo
);
Response
response
=
network
.
getResponse
(
infoParam
,
BasicConfig
.
MOBILE_helpInfo
);
System
.
out
.
println
(
response
.
body
().
asString
());
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
infoParam
,
BasicConfig
.
MOBILE_helpInfo
,
"根据分享类型获取分享内容"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
infoParam
,
BasicConfig
.
MOBILE_helpInfo
,
"根据分享类型获取分享内容"
,
response
.
body
().
asString
()));
...
@@ -647,6 +647,7 @@ public class Treasure implements Authorization {
...
@@ -647,6 +647,7 @@ public class Treasure implements Authorization {
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"winLimitCount"
,-
1
);
//-1无限制,1限制1次
treasureAward
.
put
(
"winLimitCount"
,-
1
);
//-1无限制,1限制1次
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"新增宝箱裂变配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"新增宝箱裂变配置失败"
,
response
.
body
().
asString
()));
...
@@ -876,8 +877,60 @@ public class Treasure implements Authorization {
...
@@ -876,8 +877,60 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"宝箱开启后可增加实物奖励数量"
,
priority
=
57
)
public
void
宝箱开启后可增加实物奖励数量
()
{
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"totalNum"
,
4
);
// 增加实物奖励数量
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"增加实物奖励数量失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"宝箱开启后不可减少奖品数量"
,
priority
=
58
)
public
void
宝箱开启后不可减少奖品数量
()
{
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"totalNum"
,
2
);
// 减少实物奖励数量
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
System
.
out
.
println
(
success
);
Assert
.
assertFalse
(
success
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"减少实物奖励数量成功"
,
response
.
body
().
asString
()));
treasureAward
.
put
(
"totalNum"
,
4
);
// 还原treasureConf配置
}
@Test
(
description
=
"宝箱开启后可设置实物奖励数量无上限"
,
priority
=
59
)
public
void
宝箱开启后可设置实物奖励数量无上限
()
{
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"ruleType"
,
2
);
// 设置实物奖励数量无上限
treasureAward
.
put
(
"totalNum"
,
-
1
);
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"设置实物奖励数量无上限失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"宝箱开启后不可将实物奖励数量由无上限变为有上限"
,
priority
=
60
)
public
void
宝箱开启后不可将实物奖励数量由无上限变为有上限
()
{
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"ruleType"
,
1
);
// 设置实物奖励数量有上限
treasureAward
.
put
(
"totalNum"
,
3
);
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
System
.
out
.
println
(
success
);
Assert
.
assertFalse
(
success
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"设置实物奖励数量有上限成功"
,
response
.
body
().
asString
()));
@Test
(
description
=
"宝箱红包限制1次"
,
priority
=
57
)
treasureAward
.
put
(
"ruleType"
,
2
);
treasureAward
.
put
(
"totalNum"
,
-
1
);
// 还原treasureConf配置
}
@Test
(
description
=
"宝箱红包限制1次"
,
priority
=
61
)
public
void
宝箱红包限制
1
次
()
{
public
void
宝箱红包限制
1
次
()
{
JSONObject
treasureRed
=
treasureConf
.
getJSONObject
(
"treasureRed"
);
JSONObject
treasureRed
=
treasureConf
.
getJSONObject
(
"treasureRed"
);
...
@@ -885,6 +938,7 @@ public class Treasure implements Authorization {
...
@@ -885,6 +938,7 @@ public class Treasure implements Authorization {
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
JSONObject
treasureAward
=
treasureConf
.
getJSONObject
(
"treasureAward"
);
treasureAward
.
put
(
"treasureProbability"
,
"0"
);
treasureAward
.
put
(
"treasureProbability"
,
"0"
);
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
Response
response
=
network
.
postResponse
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"修改宝箱裂变配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
treasureConf
,
BasicConfig
.
MANAGER_saveTreasureConf
,
"修改宝箱裂变配置失败"
,
response
.
body
().
asString
()));
...
@@ -892,7 +946,7 @@ public class Treasure implements Authorization {
...
@@ -892,7 +946,7 @@ public class Treasure implements Authorization {
}
}
//访客A领取红包
//访客A领取红包
@Test
(
description
=
"访客H第5次参与详情的进度显示"
,
priority
=
58
)
@Test
(
description
=
"访客H第5次参与详情的进度显示"
,
priority
=
62
)
public
void
访客
H
第
5
次参与详情的进度显示
()
{
public
void
访客
H
第
5
次参与详情的进度显示
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
...
@@ -904,7 +958,7 @@ public class Treasure implements Authorization {
...
@@ -904,7 +958,7 @@ public class Treasure implements Authorization {
Assert
.
assertTrue
(
invitationNum
>
0
,
network
.
message
(
InfoParam
,
BasicConfig
.
MANAGER_treasureUserInfo
,
"查询第5次参与详情进度失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
invitationNum
>
0
,
network
.
message
(
InfoParam
,
BasicConfig
.
MANAGER_treasureUserInfo
,
"查询第5次参与详情进度失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客H开启第5次宝箱获得红包"
,
priority
=
59
)
@Test
(
description
=
"访客H开启第5次宝箱获得红包"
,
priority
=
63
)
public
void
访客
H
开启第
5
次宝箱获得红包
()
{
public
void
访客
H
开启第
5
次宝箱获得红包
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
15000
);
ThreadSleepUtils
.
sleep
(
15000
);
...
@@ -920,7 +974,7 @@ public class Treasure implements Authorization {
...
@@ -920,7 +974,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客H第5轮开宝箱参与详情"
,
priority
=
6
0
)
@Test
(
description
=
"访客H第5轮开宝箱参与详情"
,
priority
=
6
4
)
public
void
访客
H
第
5
轮开宝箱参与详情
()
{
public
void
访客
H
第
5
轮开宝箱参与详情
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
2000
);
ThreadSleepUtils
.
sleep
(
2000
);
...
@@ -940,7 +994,7 @@ public class Treasure implements Authorization {
...
@@ -940,7 +994,7 @@ public class Treasure implements Authorization {
//访客A降级抽奖码
//访客A降级抽奖码
@Test
(
description
=
"访客H第6次参与详情的进度显示"
,
priority
=
6
1
)
@Test
(
description
=
"访客H第6次参与详情的进度显示"
,
priority
=
6
5
)
public
void
访客
H
第
6
次参与详情的进度显示
()
{
public
void
访客
H
第
6
次参与详情的进度显示
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
...
@@ -952,7 +1006,7 @@ public class Treasure implements Authorization {
...
@@ -952,7 +1006,7 @@ public class Treasure implements Authorization {
Assert
.
assertTrue
(
invitationNum
>
0
,
network
.
message
(
InfoParam
,
BasicConfig
.
MANAGER_treasureUserInfo
,
"查询第6次参与详情进度失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
invitationNum
>
0
,
network
.
message
(
InfoParam
,
BasicConfig
.
MANAGER_treasureUserInfo
,
"查询第6次参与详情进度失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客H开启第6次宝箱降级抽奖码"
,
priority
=
6
2
)
@Test
(
description
=
"访客H开启第6次宝箱降级抽奖码"
,
priority
=
6
6
)
public
void
访客
H
开启第
6
次宝箱降级抽奖码
()
{
public
void
访客
H
开启第
6
次宝箱降级抽奖码
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -967,7 +1021,7 @@ public class Treasure implements Authorization {
...
@@ -967,7 +1021,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客H第6轮开宝箱参与详情"
,
priority
=
6
3
)
@Test
(
description
=
"访客H第6轮开宝箱参与详情"
,
priority
=
6
7
)
public
void
访客
H
第
6
轮开宝箱参与详情
()
{
public
void
访客
H
第
6
轮开宝箱参与详情
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
2000
);
ThreadSleepUtils
.
sleep
(
2000
);
...
@@ -986,7 +1040,7 @@ public class Treasure implements Authorization {
...
@@ -986,7 +1040,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客N获取分享加密串"
,
priority
=
6
4
)
@Test
(
description
=
"访客N获取分享加密串"
,
priority
=
6
8
)
public
void
访客
N
获取分享加密串
()
{
public
void
访客
N
获取分享加密串
()
{
visitorAuth14
();
visitorAuth14
();
Map
<
String
,
Object
>
signParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
signParam
=
new
HashMap
<>();
...
@@ -1000,7 +1054,7 @@ public class Treasure implements Authorization {
...
@@ -1000,7 +1054,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客N与访客O邀请关系绑定"
,
priority
=
6
5
)
@Test
(
description
=
"访客N与访客O邀请关系绑定"
,
priority
=
6
9
)
public
void
访客
N
与访客
O
邀请关系绑定
()
{
public
void
访客
N
与访客
O
邀请关系绑定
()
{
visitorAuth15
();
visitorAuth15
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -1012,7 +1066,7 @@ public class Treasure implements Authorization {
...
@@ -1012,7 +1066,7 @@ public class Treasure implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
bindingParam
,
BasicConfig
.
MOBILE_binding
,
"绑定失败"
,
bindingRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
bindingParam
,
BasicConfig
.
MOBILE_binding
,
"绑定失败"
,
bindingRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客O获取绑定结果和绑定凭证"
,
priority
=
66
)
@Test
(
description
=
"访客O获取绑定结果和绑定凭证"
,
priority
=
70
)
public
void
访客
O
获取绑定结果和绑定凭证
()
{
public
void
访客
O
获取绑定结果和绑定凭证
()
{
visitorAuth15
();
visitorAuth15
();
ThreadSleepUtils
.
sleep
(
2000
);
ThreadSleepUtils
.
sleep
(
2000
);
...
@@ -1024,7 +1078,7 @@ public class Treasure implements Authorization {
...
@@ -1024,7 +1078,7 @@ public class Treasure implements Authorization {
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客O给访客N助力"
,
priority
=
67
)
@Test
(
description
=
"访客O给访客N助力"
,
priority
=
71
)
public
void
访客
O
给访客
N
助力
()
{
public
void
访客
O
给访客
N
助力
()
{
visitorAuth15
();
visitorAuth15
();
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
...
@@ -1041,7 +1095,7 @@ public class Treasure implements Authorization {
...
@@ -1041,7 +1095,7 @@ public class Treasure implements Authorization {
//访客M和N同时抢红包
//访客M和N同时抢红包
@Test
(
description
=
"访客M参与详情的进度显示"
,
priority
=
68
)
@Test
(
description
=
"访客M参与详情的进度显示"
,
priority
=
72
)
public
void
访客
M
参与详情的进度显示
()
{
public
void
访客
M
参与详情的进度显示
()
{
visitorAuth13
();
visitorAuth13
();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
...
@@ -1054,7 +1108,7 @@ public class Treasure implements Authorization {
...
@@ -1054,7 +1108,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客N参与详情的进度显示"
,
priority
=
69
)
@Test
(
description
=
"访客N参与详情的进度显示"
,
priority
=
73
)
public
void
访客
N
参与详情的进度显示
()
{
public
void
访客
N
参与详情的进度显示
()
{
visitorAuth14
();
visitorAuth14
();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
InfoParam
=
new
HashMap
<>();
...
@@ -1068,7 +1122,7 @@ public class Treasure implements Authorization {
...
@@ -1068,7 +1122,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客M和访客N同时开启宝箱验证红包是否超发"
,
priority
=
7
0
)
@Test
(
description
=
"访客M和访客N同时开启宝箱验证红包是否超发"
,
priority
=
7
4
)
public
void
访客
M
和访客
N
同时开启宝箱验证红包是否超发
()
{
public
void
访客
M
和访客
N
同时开启宝箱验证红包是否超发
()
{
Map
<
String
,
Object
>
openParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
openParam
=
new
HashMap
<>();
openParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
openParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
@@ -1092,7 +1146,7 @@ public class Treasure implements Authorization {
...
@@ -1092,7 +1146,7 @@ public class Treasure implements Authorization {
@Test
(
description
=
"访客M和访客N第7轮开宝箱参与详情"
,
priority
=
7
1
)
@Test
(
description
=
"访客M和访客N第7轮开宝箱参与详情"
,
priority
=
7
5
)
public
void
访客
M
和访客
N
第
7
轮开宝箱参与详情
()
{
public
void
访客
M
和访客
N
第
7
轮开宝箱参与详情
()
{
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
infoParam
=
new
HashMap
<>();
...
@@ -1123,7 +1177,7 @@ public class Treasure implements Authorization {
...
@@ -1123,7 +1177,7 @@ public class Treasure implements Authorization {
}
}
@Test
(
description
=
"访客H宝箱领取记录"
,
priority
=
7
2
)
@Test
(
description
=
"访客H宝箱领取记录"
,
priority
=
7
6
)
public
void
访客
H
宝箱领取记录
()
{
public
void
访客
H
宝箱领取记录
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -1140,7 +1194,7 @@ public class Treasure implements Authorization {
...
@@ -1140,7 +1194,7 @@ public class Treasure implements Authorization {
/**
/**
* 添加代理人绑定关系
* 添加代理人绑定关系
*/
*/
@Test
(
description
=
"代理人绑定"
,
priority
=
7
3
)
@Test
(
description
=
"代理人绑定"
,
priority
=
7
7
)
public
void
代理人绑定
()
{
public
void
代理人绑定
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
...
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