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()));
......
...@@ -42,7 +42,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -42,7 +42,7 @@ public class TimeRed implements AdminAuthorization {
Response redRes = network.getResponse(Params, BasicConfig.ANCHOR_redConf); Response redRes = network.getResponse(Params, BasicConfig.ANCHOR_redConf);
List<RedConf> list1 =JsonUtil.parseResponseToPageBean(redRes,RedConf.class); List<RedConf> list1 =JsonUtil.parseResponseToPageBean(redRes,RedConf.class);
System.out.println(list1); 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 { ...@@ -66,7 +66,7 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(subscribeParam, BasicConfig.USER_SUBSCRIBE); Response response = network.postResponse(subscribeParam, BasicConfig.USER_SUBSCRIBE);
boolean data1 = subscribeRes.jsonPath().getBoolean("data"); boolean data1 = subscribeRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 { ...@@ -85,7 +85,7 @@ public class TimeRed implements AdminAuthorization {
Response response = network.getResponse(findParam, BasicConfig.USER_FIND); Response response = network.getResponse(findParam, BasicConfig.USER_FIND);
boolean data1 = findRes.jsonPath().getBoolean("data"); boolean data1 = findRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 { ...@@ -106,7 +106,7 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(savePosterParam, BasicConfig.USER_savePoster); Response response = network.postResponse(savePosterParam, BasicConfig.USER_savePoster);
boolean data1 = savePosterRes.jsonPath().getBoolean("data"); boolean data1 = savePosterRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 { ...@@ -121,14 +121,14 @@ public class TimeRed implements AdminAuthorization {
List<ResourceForm.FieldList> list=JsonUtil.parseResponseToPageBean(response,ResourceForm.FieldList.class,"fieldList"); List<ResourceForm.FieldList> list=JsonUtil.parseResponseToPageBean(response,ResourceForm.FieldList.class,"fieldList");
this.fieldList=list; this.fieldList=list;
System.out.println(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(); visitorAuth8();
Response formRes = network.getResponse(params, BasicConfig.MOBILE_Form); Response formRes = network.getResponse(params, BasicConfig.MOBILE_Form);
List<ResourceForm.FieldList> list1=JsonUtil.parseResponseToPageBean(formRes,ResourceForm.FieldList.class,"fieldList"); List<ResourceForm.FieldList> list1=JsonUtil.parseResponseToPageBean(formRes,ResourceForm.FieldList.class,"fieldList");
this.fieldList=list1; this.fieldList=list1;
System.out.println(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 { ...@@ -155,7 +155,7 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(params, BasicConfig.MOBILE_FormSubmit); Response response = network.postResponse(params, BasicConfig.MOBILE_FormSubmit);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(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(); visitorAuth8();
Map<String, Object> submitParam = new HashMap<>(); Map<String, Object> submitParam = new HashMap<>();
...@@ -174,7 +174,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -174,7 +174,7 @@ public class TimeRed implements AdminAuthorization {
Response submitRes = network.postResponse(params, BasicConfig.MOBILE_FormSubmit); Response submitRes = network.postResponse(params, BasicConfig.MOBILE_FormSubmit);
boolean data1 = response.jsonPath().getBoolean("data"); boolean data1 = response.jsonPath().getBoolean("data");
System.out.println(data1); 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 { ...@@ -189,14 +189,14 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data1 = redRes.jsonPath().getBoolean("data"); boolean data1 = redRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 { ...@@ -206,7 +206,6 @@ public class TimeRed implements AdminAuthorization {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("id",this.id.get(0).getId()); Params.put("id",this.id.get(0).getId());
visitorAuth9(); visitorAuth9();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response response = network.getResponse(Params, BasicConfig.ANCHOR_openState); Response response = network.getResponse(Params, BasicConfig.ANCHOR_openState);
...@@ -214,7 +213,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -214,7 +213,7 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data); System.out.println(data);
Integer state = response.jsonPath().getInt("data.state"); Integer state = response.jsonPath().getInt("data.state");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
...@@ -223,16 +222,45 @@ public class TimeRed implements AdminAuthorization { ...@@ -223,16 +222,45 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data1); System.out.println(data1);
Integer state1 = stateRes.jsonPath().getInt("data.state"); Integer state1 = stateRes.jsonPath().getInt("data.state");
System.out.println(state1); 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<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("id",this.id.get(1).getId()); Params.put("id",this.id.get(1).getId());
...@@ -241,27 +269,24 @@ public class TimeRed implements AdminAuthorization { ...@@ -241,27 +269,24 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data1 = redRes.jsonPath().getBoolean("data"); boolean data1 = redRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 = 10) @Test(description = "查询开启第2轮红包结果", priority = 12)
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.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("id",this.id.get(1).getId()); Params.put("id",this.id.get(1).getId());
visitorAuth9(); visitorAuth9();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response response = network.getResponse(Params, BasicConfig.ANCHOR_openState); Response response = network.getResponse(Params, BasicConfig.ANCHOR_openState);
...@@ -269,7 +294,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -269,7 +294,7 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data); System.out.println(data);
Integer state = response.jsonPath().getInt("data.state"); Integer state = response.jsonPath().getInt("data.state");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
...@@ -278,13 +303,34 @@ public class TimeRed implements AdminAuthorization { ...@@ -278,13 +303,34 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data1); System.out.println(data1);
Integer state1 = stateRes.jsonPath().getInt("data.state"); Integer state1 = stateRes.jsonPath().getInt("data.state");
System.out.println(state1); 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轮红包() { public void 开启第3轮红包() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
...@@ -295,18 +341,18 @@ public class TimeRed implements AdminAuthorization { ...@@ -295,18 +341,18 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data1 = redRes.jsonPath().getBoolean("data"); boolean data1 = redRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 = 12) @Test(description = "查询开启第3轮红包结果", priority = 15)
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.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
...@@ -318,7 +364,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -318,7 +364,7 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data); System.out.println(data);
Integer state = response.jsonPath().getInt("data.state"); Integer state = response.jsonPath().getInt("data.state");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
...@@ -327,14 +373,34 @@ public class TimeRed implements AdminAuthorization { ...@@ -327,14 +373,34 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data1); System.out.println(data1);
Integer state1 = stateRes.jsonPath().getInt("data.state"); Integer state1 = stateRes.jsonPath().getInt("data.state");
System.out.println(state1); 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 = 13) @Test(description = "开启第4轮红包", priority = 17)
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.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
...@@ -344,19 +410,19 @@ public class TimeRed implements AdminAuthorization { ...@@ -344,19 +410,19 @@ public class TimeRed implements AdminAuthorization {
Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response response = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen); Response redRes = network.postResponse(Params, BasicConfig.ANCHOR_redOpen);
boolean data1 = redRes.jsonPath().getBoolean("data"); boolean data1 = redRes.jsonPath().getBoolean("data");
System.out.println(data1); 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 = 14) @Test(description = "查询开启第4轮红包结果", priority = 18)
public void 查询开启第4轮红包结果() { public void 查询开启第4轮红包结果() {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
...@@ -369,7 +435,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -369,7 +435,7 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data); System.out.println(data);
Integer state = response.jsonPath().getInt("data.state"); Integer state = response.jsonPath().getInt("data.state");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
...@@ -378,61 +444,41 @@ public class TimeRed implements AdminAuthorization { ...@@ -378,61 +444,41 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data1); System.out.println(data1);
Integer state1 = stateRes.jsonPath().getInt("data.state"); Integer state1 = stateRes.jsonPath().getInt("data.state");
System.out.println(state1); System.out.println(state1);
Assert.assertTrue(state1==2, network.message(Params, BasicConfig.ANCHOR_openState, "查询开启第4轮红包结果失败", stateRes.body().asString())); Assert.assertTrue(state1==2, network.message(Params, BasicConfig.ANCHOR_openState, "访客I未领取第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()));
} }
//提现 //提现
@Test(description = "查询提现页面展示数据", priority = 16) @Test(description = "查询提现页面展示数据", priority = 19)
public void 查询提现页面展示数据() { public void 查询提现页面展示数据() {
ThreadSleepUtils.sleep(3000);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
visitorAuth9(); visitorAuth9();
ThreadSleepUtils.sleep(1000);
Response response = network.getResponse(Params, BasicConfig.ANCHOR_withdrawDetail); Response response = network.getResponse(Params, BasicConfig.ANCHOR_withdrawDetail);
Object data =response.jsonPath().getJsonObject("data"); Object data =response.jsonPath().getJsonObject("data");
System.out.println(data); System.out.println(data);
Integer surplusNum = response.jsonPath().getInt("data.surplusNum"); Integer surplusNum = response.jsonPath().getInt("data.surplusNum");
System.out.println(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(); visitorAuth8();
ThreadSleepUtils.sleep(1000);
Response withdrawDetailRes = network.getResponse(Params, BasicConfig.ANCHOR_withdrawDetail); Response withdrawDetailRes = network.getResponse(Params, BasicConfig.ANCHOR_withdrawDetail);
Object data1 =withdrawDetailRes.jsonPath().getJsonObject("data"); Object data1 =withdrawDetailRes.jsonPath().getJsonObject("data");
System.out.println(data1); System.out.println(data1);
Integer surplusNum1 = withdrawDetailRes.jsonPath().getInt("data.surplusNum"); Integer surplusNum1 = withdrawDetailRes.jsonPath().getInt("data.surplusNum");
System.out.println(surplusNum1); 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) @Test(description = "攒现金红包提现", priority = 20)
public void 访客H攒现金红包提现() { public void 攒现金红包提现() {
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
...@@ -447,14 +493,14 @@ public class TimeRed implements AdminAuthorization { ...@@ -447,14 +493,14 @@ public class TimeRed implements AdminAuthorization {
Response withdrawRes = network.postResponse(Params, BasicConfig.ANCHOR_withdraw); Response withdrawRes = network.postResponse(Params, BasicConfig.ANCHOR_withdraw);
boolean data1 =withdrawRes.jsonPath().getBoolean("data"); boolean data1 =withdrawRes.jsonPath().getBoolean("data");
System.out.println(data1); 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) @Test(description = "攒现金红包提现结果", priority = 21)
public void 访客H攒现金红包提现结果() { public void 攒现金红包提现结果() {
visitorAuth9(); visitorAuth9();
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
...@@ -477,12 +523,12 @@ public class TimeRed implements AdminAuthorization { ...@@ -477,12 +523,12 @@ public class TimeRed implements AdminAuthorization {
System.out.println(data1); System.out.println(data1);
Integer withdrawStatus1 =withdrawStatusRes.jsonPath().getInt("data.withdrawStatus"); Integer withdrawStatus1 =withdrawStatusRes.jsonPath().getInt("data.withdrawStatus");
System.out.println(withdrawStatus1); 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 领取抽奖码() { public void 领取抽奖码() {
visitorAuth8(); visitorAuth8();
ThreadSleepUtils.sleep(1000); ThreadSleepUtils.sleep(1000);
...@@ -495,7 +541,7 @@ public class TimeRed implements AdminAuthorization { ...@@ -495,7 +541,7 @@ public class TimeRed implements AdminAuthorization {
} }
@Test(description = "领取抽奖码结果", priority = 20) @Test(description = "领取抽奖码结果", priority = 23)
public void 领取抽奖码结果() { public void 领取抽奖码结果() {
visitorAuth8(); visitorAuth8();
ThreadSleepUtils.sleep(500); ThreadSleepUtils.sleep(500);
...@@ -508,8 +554,8 @@ public class TimeRed implements AdminAuthorization { ...@@ -508,8 +554,8 @@ public class TimeRed implements AdminAuthorization {
} }
@Test(description = "访客H的抽奖券列表", priority = 21) @Test(description = "访客I的抽奖券列表", priority = 24)
public void 访客H的抽奖券列表() { public void 访客I的抽奖券列表() {
visitorAuth8(); visitorAuth8();
ThreadSleepUtils.sleep(3000); ThreadSleepUtils.sleep(3000);
Map<String, Object> myLotteryCodeParam = new HashMap<>(); Map<String, Object> myLotteryCodeParam = new HashMap<>();
...@@ -525,12 +571,32 @@ public class TimeRed implements AdminAuthorization { ...@@ -525,12 +571,32 @@ public class TimeRed implements AdminAuthorization {
break; 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 = 22) @Test(description = "查询领取统计", priority = 26)
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";
// *************** 免费领福利 *************** // *************** 免费领福利 ***************
......
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="直播" verbose="1" thread-count="3"> <suite name="直播" verbose="1" thread-count="3">
<test preserve-order="true" name="直播素材"> <!-- <test preserve-order="true" name="直播素材">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.liveConfig.LiveMaterial"/> <!-- <class name="com.kjj.cases.live.liveConfig.LiveMaterial"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="团队管理"> <!-- <test preserve-order="true" name="团队管理">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.liveConfig.Team"/> <!-- <class name="com.kjj.cases.live.liveConfig.Team"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="精彩视频"> <!-- <test preserve-order="true" name="精彩视频">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.liveConfig.Video"/> <!-- <class name="com.kjj.cases.live.liveConfig.Video"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="创建直播"> <test preserve-order="true" name="创建直播">
<classes> <classes>
...@@ -43,31 +43,31 @@ ...@@ -43,31 +43,31 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="翻牌红包"> <!-- <test preserve-order="true" name="翻牌红包">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.flipCard.FlipCard"/> <!-- <class name="com.kjj.cases.live.flipCard.FlipCard"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="中奖规则配置"> <!-- <test preserve-order="true" name="中奖规则配置">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.liveConfig.WinningRules"/> <!-- <class name="com.kjj.cases.live.liveConfig.WinningRules"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="指定中奖"> <!-- <test preserve-order="true" name="指定中奖">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.lottery.DesignatedWinner"/> <!-- <class name="com.kjj.cases.live.lottery.DesignatedWinner"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="直播前-我的客户页"> <!-- <test preserve-order="true" name="直播前-我的客户页">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.agent.LiveBefore"/> <!-- <class name="com.kjj.cases.live.agent.LiveBefore"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="助播-开启直播"> <test preserve-order="true" name="助播-开启直播">
...@@ -76,29 +76,29 @@ ...@@ -76,29 +76,29 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="访客签到"> <!-- <test preserve-order="true" name="访客签到">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.lotteryCode.SignIn"/> <!-- <class name="com.kjj.cases.live.lotteryCode.SignIn"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="宝箱裂变"> <!-- <test preserve-order="true" name="宝箱裂变">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.treasure.Treasure"/> <!-- <class name="com.kjj.cases.live.treasure.Treasure"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="直播中抽奖"> <!-- <test preserve-order="true" name="直播中抽奖">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.lottery.Lottery"/> <!-- <class name="com.kjj.cases.live.lottery.Lottery"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="猜数字红包"> <!-- <test preserve-order="true" name="猜数字红包">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.guess.LiveGuess"/> <!-- <class name="com.kjj.cases.live.guess.LiveGuess"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="看直播攒现金"> <test preserve-order="true" name="看直播攒现金">
<classes> <classes>
...@@ -106,53 +106,53 @@ ...@@ -106,53 +106,53 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="免费领福利"> <!-- <test preserve-order="true" name="免费领福利">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.FreeReward.FreeReward"/> <!-- <class name="com.kjj.cases.live.FreeReward.FreeReward"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="访客领取资料"> <!-- <test preserve-order="true" name="访客领取资料">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.anchor.LiveVisitors"/> <!-- <class name="com.kjj.cases.live.anchor.LiveVisitors"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="红包领取"> <!-- <test preserve-order="true" name="红包领取">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.red.LiveVistorRed"/> <!-- <class name="com.kjj.cases.live.red.LiveVistorRed"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="有奖答题"> <!-- <test preserve-order="true" name="有奖答题">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.answer.Answer"/> <!-- <class name="com.kjj.cases.live.answer.Answer"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="投票"> <!-- <test preserve-order="true" name="投票">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.choice.Choice"/> <!-- <class name="com.kjj.cases.live.choice.Choice"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="问题"> <!-- <test preserve-order="true" name="问题">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.question.Question"/> <!-- <class name="com.kjj.cases.live.question.Question"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="直播中时长宝箱"> <!-- <test preserve-order="true" name="直播中时长宝箱">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.treasure.TreasureTime"/> <!-- <class name="com.kjj.cases.live.treasure.TreasureTime"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="直播中获取线索统计"> <!-- <test preserve-order="true" name="直播中获取线索统计">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.agent.LiveAgent"/> <!-- <class name="com.kjj.cases.live.agent.LiveAgent"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="助播-结束直播"> <test preserve-order="true" name="助播-结束直播">
<classes> <classes>
...@@ -160,40 +160,40 @@ ...@@ -160,40 +160,40 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="直播结束-我的客户页"> <!-- <test preserve-order="true" name="直播结束-我的客户页">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.agent.LiveLater"/> <!-- <class name="com.kjj.cases.live.agent.LiveLater"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="奖品发放配置-不开启核奖"> <!-- <test preserve-order="true" name="奖品发放配置-不开启核奖">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.signing.NuclearAward"/> <!-- <class name="com.kjj.cases.live.signing.NuclearAward"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="扫码签收核奖_不开启红包"> <!-- <test preserve-order="true" name="扫码签收核奖_不开启红包">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.signing.SignAward"/> <!-- <class name="com.kjj.cases.live.signing.SignAward"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="扫码签收核奖_代理人得红包"> <!-- <test preserve-order="true" name="扫码签收核奖_代理人得红包">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.signing.AgentOpen"/> <!-- <class name="com.kjj.cases.live.signing.AgentOpen"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="扫码签收核奖_客户得红包"> <!-- <test preserve-order="true" name="扫码签收核奖_客户得红包">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.signing.UserOpen"/> <!-- <class name="com.kjj.cases.live.signing.UserOpen"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="指定中奖付款码"> <!-- <test preserve-order="true" name="指定中奖付款码">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.live.liveConfig.spec"/> <!-- <class name="com.kjj.cases.live.liveConfig.spec"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
</suite> </suite>
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