Commit 611b97ec authored by 张艳玲's avatar 张艳玲

update

parent 6409e551
...@@ -1525,18 +1525,8 @@ public class SaveLive implements AdminAuthorization { ...@@ -1525,18 +1525,8 @@ public class SaveLive implements AdminAuthorization {
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_saveOrUpdateReceiveNum, "攒现金红包领取人数配置添加失败", response.body().asString())); 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 = 79) @Test(description = "添加第1轮赞现金任务", priority = 78)
public void 添加第1轮赞现金任务() { public void 添加第1轮赞现金任务() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1549,7 +1539,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1549,7 +1539,7 @@ public class SaveLive implements AdminAuthorization {
} }
public List<RedList> redId; public List<RedList> redId;
@Test(description = "查询第1轮红包配置列表", priority = 80) @Test(description = "查询第1轮红包配置列表", priority = 79)
public void 查询第1轮红包配置列表() { public void 查询第1轮红包配置列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1562,7 +1552,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1562,7 +1552,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第1轮红包配置列表失败", response.body().asString())); Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第1轮红包配置列表失败", response.body().asString()));
} }
@Test(description = "查询第1轮红包详情", priority = 81) @Test(description = "查询第1轮红包详情", priority = 80)
public void 查询第1轮红包详情() { public void 查询第1轮红包详情() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("id", this.redId.get(0).getId()); Params.put("id", this.redId.get(0).getId());
...@@ -1573,7 +1563,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1573,7 +1563,7 @@ public class SaveLive implements AdminAuthorization {
} }
public List<RedList> bizConfId; public List<RedList> bizConfId;
@Test(description = "查询权益列表", priority = 82) @Test(description = "查询权益列表", priority = 81)
public void 查询权益列表() { public void 查询权益列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1584,7 +1574,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1584,7 +1574,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_resourceList1, "查询权益列表失败", response.body().asString())); Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_resourceList1, "查询权益列表失败", response.body().asString()));
} }
@Test(description = "保存第2轮配置红包", priority = 83) @Test(description = "保存第2轮配置红包", priority = 82)
public void 保存第2轮配置红包() { public void 保存第2轮配置红包() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1601,7 +1591,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1601,7 +1591,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(data, network.message(Params, BasicConfig.MANAGER_TimeRedSave, "保存第2轮配置红包失败", response.body().asString())); Assert.assertNotNull(data, network.message(Params, BasicConfig.MANAGER_TimeRedSave, "保存第2轮配置红包失败", response.body().asString()));
} }
@Test(description = "查询第2轮红包配置列表", priority = 84) @Test(description = "查询第2轮红包配置列表", priority = 83)
public void 查询第2轮红包配置列表() { public void 查询第2轮红包配置列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1614,7 +1604,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1614,7 +1604,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第2轮红包配置列表失败", response.body().asString())); Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第2轮红包配置列表失败", response.body().asString()));
} }
@Test(description = "查询第2轮时长红包详情", priority = 85) @Test(description = "查询第2轮时长红包详情", priority = 84)
public void 查询第2轮时长红包详情() { public void 查询第2轮时长红包详情() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("id",this.redId.get(1).getId()); Params.put("id",this.redId.get(1).getId());
...@@ -1626,7 +1616,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1626,7 +1616,7 @@ public class SaveLive implements AdminAuthorization {
} }
@Test(description = "保存第3轮配置红包", priority = 86) @Test(description = "保存第3轮配置红包", priority = 85)
public void 保存第3轮配置红包() { public void 保存第3轮配置红包() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1642,7 +1632,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1642,7 +1632,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(data, network.message(Params, BasicConfig.MANAGER_TimeRedSave, "保存第3轮配置红包失败", response.body().asString())); Assert.assertNotNull(data, network.message(Params, BasicConfig.MANAGER_TimeRedSave, "保存第3轮配置红包失败", response.body().asString()));
} }
@Test(description = "查询第3轮红包配置列表", priority = 87) @Test(description = "查询第3轮红包配置列表", priority = 86)
public void 查询第3轮红包配置列表() { public void 查询第3轮红包配置列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1657,7 +1647,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1657,7 +1647,7 @@ public class SaveLive implements AdminAuthorization {
//查询红包详情 //查询红包详情
@Test(description = "查询第3轮时长红包详情", priority = 88) @Test(description = "查询第3轮时长红包详情", priority = 87)
public void 查询第3轮时长红包详情() { public void 查询第3轮时长红包详情() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("id",this.redId.get(2).getId() ); Params.put("id",this.redId.get(2).getId() );
...@@ -1668,7 +1658,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1668,7 +1658,7 @@ public class SaveLive implements AdminAuthorization {
} }
@Test(description = "保存第4轮配置红包", priority = 89) @Test(description = "保存第4轮配置红包", priority = 88)
public void 保存第4轮配置红包() { public void 保存第4轮配置红包() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1685,7 +1675,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1685,7 +1675,7 @@ public class SaveLive implements AdminAuthorization {
} }
@Test(description = "查询第4轮红包配置列表", priority = 90) @Test(description = "查询第4轮红包配置列表", priority = 89)
public void 查询第4轮红包配置列表() { public void 查询第4轮红包配置列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1698,7 +1688,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1698,7 +1688,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第2轮红包配置列表失败", response.body().asString())); Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询第2轮红包配置列表失败", response.body().asString()));
} }
@Test(description = "查询第4轮时长红包详情", priority = 91) @Test(description = "查询第4轮时长红包详情", priority = 90)
public void 查询第4轮时长红包详情() { public void 查询第4轮时长红包详情() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("id",this.redId.get(3).getId() ); Params.put("id",this.redId.get(3).getId() );
...@@ -1709,7 +1699,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1709,7 +1699,7 @@ public class SaveLive implements AdminAuthorization {
} }
@Test(description = "查询轮次红包配置列表", priority = 92) @Test(description = "查询轮次红包配置列表", priority = 91)
public void 查询轮次红包配置列表() { public void 查询轮次红包配置列表() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1721,7 +1711,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1721,7 +1711,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询轮次红包配置列表失败", response.body().asString())); Assert.assertNotNull(list, network.message(Params, BasicConfig.MANAGER_timeRedList, "查询轮次红包配置列表失败", response.body().asString()));
} }
@Test(description = "查询开关状态", priority = 93) @Test(description = "查询开关状态", priority = 92)
public void 查询开关状态() { public void 查询开关状态() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
...@@ -1731,7 +1721,7 @@ public class SaveLive implements AdminAuthorization { ...@@ -1731,7 +1721,7 @@ public class SaveLive implements AdminAuthorization {
Assert.assertFalse(data, network.message(Params, BasicConfig.MANAGER_switchDetail, "查询开关状态失败", response.body().asString())); Assert.assertFalse(data, network.message(Params, BasicConfig.MANAGER_switchDetail, "查询开关状态失败", response.body().asString()));
} }
@Test(description = "开启攒现金红包配置", priority = 94) @Test(description = "开启攒现金红包配置", priority = 93)
public void 开启攒现金红包配置() { public void 开启攒现金红包配置() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
......
...@@ -111,7 +111,7 @@ public class BasicConfig { ...@@ -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_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_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_state = MOBILE_HOST + "/kjy/live/time/red/code/state";
public static final String ANCHOR_tasks = MOBILE_HOST + "/kjy/live/time/red/tasks";
// *************** 免费领福利 *************** // *************** 免费领福利 ***************
......
This diff is collapsed.
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