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
7758492b
Commit
7758492b
authored
Mar 22, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e1fcc804
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
25 deletions
+13
-25
SaveAndUpdate.java
src/test/java/com/kjj/cases/live/SaveAndUpdate.java
+13
-25
No files found.
src/test/java/com/kjj/cases/live/SaveAndUpdate.java
View file @
7758492b
...
...
@@ -149,20 +149,8 @@ public class SaveAndUpdate implements AdminAuthorization {
Assert
.
assertTrue
(
data5
,
network
.
message
(
saveOrUpdate4Param
,
BasicConfig
.
MANAGER_SAVEORUPDATE4
,
"问卷配置失败"
,
saveOrUpdate4Res
.
body
().
asString
()));
}
// @Test(description = "代理人参与条件", priority = 9)
// public void 代理人参与条件() {
//
// Map<String, Object> saveAgentParticipateParam = new HashMap<>();
// saveAgentParticipateParam.put("liveId", liveID);
// saveAgentParticipateParam.put("inviteCount", 1);
//
// Response saveAgentParticipateParamRes = network.postResponse(saveAgentParticipateParam, BasicConfig.MANAGER_SAVEAGENTPARTICIPATE);
// boolean data6 = saveAgentParticipateParamRes.jsonPath().getBoolean("data");
// System.out.println(data6);
// Assert.assertTrue(data6, network.message(saveAgentParticipateParam, BasicConfig.MANAGER_SAVEAGENTPARTICIPATE, "代理人参与条件配置失败", saveAgentParticipateParamRes.body().asString()));
// }
@Test
(
description
=
"指定中奖奖品"
,
priority
=
10
)
@Test
(
description
=
"指定中奖奖品"
,
priority
=
9
)
public
void
指定中奖奖品
()
{
Map
<
String
,
Object
>
saveSpecifyAwardParam
=
new
HashMap
<>();
saveSpecifyAwardParam
.
put
(
"Id"
,
""
);
...
...
@@ -181,7 +169,7 @@ public class SaveAndUpdate implements AdminAuthorization {
Assert
.
assertTrue
(
data7
,
network
.
message
(
saveSpecifyAwardParam
,
BasicConfig
.
MANAGER_SAVESPECIFYAWARD
,
"指定中奖配置失败"
,
saveSpecifyAwardRes
.
body
().
asString
()));
}
@Test
(
description
=
"个人PK奖励"
,
priority
=
1
1
)
@Test
(
description
=
"个人PK奖励"
,
priority
=
1
0
)
public
void
个人
PK
奖励
()
{
Map
<
String
,
Object
>
saveOrUpdate5Param
=
new
HashMap
<>();
saveOrUpdate5Param
.
put
(
"liveId"
,
liveID
);
...
...
@@ -189,9 +177,9 @@ public class SaveAndUpdate implements AdminAuthorization {
List
<
RewardPkBean
>
rewardPks
=
new
ArrayList
<>();
// []
RewardPkBean
rewardPk
=
new
RewardPkBean
();
// {}
rewardPk
.
setPrizeName
(
"1"
);
// {id:1}
rewardPk
.
setRanking
(
1
);
// {id:1,ss:"rew"}
rewardPks
.
add
(
rewardPk
);
// [{id:1,ss:"rew"}]
rewardPk
.
setPrizeName
(
"1"
);
rewardPk
.
setRanking
(
1
);
rewardPks
.
add
(
rewardPk
);
RewardPkBean
rewardPk1
=
new
RewardPkBean
();
rewardPk1
.
setPrizeName
(
"2"
);
...
...
@@ -211,7 +199,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
@Test
(
description
=
"团队PK奖励"
,
priority
=
1
2
)
@Test
(
description
=
"团队PK奖励"
,
priority
=
1
1
)
public
void
团队
PK
奖励
()
{
Map
<
String
,
Object
>
saveOrUpdate6Param
=
new
HashMap
<>();
...
...
@@ -243,7 +231,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
@Test
(
description
=
"获取剩余红包金额"
,
priority
=
1
3
)
@Test
(
description
=
"获取剩余红包金额"
,
priority
=
1
2
)
public
void
获取剩余红包金额
()
{
Map
<
String
,
Object
>
getSurplusAmountParam
=
new
HashMap
<>();
getSurplusAmountParam
.
put
(
"liveId"
,
liveID
);
...
...
@@ -256,7 +244,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
//添加红包配置
@Test
(
description
=
"新增红包配置"
,
priority
=
1
4
)
@Test
(
description
=
"新增红包配置"
,
priority
=
1
3
)
public
void
新增红包配置
()
{
Map
<
String
,
Object
>
saveOrUpdateRedParam
=
new
HashMap
<>();
saveOrUpdateRedParam
.
put
(
"liveId"
,
liveID
);
...
...
@@ -274,7 +262,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
//答题红包配置
@Test
(
description
=
"新增答题红包"
,
priority
=
1
5
)
@Test
(
description
=
"新增答题红包"
,
priority
=
1
4
)
public
void
新增答题红包
()
{
Map
<
String
,
Object
>
saveOrUpdate9Param
=
new
HashMap
<>();
saveOrUpdate9Param
.
put
(
"liveId"
,
liveID
);
...
...
@@ -306,7 +294,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
//直播前奖品配置
@Test
(
description
=
"直播前抽奖"
,
priority
=
1
6
)
@Test
(
description
=
"直播前抽奖"
,
priority
=
1
5
)
public
void
直播前抽奖
()
{
Map
<
String
,
Object
>
addParam
=
new
HashMap
<>();
addParam
.
put
(
"liveId"
,
liveID
);
...
...
@@ -323,7 +311,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
//直播中奖品配置
@Test
(
description
=
"直播中抽奖"
,
priority
=
1
7
)
@Test
(
description
=
"直播中抽奖"
,
priority
=
1
6
)
public
void
直播中抽奖
()
{
Map
<
String
,
Object
>
add1Param
=
new
HashMap
<>();
add1Param
.
put
(
"liveId"
,
liveID
);
...
...
@@ -378,7 +366,7 @@ public class SaveAndUpdate implements AdminAuthorization {
}
//配置免费福利
@Test
(
description
=
"配置免费福利"
,
priority
=
1
8
)
@Test
(
description
=
"配置免费福利"
,
priority
=
1
7
)
public
void
配置免费福利
()
{
Map
<
String
,
Object
>
saveOrUpdate8Param
=
new
HashMap
<>();
saveOrUpdate8Param
.
put
(
"liveId"
,
liveID
);
...
...
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