Commit 7302f1ab authored by xiamengchen's avatar xiamengchen

新增访客/代理人直播结束页部分

parent 190bc511
......@@ -327,4 +327,28 @@ public class LiveLater implements Authorization {
System.out.println(clueList);
Assert.assertNotNull(clueList,network.message(params,BasicConfig.MOBILE_clueChanceList,"跟进机会获取失败",response.body().asString()));
}
// 直播结束页
@Test(description = "本场直播线索统计", priority = 19)
public void 本场直播线索统计() {
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = null;
int liveStatus;
try {
for (int i = 0; i < 10; i++){
response = network.getResponse(params, BasicConfig.AGENT_liveEnd);
liveStatus = response.jsonPath().getInt("data.liveStatus");
System.out.println(liveStatus);
if (liveStatus == 5) break;
}
System.out.println(response.body().asString());
int lotteryCount = response.jsonPath().getInt("data.lotteryCount");
int submitFormCount = response.jsonPath().getInt("data.submitFormCount");
Assert.assertTrue(lotteryCount > 0, network.message(params, BasicConfig.AGENT_liveEnd, "直播内中奖用户数错误", response.body().asString()));
Assert.assertTrue(submitFormCount > 0, network.message(params, BasicConfig.AGENT_liveEnd, "直播内提交表单用户数错误", response.body().asString()));
}catch (NullPointerException e){
e.printStackTrace();
}
}
}
......@@ -454,6 +454,9 @@ public class BasicConfig {
public static final String MOBILE_clueList = MOBILE_HOST + "/kjy/live/agent/clue/list";
public static final String MOBILE_livingClueStatistic = MOBILE_HOST + "/kjy/live/agent/clue/livingClueStatistic";
//直播结束页
public static final String AGENT_liveEnd = MOBILE_HOST + "/kjy/live/agent/liveEnd";
//排行榜
public static final String MOBILE_allRewardList = MOBILE_HOST + "/kjy/live/reward/allRewardList";
public static final String MOBILE_companyTotalData = MOBILE_HOST + "/kjy/live/team/companyTotalData";
......
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