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
Expand all
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
This diff is collapsed.
Click to expand it.
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
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