Commit 739d3898 authored by 龚小红's avatar 龚小红

增加秒杀预告的接口用例

parent a5d6daf8
...@@ -34,8 +34,10 @@ public class RelativeLottery implements Authorization { ...@@ -34,8 +34,10 @@ public class RelativeLottery implements Authorization {
getLiveAwardListParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); getLiveAwardListParam.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(getLiveAwardListParam, MOBILE_allLottery); Response response = network.getResponse(getLiveAwardListParam, MOBILE_allLottery);
System.out.println(response.body().asString()); System.out.println(response.body().asString());
int fissionLotteryConfStatus = response.jsonPath().getInt("data.on"); int on = response.jsonPath().getInt("data.on");
Assert.assertEquals(fissionLotteryConfStatus, 1,network.message(getLiveAwardListParam, MOBILE_allLottery, "亲友配置券未开启", response.body().asString())); String confStr = Integer.toBinaryString(on);
char fissionLotteryConfStatus = confStr.charAt(confStr.length()-1);
Assert.assertEquals(fissionLotteryConfStatus, '1',network.message(getLiveAwardListParam, MOBILE_allLottery, "亲友配置券未开启", response.body().asString()));
} }
@Test(description = "仅一度用户可以领取抽奖券", priority = 2) @Test(description = "仅一度用户可以领取抽奖券", priority = 2)
......
...@@ -40,7 +40,6 @@ public class Preview implements Authorization{ ...@@ -40,7 +40,6 @@ public class Preview implements Authorization{
visitorAuth22(); visitorAuth22();
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("liveId","Kj21NDM3OTE");
Response response = network.postResponse(params,BasicConfig.ANCHOR_watchVideo); Response response = network.postResponse(params,BasicConfig.ANCHOR_watchVideo);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.ANCHOR_watchVideo,"访客观看视频的抽奖码失败",response.body().asString())); Assert.assertTrue(data,network.message(params,BasicConfig.ANCHOR_watchVideo,"访客观看视频的抽奖码失败",response.body().asString()));
......
...@@ -12,7 +12,7 @@ public class BasicConfig { ...@@ -12,7 +12,7 @@ public class BasicConfig {
public static String ADMIN_KEY="zFNkBc7JtvLPL6ifAfXbcgXf7k8AofD7jRHCDreREzhP8iW4bahfqRFePosTb9G6ESGPwScVFCQyuZBcc4brtRfaNz"; public static String ADMIN_KEY="zFNkBc7JtvLPL6ifAfXbcgXf7k8AofD7jRHCDreREzhP8iW4bahfqRFePosTb9G6ESGPwScVFCQyuZBcc4brtRfaNz";
// 直播代理人 (艳玲)ID:826 // 直播代理人 (艳玲)ID:826
public static String AUTH_KEY ="LEH7epeHVDJWzhZ6DiexTHnfZVkhkqorGGQahRCuzyKj3hQkSYMpkYma5RmZHQAbv8fiPzFX5BgoJgjF2gUVz175wz3dY"; public static String AUTH_KEY ="LEH7epeHVDJWzhZ6DiexTHnfZVkhkqorGGQahRCuzyKj3hQkSYMpkYma5RmZHQAbv8fiPzFX5BgoJgjF2gUVz175wz3dY";
// 直播代理人 (小疙瘩)ID:995 // 直播代理人 (小疙瘩)ID:995
public static String agentAuth ="LEH7epeHVDJWzhZ6DiexTHnsaP1faXTzcymSLsZVqAY5WqZQrdzjC38jMagiDc4FuL29DuBPCvuyHwDfmewFfwyW7rFLZ"; public static String agentAuth ="LEH7epeHVDJWzhZ6DiexTHnsaP1faXTzcymSLsZVqAY5WqZQrdzjC38jMagiDc4FuL29DuBPCvuyHwDfmewFfwyW7rFLZ";
//直播访客 (志勇)ID:107 //直播访客 (志勇)ID:107
public static String visitorAuth="LEH7epeHVDJWzhZ6DiexTHnfZVkhkqorGGQahRL1y3zwSbNpp1aULAhVJCVAEKsjT2ZbJ5DZhH3ZjeaCEGLsecXdXZW6n"; public static String visitorAuth="LEH7epeHVDJWzhZ6DiexTHnfZVkhkqorGGQahRL1y3zwSbNpp1aULAhVJCVAEKsjT2ZbJ5DZhH3ZjeaCEGLsecXdXZW6n";
...@@ -151,6 +151,12 @@ public class BasicConfig { ...@@ -151,6 +151,12 @@ public class BasicConfig {
public static final String MOBILE_secondKill_goodsOrder = MOBILE_HOST + "/clue/goods/order"; public static final String MOBILE_secondKill_goodsOrder = MOBILE_HOST + "/clue/goods/order";
public static final String MOBILE_secondKill_goodsOrderResult = MOBILE_HOST + "/clue/goods/order/result"; public static final String MOBILE_secondKill_goodsOrderResult = MOBILE_HOST + "/clue/goods/order/result";
public static final String MOBILE_secondKill_killGoods = MOBILE_HOST + "/clue/goods/killGoods"; public static final String MOBILE_secondKill_killGoods = MOBILE_HOST + "/clue/goods/killGoods";
public static final String MANAGER_skGoodsSavePreImg = MANAGER_HOST + "/kjy/manager/live/second/kill/goods/savePreImg";
public static final String MANAGER_skGoodsSwitchStatus = MANAGER_HOST + "/kjy/manager/live/second/kill/goods/switchStatus";
public static final String MANAGER_skGoodsSwitchDetail = MANAGER_HOST + "/kjy/manager/live/second/kill/goods/switchDetail";
public static final String ANCHOR_secondKillLists_goodsImg = MOBILE_HOST + "/kjy/live/second/kill/pre/goodsImg";
public static final String ANCHOR_secondKillLists_goodsList = MOBILE_HOST + "/kjy/live/second/kill/pre/goodsList";
public static final String ANCHOR_secondKillLists_remind = MOBILE_HOST + "/kjy/live/second/kill/pre/remind";
//客户承诺话术配置 //客户承诺话术配置
public static final String MANAGER_saveDialogue = MANAGER_HOST + "/kjy/manager/live/potential/saveDialogue"; public static final String MANAGER_saveDialogue = MANAGER_HOST + "/kjy/manager/live/potential/saveDialogue";
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +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"/>
</classes> </classes>
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
</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"/>
...@@ -94,7 +93,6 @@ ...@@ -94,7 +93,6 @@
</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"/>
......
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