Commit 7758492b authored by 张艳玲's avatar 张艳玲

update

parent e1fcc804
...@@ -149,20 +149,8 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -149,20 +149,8 @@ public class SaveAndUpdate implements AdminAuthorization {
Assert.assertTrue(data5, network.message(saveOrUpdate4Param, BasicConfig.MANAGER_SAVEORUPDATE4, "问卷配置失败", saveOrUpdate4Res.body().asString())); Assert.assertTrue(data5, network.message(saveOrUpdate4Param, BasicConfig.MANAGER_SAVEORUPDATE4, "问卷配置失败", saveOrUpdate4Res.body().asString()));
} }
// @Test(description = "代理人参与条件", priority = 9)
// public void 代理人参与条件() { @Test(description = "指定中奖奖品", priority = 9)
//
// 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)
public void 指定中奖奖品() { public void 指定中奖奖品() {
Map<String, Object> saveSpecifyAwardParam = new HashMap<>(); Map<String, Object> saveSpecifyAwardParam = new HashMap<>();
saveSpecifyAwardParam.put("Id", ""); saveSpecifyAwardParam.put("Id", "");
...@@ -181,7 +169,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -181,7 +169,7 @@ public class SaveAndUpdate implements AdminAuthorization {
Assert.assertTrue(data7, network.message(saveSpecifyAwardParam, BasicConfig.MANAGER_SAVESPECIFYAWARD, "指定中奖配置失败", saveSpecifyAwardRes.body().asString())); Assert.assertTrue(data7, network.message(saveSpecifyAwardParam, BasicConfig.MANAGER_SAVESPECIFYAWARD, "指定中奖配置失败", saveSpecifyAwardRes.body().asString()));
} }
@Test(description = "个人PK奖励", priority = 11) @Test(description = "个人PK奖励", priority = 10)
public void 个人PK奖励() { public void 个人PK奖励() {
Map<String, Object> saveOrUpdate5Param = new HashMap<>(); Map<String, Object> saveOrUpdate5Param = new HashMap<>();
saveOrUpdate5Param.put("liveId", liveID); saveOrUpdate5Param.put("liveId", liveID);
...@@ -189,9 +177,9 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -189,9 +177,9 @@ public class SaveAndUpdate implements AdminAuthorization {
List<RewardPkBean> rewardPks = new ArrayList<>();// [] List<RewardPkBean> rewardPks = new ArrayList<>();// []
RewardPkBean rewardPk = new RewardPkBean();// {} RewardPkBean rewardPk = new RewardPkBean();// {}
rewardPk.setPrizeName("1");// {id:1} rewardPk.setPrizeName("1");
rewardPk.setRanking(1);// {id:1,ss:"rew"} rewardPk.setRanking(1);
rewardPks.add(rewardPk);// [{id:1,ss:"rew"}] rewardPks.add(rewardPk);
RewardPkBean rewardPk1 = new RewardPkBean(); RewardPkBean rewardPk1 = new RewardPkBean();
rewardPk1.setPrizeName("2"); rewardPk1.setPrizeName("2");
...@@ -211,7 +199,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -211,7 +199,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
@Test(description = "团队PK奖励", priority = 12) @Test(description = "团队PK奖励", priority = 11)
public void 团队PK奖励() { public void 团队PK奖励() {
Map<String, Object> saveOrUpdate6Param = new HashMap<>(); Map<String, Object> saveOrUpdate6Param = new HashMap<>();
...@@ -243,7 +231,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -243,7 +231,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
@Test(description = "获取剩余红包金额", priority = 13) @Test(description = "获取剩余红包金额", priority = 12)
public void 获取剩余红包金额() { public void 获取剩余红包金额() {
Map<String, Object> getSurplusAmountParam = new HashMap<>(); Map<String, Object> getSurplusAmountParam = new HashMap<>();
getSurplusAmountParam.put("liveId", liveID); getSurplusAmountParam.put("liveId", liveID);
...@@ -256,7 +244,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -256,7 +244,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
//添加红包配置 //添加红包配置
@Test(description = "新增红包配置", priority = 14) @Test(description = "新增红包配置", priority = 13)
public void 新增红包配置() { public void 新增红包配置() {
Map<String, Object> saveOrUpdateRedParam = new HashMap<>(); Map<String, Object> saveOrUpdateRedParam = new HashMap<>();
saveOrUpdateRedParam.put("liveId", liveID); saveOrUpdateRedParam.put("liveId", liveID);
...@@ -274,7 +262,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -274,7 +262,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
//答题红包配置 //答题红包配置
@Test(description = "新增答题红包", priority = 15) @Test(description = "新增答题红包", priority = 14)
public void 新增答题红包() { public void 新增答题红包() {
Map<String, Object> saveOrUpdate9Param = new HashMap<>(); Map<String, Object> saveOrUpdate9Param = new HashMap<>();
saveOrUpdate9Param.put("liveId", liveID); saveOrUpdate9Param.put("liveId", liveID);
...@@ -306,7 +294,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -306,7 +294,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
//直播前奖品配置 //直播前奖品配置
@Test(description = "直播前抽奖", priority = 16) @Test(description = "直播前抽奖", priority = 15)
public void 直播前抽奖() { public void 直播前抽奖() {
Map<String, Object> addParam = new HashMap<>(); Map<String, Object> addParam = new HashMap<>();
addParam.put("liveId", liveID); addParam.put("liveId", liveID);
...@@ -323,7 +311,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -323,7 +311,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
//直播中奖品配置 //直播中奖品配置
@Test(description = "直播中抽奖", priority = 17) @Test(description = "直播中抽奖", priority = 16)
public void 直播中抽奖() { public void 直播中抽奖() {
Map<String, Object> add1Param = new HashMap<>(); Map<String, Object> add1Param = new HashMap<>();
add1Param.put("liveId", liveID); add1Param.put("liveId", liveID);
...@@ -378,7 +366,7 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -378,7 +366,7 @@ public class SaveAndUpdate implements AdminAuthorization {
} }
//配置免费福利 //配置免费福利
@Test(description = "配置免费福利", priority = 18) @Test(description = "配置免费福利", priority = 17)
public void 配置免费福利() { public void 配置免费福利() {
Map<String, Object> saveOrUpdate8Param = new HashMap<>(); Map<String, Object> saveOrUpdate8Param = new HashMap<>();
saveOrUpdate8Param.put("liveId", liveID); saveOrUpdate8Param.put("liveId", liveID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment