Commit 6c66e503 authored by 龚小红's avatar 龚小红

Merge branch 'gitfeature/20210917-gxh' into 'master'

Gitfeature/20210917 gxh

See merge request test-group/kejiji!121
parents 5ca9cb95 41ee78f9
...@@ -6,5 +6,6 @@ import lombok.Data; ...@@ -6,5 +6,6 @@ import lombok.Data;
public class VoList { public class VoList {
private String name; private String name;
private String msg; private String msg;
private String replyUserId;
private String replyName;
} }
This diff is collapsed.
...@@ -50,7 +50,7 @@ public class SaveLive implements Authorization { ...@@ -50,7 +50,7 @@ public class SaveLive implements Authorization {
Params.put("mpShareUrl", "https://streamimg.kjjcrm.com/kjy/image/20210201/182f3659e39b4ea6898af781cc6344a1.jpg"); Params.put("mpShareUrl", "https://streamimg.kjjcrm.com/kjy/image/20210201/182f3659e39b4ea6898af781cc6344a1.jpg");
Params.put("title", "直播测试" + RandomUtils.nextInt(1, 100)); Params.put("title", "直播测试" + RandomUtils.nextInt(1, 100));
Params.put("mpShareTitle", "自动化直播"); Params.put("mpShareTitle", "自动化直播");
Params.put("companyId", 101); Params.put("companyId", 101);//公司
Params.put("agentInviteAuthType", 1); Params.put("agentInviteAuthType", 1);
Params.put("agentInviteAuthLimitNum", 1); Params.put("agentInviteAuthLimitNum", 1);
long noticeTime = DateUtils.addHours(new Date(), 2).getTime(); long noticeTime = DateUtils.addHours(new Date(), 2).getTime();
......
...@@ -55,8 +55,4 @@ public class spec implements Authorization { ...@@ -55,8 +55,4 @@ public class spec implements Authorization {
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_saveSpecifyAwardConf, "新增指定中奖付款码失败", response.body().asString())); Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_saveSpecifyAwardConf, "新增指定中奖付款码失败", response.body().asString()));
} }
} }
...@@ -180,117 +180,4 @@ public class Question implements Authorization { ...@@ -180,117 +180,4 @@ public class Question implements Authorization {
Assert.assertNotNull(data, network.message(params, BasicConfig.MOBILE_ClueNotice, "代理人端公告查询失败", response.body().asString())); Assert.assertNotNull(data, network.message(params, BasicConfig.MOBILE_ClueNotice, "代理人端公告查询失败", response.body().asString()));
} }
public long time;
//***************评论***************//
//助播端历史评论200条
@Test(description = "助播端历史评论200条", priority = 12)
public void 助播端查询历史评论()
{
ThreadSleepUtils.sleep(5000);
adminAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeAdmin);
System.out.println(response.body().asString());
SpokeList list= JsonUtil.parseResponseToBeanTT(response, SpokeList.class);
time=list.getNow();
System.out.println(time);
System.out.println(System.currentTimeMillis() + "," + JSON.toJSONString(list));
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeAdmin, "助播端评论查询失败", response.body().asString()));
}
//助播端评论区实时评论查询
@Test(description = "助播端评论区实时评论查询", priority = 13)
public void 助播端评论区实时评论查询()
{
adminAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("time", time);
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeList);
Spolist list= JsonUtil.parseResponseToBeanTT(response, Spolist.class);
System.out.println(list);
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeList, "助播端评论区实时评论查询失败", response.body().asString()));
}
//访客端评论区历史评论
@Test(description = "访客端评论区历史评论", priority = 14)
public void 访客端评论区历史评论()
{
visitorAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeHistoryList);
SpokeList list= JsonUtil.parseResponseToBeanTT(response, SpokeList.class);
System.out.println(list);
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeHistoryList, "访客端评论区历史评论失败", response.body().asString()));
}
//直播间访客发送给评论
@Test(description = "直播间访客发送给评论", priority = 15)
public void 直播间访客发送给评论()
{
visitorAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("msg", "主播真有气质");
Response response = network.postResponse(params, BasicConfig.MOBILE_SpokeSend);
System.out.println(response);
Assert.assertNotNull(response, network.message(params, BasicConfig.MOBILE_SpokeSend, "直播间访客发送给评论失败", response.body().asString()));
}
//直播间访客查询实时评论
@Test(description = "直播间访客查询实时评论", priority = 16)
public void 直播间访客查询实时评论()
{
visitorAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("time", time);
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeList);
Spolist list= JsonUtil.parseResponseToBeanTT(response, Spolist.class);
System.out.println(list);
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeList, "直播间访客查询实时评论失败", response.body().asString()));
}
//代理端评论区历史评论
@Test(description = "代理端评论区历史评论", priority = 17)
public void 代理端评论区历史评论()
{
agentAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeHistoryList);
SpokeList list= JsonUtil.parseResponseToBeanTT(response, SpokeList.class);
System.out.println(list);
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeHistoryList, "代理端评论区历史评论失败", response.body().asString()));
}
//代理端访客发送给评论
@Test(description = "直播间代理端发送给评论", priority = 18)
public void 直播间代理端发送给评论()
{
agentAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("msg", "主播真有气质");
Response response = network.postResponse(params, BasicConfig.MOBILE_SpokeSend);
System.out.println(response);
Assert.assertNotNull(response, network.message(params, BasicConfig.MOBILE_SpokeSend, "直播间访客发送给评论失败", response.body().asString()));
}
//直播间代理端查询实时评论
@Test(description = "直播间代理端查询实时评论", priority = 19)
public void 直播间代理端查询实时评论()
{
agentAuth();
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("time", time);
Response response = network.getResponse(params, BasicConfig.MOBILE_SpokeList);
Spolist list= JsonUtil.parseResponseToBeanTT(response, Spolist.class);
System.out.println(list);
Assert.assertNotNull(list, network.message(params, BasicConfig.MOBILE_SpokeList, "直播间访客查询实时评论失败", response.body().asString()));
}
} }
...@@ -457,6 +457,7 @@ public class TimeRed implements Authorization { ...@@ -457,6 +457,7 @@ public class TimeRed implements Authorization {
Params.clear(); Params.clear();
Params.put("redRoundId",list.get(4).getId()); Params.put("redRoundId",list.get(4).getId());
response = network.postResponse(Params, BasicConfig.MANAGER_deleteTask); response = network.postResponse(Params, BasicConfig.MANAGER_deleteTask);
System.out.println(response.body().asString());
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
System.out.println(response.body().asString()); System.out.println(response.body().asString());
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_deleteTask, "删除第5轮时长红包任务失败", response.body().asString())); Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_deleteTask, "删除第5轮时长红包任务失败", response.body().asString()));
......
...@@ -60,8 +60,8 @@ public class TreasureTime implements Authorization { ...@@ -60,8 +60,8 @@ public class TreasureTime implements Authorization {
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("treasureConfId",this.treasureConfId.get(0).getTreasureConfId()); params.put("treasureConfId",this.treasureConfId.get(0).getTreasureConfId());
Response response = network.postResponse(params, BasicConfig.MOBILE_finish); Response response = network.postResponse(params, BasicConfig.MOBILE_finish);
System.out.println(response.body().asString());
boolean data=response.jsonPath().getBoolean("data"); boolean data=response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_finish, "访客H获取宝箱参与情况失败", response.body().asString())); Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_finish, "访客H获取宝箱参与情况失败", response.body().asString()));
} }
...@@ -73,6 +73,7 @@ public class TreasureTime implements Authorization { ...@@ -73,6 +73,7 @@ public class TreasureTime implements Authorization {
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()));
Response response = network.getResponse(params, BasicConfig.MOBILE_joinDetail1); Response response = network.getResponse(params, BasicConfig.MOBILE_joinDetail1);
System.out.println(response.body().asString());
List<CondDetail> treasureList = JsonUtil.parseResponseToListBean(response, CondDetail.class,"condDetail"); List<CondDetail> treasureList = JsonUtil.parseResponseToListBean(response, CondDetail.class,"condDetail");
boolean finishFlag=treasureList.get(0).isFinishFlag(); boolean finishFlag=treasureList.get(0).isFinishFlag();
System.out.println(finishFlag); System.out.println(finishFlag);
...@@ -88,8 +89,8 @@ public class TreasureTime implements Authorization { ...@@ -88,8 +89,8 @@ public class TreasureTime implements Authorization {
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("treasureConfId",this.treasureConfId.get(0).getTreasureConfId()); params.put("treasureConfId",this.treasureConfId.get(0).getTreasureConfId());
Response response = network.postResponse(params, BasicConfig.MOBILE_treasureOpen); Response response = network.postResponse(params, BasicConfig.MOBILE_treasureOpen);
System.out.println(response.body().asString());
boolean data=response.jsonPath().getBoolean("data"); boolean data=response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_treasureOpen, "访客H开启第1个宝箱失败", response.body().asString())); Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_treasureOpen, "访客H开启第1个宝箱失败", response.body().asString()));
} }
......
...@@ -520,8 +520,6 @@ public class BasicConfig { ...@@ -520,8 +520,6 @@ public class BasicConfig {
public static final String MANAGER_CompanyVideoDown = MANAGER_HOST + "/kjy/manager/live/company/video/down"; public static final String MANAGER_CompanyVideoDown = MANAGER_HOST + "/kjy/manager/live/company/video/down";
public static final String MANAGER_CompanyVideoDelete = MANAGER_HOST + "/kjy/manager/live/company/video/delete"; public static final String MANAGER_CompanyVideoDelete = MANAGER_HOST + "/kjy/manager/live/company/video/delete";
//查询资料列表// //查询资料列表//
public static final String MOBILE_Resource = MOBILE_HOST + "/clue/resource/list"; public static final String MOBILE_Resource = MOBILE_HOST + "/clue/resource/list";
public static final String MOBILE_ResourceOn = MOBILE_HOST + "/conf/live/push/on"; public static final String MOBILE_ResourceOn = MOBILE_HOST + "/conf/live/push/on";
...@@ -576,6 +574,8 @@ public class BasicConfig { ...@@ -576,6 +574,8 @@ public class BasicConfig {
public static final String MOBILE_SpokeList = MOBILE_SPOKEHOST + "/spoke/list"; public static final String MOBILE_SpokeList = MOBILE_SPOKEHOST + "/spoke/list";
public static final String MOBILE_SpokeHistoryList = MOBILE_SPOKEHOST + "/spoke/historyList"; public static final String MOBILE_SpokeHistoryList = MOBILE_SPOKEHOST + "/spoke/historyList";
public static final String MOBILE_SpokeSend = MOBILE_SPOKEHOST + "/spoke/send"; public static final String MOBILE_SpokeSend = MOBILE_SPOKEHOST + "/spoke/send";
public static final String MANAGER_send = MANAGER_HOST + "/kjy/manager/live/spoke/send";
public static final String MOBILE_bannedSpoke = MOBILE_HOST + "/kjy/admin/bannedSpoke";
//红包// //红包//
public static final String MOBILE_AnchorRedList = MOBILE_HOST + "/conf/live/red/findRedList"; public static final String MOBILE_AnchorRedList = MOBILE_HOST + "/conf/live/red/findRedList";
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<class name="com.kjj.cases.live.liveConfig.SaveLive"/> <class name="com.kjj.cases.live.liveConfig.SaveLive"/>
</classes> </classes>
</test> </test>
<test preserve-order="true" name="配置秒杀轮次及秒杀预告"> <test preserve-order="true" name="配置秒杀轮次及秒杀预告">
<classes> <classes>
<class name="com.kjj.cases.live.secondKill.ConfSecondKill"/> <class name="com.kjj.cases.live.secondKill.ConfSecondKill"/>
...@@ -47,7 +48,6 @@ ...@@ -47,7 +48,6 @@
</classes> </classes>
</test> </test>
<test preserve-order="true" name="代理人首页"> <test preserve-order="true" name="代理人首页">
<classes> <classes>
<class name="com.kjj.cases.live.agent.Agent"/> <class name="com.kjj.cases.live.agent.Agent"/>
...@@ -110,6 +110,12 @@ ...@@ -110,6 +110,12 @@
<class name="com.kjj.cases.live.anchor.OpenLive"/> <class name="com.kjj.cases.live.anchor.OpenLive"/>
</classes> </classes>
</test> </test>
<test preserve-order="true" name="评论及回复">
<classes>
<class name="com.kjj.cases.live.liveConfig.Comment"/>
</classes>
</test>
<test preserve-order="true" name="直播中编辑资料"> <test preserve-order="true" name="直播中编辑资料">
<classes> <classes>
<class name="com.kjj.cases.live.liveConfig.EvaluationConf"/> <class name="com.kjj.cases.live.liveConfig.EvaluationConf"/>
......
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