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
611b97ec
Commit
611b97ec
authored
Jun 25, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6409e551
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
293 additions
and
237 deletions
+293
-237
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+16
-26
TimeRed.java
src/test/java/com/kjj/cases/live/treasure/TimeRed.java
+138
-72
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+1
-1
liveTestNG.xml
src/test/liveTestNG.xml
+138
-138
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
611b97ec
...
...
@@ -1525,18 +1525,8 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateReceiveNum
,
"攒现金红包领取人数配置添加失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看领取人数"
,
priority
=
78
)
public
void
查看领取人数
()
{
ThreadSleepUtils
.
sleep
(
1000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_receiveNumDetail
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_receiveNumDetail
,
"查看领取人数失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"添加第1轮赞现金任务"
,
priority
=
7
9
)
@Test
(
description
=
"添加第1轮赞现金任务"
,
priority
=
7
8
)
public
void
添加第
1
轮赞现金任务
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1549,7 +1539,7 @@ public class SaveLive implements AdminAuthorization {
}
public
List
<
RedList
>
redId
;
@Test
(
description
=
"查询第1轮红包配置列表"
,
priority
=
80
)
@Test
(
description
=
"查询第1轮红包配置列表"
,
priority
=
79
)
public
void
查询第
1
轮红包配置列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1562,7 +1552,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
list
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_timeRedList
,
"查询第1轮红包配置列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询第1轮红包详情"
,
priority
=
8
1
)
@Test
(
description
=
"查询第1轮红包详情"
,
priority
=
8
0
)
public
void
查询第
1
轮红包详情
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"id"
,
this
.
redId
.
get
(
0
).
getId
());
...
...
@@ -1573,7 +1563,7 @@ public class SaveLive implements AdminAuthorization {
}
public
List
<
RedList
>
bizConfId
;
@Test
(
description
=
"查询权益列表"
,
priority
=
8
2
)
@Test
(
description
=
"查询权益列表"
,
priority
=
8
1
)
public
void
查询权益列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1584,7 +1574,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
list
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_resourceList1
,
"查询权益列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"保存第2轮配置红包"
,
priority
=
8
3
)
@Test
(
description
=
"保存第2轮配置红包"
,
priority
=
8
2
)
public
void
保存第
2
轮配置红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1601,7 +1591,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_TimeRedSave
,
"保存第2轮配置红包失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询第2轮红包配置列表"
,
priority
=
8
4
)
@Test
(
description
=
"查询第2轮红包配置列表"
,
priority
=
8
3
)
public
void
查询第
2
轮红包配置列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1614,7 +1604,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
list
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_timeRedList
,
"查询第2轮红包配置列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询第2轮时长红包详情"
,
priority
=
8
5
)
@Test
(
description
=
"查询第2轮时长红包详情"
,
priority
=
8
4
)
public
void
查询第
2
轮时长红包详情
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"id"
,
this
.
redId
.
get
(
1
).
getId
());
...
...
@@ -1626,7 +1616,7 @@ public class SaveLive implements AdminAuthorization {
}
@Test
(
description
=
"保存第3轮配置红包"
,
priority
=
8
6
)
@Test
(
description
=
"保存第3轮配置红包"
,
priority
=
8
5
)
public
void
保存第
3
轮配置红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1642,7 +1632,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_TimeRedSave
,
"保存第3轮配置红包失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询第3轮红包配置列表"
,
priority
=
8
7
)
@Test
(
description
=
"查询第3轮红包配置列表"
,
priority
=
8
6
)
public
void
查询第
3
轮红包配置列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1657,7 +1647,7 @@ public class SaveLive implements AdminAuthorization {
//查询红包详情
@Test
(
description
=
"查询第3轮时长红包详情"
,
priority
=
8
8
)
@Test
(
description
=
"查询第3轮时长红包详情"
,
priority
=
8
7
)
public
void
查询第
3
轮时长红包详情
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"id"
,
this
.
redId
.
get
(
2
).
getId
()
);
...
...
@@ -1668,7 +1658,7 @@ public class SaveLive implements AdminAuthorization {
}
@Test
(
description
=
"保存第4轮配置红包"
,
priority
=
8
9
)
@Test
(
description
=
"保存第4轮配置红包"
,
priority
=
8
8
)
public
void
保存第
4
轮配置红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1685,7 +1675,7 @@ public class SaveLive implements AdminAuthorization {
}
@Test
(
description
=
"查询第4轮红包配置列表"
,
priority
=
90
)
@Test
(
description
=
"查询第4轮红包配置列表"
,
priority
=
89
)
public
void
查询第
4
轮红包配置列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1698,7 +1688,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
list
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_timeRedList
,
"查询第2轮红包配置列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询第4轮时长红包详情"
,
priority
=
9
1
)
@Test
(
description
=
"查询第4轮时长红包详情"
,
priority
=
9
0
)
public
void
查询第
4
轮时长红包详情
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"id"
,
this
.
redId
.
get
(
3
).
getId
()
);
...
...
@@ -1709,7 +1699,7 @@ public class SaveLive implements AdminAuthorization {
}
@Test
(
description
=
"查询轮次红包配置列表"
,
priority
=
9
2
)
@Test
(
description
=
"查询轮次红包配置列表"
,
priority
=
9
1
)
public
void
查询轮次红包配置列表
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1721,7 +1711,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertNotNull
(
list
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_timeRedList
,
"查询轮次红包配置列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询开关状态"
,
priority
=
9
3
)
@Test
(
description
=
"查询开关状态"
,
priority
=
9
2
)
public
void
查询开关状态
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
@@ -1731,7 +1721,7 @@ public class SaveLive implements AdminAuthorization {
Assert
.
assertFalse
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_switchDetail
,
"查询开关状态失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"开启攒现金红包配置"
,
priority
=
9
4
)
@Test
(
description
=
"开启攒现金红包配置"
,
priority
=
9
3
)
public
void
开启攒现金红包配置
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
src/test/java/com/kjj/cases/live/treasure/TimeRed.java
View file @
611b97ec
...
...
@@ -42,7 +42,7 @@ public class TimeRed implements AdminAuthorization {
Response
redRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_redConf
);
List
<
RedConf
>
list1
=
JsonUtil
.
parseResponseToPageBean
(
redRes
,
RedConf
.
class
);
System
.
out
.
println
(
list1
);
Assert
.
assertNotNull
(
list1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redConf
,
"访客
N查询攒现金红包配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
list1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redConf
,
"访客
I查询攒现金红包配置失败"
,
redRes
.
body
().
asString
()));
}
...
...
@@ -66,7 +66,7 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
);
boolean
data1
=
subscribeRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
,
"访客
N
关注失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
,
"访客
I
关注失败"
,
response
.
body
().
asString
()));
}
...
...
@@ -85,7 +85,7 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
getResponse
(
findParam
,
BasicConfig
.
USER_FIND
);
boolean
data1
=
findRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
findParam
,
BasicConfig
.
USER_FIND
,
"访客
N
关注失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
findParam
,
BasicConfig
.
USER_FIND
,
"访客
I
关注失败"
,
response
.
body
().
asString
()));
}
...
...
@@ -106,7 +106,7 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
savePosterParam
,
BasicConfig
.
USER_savePoster
);
boolean
data1
=
savePosterRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
savePosterParam
,
BasicConfig
.
USER_savePoster
,
"访客
N
海报保存失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
savePosterParam
,
BasicConfig
.
USER_savePoster
,
"访客
I
海报保存失败"
,
response
.
body
().
asString
()));
}
...
...
@@ -121,14 +121,14 @@ public class TimeRed implements AdminAuthorization {
List
<
ResourceForm
.
FieldList
>
list
=
JsonUtil
.
parseResponseToPageBean
(
response
,
ResourceForm
.
FieldList
.
class
,
"fieldList"
);
this
.
fieldList
=
list
;
System
.
out
.
println
(
list
);
Assert
.
assertNotNull
(
list
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"查询表单资料失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
list
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"
访客H
查询表单资料失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
Response
formRes
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Form
);
List
<
ResourceForm
.
FieldList
>
list1
=
JsonUtil
.
parseResponseToPageBean
(
formRes
,
ResourceForm
.
FieldList
.
class
,
"fieldList"
);
this
.
fieldList
=
list1
;
System
.
out
.
println
(
list1
);
Assert
.
assertNotNull
(
list1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"查询表单资料失败"
,
formRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
list1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"
访客I
查询表单资料失败"
,
formRes
.
body
().
asString
()));
}
...
...
@@ -155,7 +155,7 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_FormSubmit
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_FormSubmit
,
"提交表单资料失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_FormSubmit
,
"
访客H
提交表单资料失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
Map
<
String
,
Object
>
submitParam
=
new
HashMap
<>();
...
...
@@ -174,7 +174,7 @@ public class TimeRed implements AdminAuthorization {
Response
submitRes
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_FormSubmit
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_FormSubmit
,
"提交表单资料失败"
,
submitRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_FormSubmit
,
"
访客I
提交表单资料失败"
,
submitRes
.
body
().
asString
()));
}
...
...
@@ -189,14 +189,14 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第1轮红包失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客H
开启第1轮红包失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
redRes
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data1
=
redRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第1轮红包失败"
,
redRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客I
开启第1轮红包失败"
,
redRes
.
body
().
asString
()));
}
...
...
@@ -206,7 +206,6 @@ public class TimeRed implements AdminAuthorization {
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"id"
,
this
.
id
.
get
(
0
).
getId
());
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_openState
);
...
...
@@ -214,7 +213,7 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data
);
Integer
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第1轮红包结果
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客H第1轮红包领取
失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
...
...
@@ -223,16 +222,45 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data1
);
Integer
state1
=
stateRes
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state1
);
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第1轮红包结果
失败"
,
stateRes
.
body
().
asString
()));
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客I第1轮红包领取
失败"
,
stateRes
.
body
().
asString
()));
}
@Test
(
description
=
"查看攒现金红包领取人数"
,
priority
=
9
)
public
void
查看攒现金红包领取人数
()
{
ThreadSleepUtils
.
sleep
(
1000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_receiveNumDetail
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
int
num
=
response
.
jsonPath
().
getInt
(
"data.num"
);
Assert
.
assertTrue
(
num
==
1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_receiveNumDetail
,
"查看第1轮攒现金红包领取人数失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看关注直播间任务完成情况"
,
priority
=
10
)
public
void
查看关注直播间任务完成情况
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客H未完成关注直播间任务"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
tasksRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data1
=
tasksRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertNotNull
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客I未完成关注直播间任务"
,
tasksRes
.
body
().
asString
()));
@Test
(
description
=
"开启第2轮红包"
,
priority
=
9
)
public
void
开启第
2
轮红包
()
{
}
@Test
(
description
=
"开启第2轮红包"
,
priority
=
11
)
public
void
开启第
2
轮红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"id"
,
this
.
id
.
get
(
1
).
getId
());
...
...
@@ -241,27 +269,24 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第2轮红包失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客H
开启第2轮红包失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
redRes
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data1
=
redRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第2轮红包失败"
,
redRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客I
开启第2轮红包失败"
,
redRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询开启第2轮红包结果"
,
priority
=
1
0
)
@Test
(
description
=
"查询开启第2轮红包结果"
,
priority
=
1
2
)
public
void
查询开启第
2
轮红包结果
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"id"
,
this
.
id
.
get
(
1
).
getId
());
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_openState
);
...
...
@@ -269,7 +294,7 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data
);
Integer
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第2轮红包结果
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客H领取红包
失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
...
...
@@ -278,13 +303,34 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data1
);
Integer
state1
=
stateRes
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state1
);
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第2轮红包结果
失败"
,
stateRes
.
body
().
asString
()));
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客I领取红包
失败"
,
stateRes
.
body
().
asString
()));
}
@Test
(
description
=
"开启第3轮红包"
,
priority
=
11
)
@Test
(
description
=
"查看保存海报任务完成情况"
,
priority
=
13
)
public
void
查看保存海报任务完成情况
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客H保存海报任务未完成"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
tasksRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data1
=
tasksRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertNotNull
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客I保存海报任务未完成"
,
tasksRes
.
body
().
asString
()));
}
@Test
(
description
=
"开启第3轮红包"
,
priority
=
14
)
public
void
开启第
3
轮红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -295,18 +341,18 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第3轮红包失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客H
开启第3轮红包失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
redRes
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data1
=
redRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第3轮红包失败"
,
redRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客I
开启第3轮红包失败"
,
redRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询开启第3轮红包结果"
,
priority
=
1
2
)
@Test
(
description
=
"查询开启第3轮红包结果"
,
priority
=
1
5
)
public
void
查询开启第
3
轮红包结果
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -318,7 +364,7 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data
);
Integer
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第3轮红包结果
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客H第3轮红包红包领取
失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
...
...
@@ -327,14 +373,34 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data1
);
Integer
state1
=
stateRes
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state1
);
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"查询开启第3轮红包结果失败"
,
stateRes
.
body
().
asString
()));
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"访客I第3轮红包红包领取失败"
,
stateRes
.
body
().
asString
()));
}
@Test
(
description
=
"查看表单任务完成情况"
,
priority
=
16
)
public
void
查看表单任务完成情况
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客H未完成表单任务"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
tasksRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_tasks
);
Object
data1
=
tasksRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertNotNull
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_tasks
,
"访客I未完成表单任务"
,
tasksRes
.
body
().
asString
()));
}
@Test
(
description
=
"开启第4轮红包"
,
priority
=
1
3
)
@Test
(
description
=
"开启第4轮红包"
,
priority
=
1
7
)
public
void
开启第
4
轮红包
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -344,19 +410,19 @@ public class TimeRed implements AdminAuthorization {
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第4轮红包失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客H
开启第4轮红包失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
Response
redRes
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_redOpen
);
boolean
data1
=
redRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"开启第4轮红包失败"
,
redRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_redOpen
,
"
访客I
开启第4轮红包失败"
,
redRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询开启第4轮红包结果"
,
priority
=
1
4
)
@Test
(
description
=
"查询开启第4轮红包结果"
,
priority
=
1
8
)
public
void
查询开启第
4
轮红包结果
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -369,7 +435,7 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data
);
Integer
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
查询开启第4轮红包结果失败
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"
访客H未领取第4轮红包
"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
...
...
@@ -378,61 +444,41 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data1
);
Integer
state1
=
stateRes
.
jsonPath
().
getInt
(
"data.state"
);
System
.
out
.
println
(
state1
);
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"查询开启第4轮红包结果失败"
,
stateRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询用户数据"
,
priority
=
15
)
public
void
查询用户数据
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_record
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_record
,
"访客H查询用户数据失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
Response
recordRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_record
);
Object
data1
=
recordRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertNotNull
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_record
,
"访客N查询用户数据失败"
,
recordRes
.
body
().
asString
()));
Assert
.
assertTrue
(
state1
==
2
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_openState
,
"访客I未领取第4轮红包"
,
stateRes
.
body
().
asString
()));
}
//提现
@Test
(
description
=
"查询提现页面展示数据"
,
priority
=
1
6
)
@Test
(
description
=
"查询提现页面展示数据"
,
priority
=
1
9
)
public
void
查询提现页面展示数据
()
{
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Integer
surplusNum
=
response
.
jsonPath
().
getInt
(
"data.surplusNum"
);
System
.
out
.
println
(
surplusNum
);
Assert
.
assertTrue
(
surplusNum
==
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
,
"
访客H提现状态不对
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
surplusNum
==
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
,
"
提现页面剩余红包个数错误
"
,
response
.
body
().
asString
()));
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
1000
);
Response
withdrawDetailRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
);
Object
data1
=
withdrawDetailRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Integer
surplusNum1
=
withdrawDetailRes
.
jsonPath
().
getInt
(
"data.surplusNum"
);
System
.
out
.
println
(
surplusNum1
);
Assert
.
assertTrue
(
surplusNum1
==
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
,
"
访客N提现状态非不可提现
"
,
withdrawDetailRes
.
body
().
asString
()));
Assert
.
assertTrue
(
surplusNum1
==
1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawDetail
,
"
提现页面剩余红包个数错误
"
,
withdrawDetailRes
.
body
().
asString
()));
}
@Test
(
description
=
"
访客H攒现金红包提现"
,
priority
=
17
)
public
void
访客
H
攒现金红包提现
()
{
@Test
(
description
=
"
攒现金红包提现"
,
priority
=
20
)
public
void
攒现金红包提现
()
{
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -447,14 +493,14 @@ public class TimeRed implements AdminAuthorization {
Response
withdrawRes
=
network
.
postResponse
(
Params
,
BasicConfig
.
ANCHOR_withdraw
);
boolean
data1
=
withdrawRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdraw
,
"访客
H攒现金红包提现失败
"
,
withdrawRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdraw
,
"访客
I攒现金红包提现状态不对
"
,
withdrawRes
.
body
().
asString
()));
}
@Test
(
description
=
"
访客H攒现金红包提现结果"
,
priority
=
18
)
public
void
访客
H
攒现金红包提现结果
()
{
@Test
(
description
=
"
攒现金红包提现结果"
,
priority
=
21
)
public
void
攒现金红包提现结果
()
{
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
...
...
@@ -477,12 +523,12 @@ public class TimeRed implements AdminAuthorization {
System
.
out
.
println
(
data1
);
Integer
withdrawStatus1
=
withdrawStatusRes
.
jsonPath
().
getInt
(
"data.withdrawStatus"
);
System
.
out
.
println
(
withdrawStatus1
);
Assert
.
assertTrue
(
withdrawStatus1
==
3
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawState
,
"访客
N
攒现金红包提现状态不对"
,
withdrawStatusRes
.
body
().
asString
()));
Assert
.
assertTrue
(
withdrawStatus1
==
3
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_withdrawState
,
"访客
I
攒现金红包提现状态不对"
,
withdrawStatusRes
.
body
().
asString
()));
}
@Test
(
description
=
"领取抽奖码"
,
priority
=
19
)
@Test
(
description
=
"领取抽奖码"
,
priority
=
22
)
public
void
领取抽奖码
()
{
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
1000
);
...
...
@@ -495,7 +541,7 @@ public class TimeRed implements AdminAuthorization {
}
@Test
(
description
=
"领取抽奖码结果"
,
priority
=
2
0
)
@Test
(
description
=
"领取抽奖码结果"
,
priority
=
2
3
)
public
void
领取抽奖码结果
()
{
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
500
);
...
...
@@ -508,8 +554,8 @@ public class TimeRed implements AdminAuthorization {
}
@Test
(
description
=
"访客
H的抽奖券列表"
,
priority
=
21
)
public
void
访客
H
的抽奖券列表
()
{
@Test
(
description
=
"访客
I的抽奖券列表"
,
priority
=
24
)
public
void
访客
I
的抽奖券列表
()
{
visitorAuth8
();
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
myLotteryCodeParam
=
new
HashMap
<>();
...
...
@@ -525,12 +571,32 @@ public class TimeRed implements AdminAuthorization {
break
;
}
}
Assert
.
assertTrue
(
result
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"查询访客
H
的抽奖券列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
Assert
.
assertTrue
(
result
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"查询访客
I
的抽奖券列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询用户数据"
,
priority
=
25
)
public
void
查询用户数据
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
visitorAuth9
();
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_record
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_record
,
"访客H查询用户数据失败"
,
response
.
body
().
asString
()));
visitorAuth8
();
Response
recordRes
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_record
);
Object
data1
=
recordRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertNotNull
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_record
,
"访客I查询用户数据失败"
,
recordRes
.
body
().
asString
()));
}
@Test
(
description
=
"查询领取统计"
,
priority
=
2
2
)
@Test
(
description
=
"查询领取统计"
,
priority
=
2
6
)
public
void
查询领取统计
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
611b97ec
...
...
@@ -111,7 +111,7 @@ public class BasicConfig {
public
static
final
String
ANCHOR_openState
=
MOBILE_HOST
+
"/kjy/live/time/red/open/state"
;
public
static
final
String
ANCHOR_code
=
MOBILE_HOST
+
"/kjy/live/time/red/code"
;
public
static
final
String
ANCHOR_state
=
MOBILE_HOST
+
"/kjy/live/time/red/code/state"
;
public
static
final
String
ANCHOR_tasks
=
MOBILE_HOST
+
"/kjy/live/time/red/tasks"
;
// *************** 免费领福利 ***************
...
...
src/test/liveTestNG.xml
View file @
611b97ec
...
...
@@ -2,22 +2,22 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"直播"
verbose=
"1"
thread-count=
"3"
>
<test
preserve-order=
"true"
name=
"直播素材"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.LiveMaterial"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"团队管理"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.Team"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"精彩视频"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.Video"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="直播素材">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.LiveMaterial"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="团队管理">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.Team"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="精彩视频">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.Video"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"创建直播"
>
<classes>
...
...
@@ -43,31 +43,31 @@
</classes>
</test>
<test
preserve-order=
"true"
name=
"翻牌红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.flipCard.FlipCard"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="翻牌红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.flipCard.FlipCard"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"中奖规则配置"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.WinningRules"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="中奖规则配置">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.WinningRules"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"指定中奖"
>
<classes
>
<class
name=
"com.kjj.cases.live.lottery.DesignatedWinner"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="指定中奖">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lottery.DesignatedWinner"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"直播前-我的客户页"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveBefore"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="直播前-我的客户页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveBefore"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
...
...
@@ -76,29 +76,29 @@
</classes>
</test>
<test
preserve-order=
"true"
name=
"访客签到"
>
<classes
>
<class
name=
"com.kjj.cases.live.lotteryCode.SignIn"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="访客签到">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lotteryCode.SignIn"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"宝箱裂变"
>
<classes
>
<class
name=
"com.kjj.cases.live.treasure.Treasure"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="宝箱裂变">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.treasure.Treasure"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"直播中抽奖"
>
<classes
>
<class
name=
"com.kjj.cases.live.lottery.Lottery"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="直播中抽奖">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lottery.Lottery"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"猜数字红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.guess.LiveGuess"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="猜数字红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.guess.LiveGuess"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"看直播攒现金"
>
<classes>
...
...
@@ -106,53 +106,53 @@
</classes>
</test>
<test
preserve-order=
"true"
name=
"免费领福利"
>
<classes
>
<class
name=
"com.kjj.cases.live.FreeReward.FreeReward"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes
>
<class
name=
"com.kjj.cases.live.anchor.LiveVisitors"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"红包领取"
>
<classes
>
<class
name=
"com.kjj.cases.live.red.LiveVistorRed"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"有奖答题"
>
<classes
>
<class
name=
"com.kjj.cases.live.answer.Answer"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"投票"
>
<classes
>
<class
name=
"com.kjj.cases.live.choice.Choice"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"问题"
>
<classes
>
<class
name=
"com.kjj.cases.live.question.Question"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播中时长宝箱"
>
<classes
>
<class
name=
"com.kjj.cases.live.treasure.TreasureTime"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播中获取线索统计"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveAgent"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="免费领福利">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.FreeReward.FreeReward"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="访客领取资料">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.anchor.LiveVisitors"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="红包领取">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.red.LiveVistorRed"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="有奖答题">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.answer.Answer"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="投票">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.choice.Choice"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="问题">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.question.Question"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="直播中时长宝箱">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.treasure.TreasureTime"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="直播中获取线索统计">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveAgent"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<classes>
...
...
@@ -160,40 +160,40 @@
</classes>
</test>
<test
preserve-order=
"true"
name=
"直播结束-我的客户页"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveLater"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"奖品发放配置-不开启核奖"
>
<classes
>
<class
name=
"com.kjj.cases.live.signing.NuclearAward"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"扫码签收核奖_不开启红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.signing.SignAward"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"扫码签收核奖_代理人得红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.signing.AgentOpen"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"扫码签收核奖_客户得红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.signing.UserOpen"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"指定中奖付款码"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.spec"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="直播结束-我的客户页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveLater"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="奖品发放配置-不开启核奖">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.signing.NuclearAward"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="扫码签收核奖_不开启红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.signing.SignAward"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="扫码签收核奖_代理人得红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.signing.AgentOpen"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="扫码签收核奖_客户得红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.signing.UserOpen"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="指定中奖付款码">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.spec"/>--
>
<!-- </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