Commit 9e092743 authored by 龚小红's avatar 龚小红

Merge remote-tracking branch 'origin/master' into gitfeature/20210917-gxh

parents ce51c1eb 5ca9cb95
...@@ -177,6 +177,7 @@ public class FlipCard implements Authorization { ...@@ -177,6 +177,7 @@ public class FlipCard implements Authorization {
} }
/*
@Test(description = "已登录查询分享人头像昵称", priority = 11) @Test(description = "已登录查询分享人头像昵称", priority = 11)
public void 已登录查询分享人头像昵称() { public void 已登录查询分享人头像昵称() {
...@@ -201,7 +202,6 @@ public class FlipCard implements Authorization { ...@@ -201,7 +202,6 @@ public class FlipCard implements Authorization {
} }
/*
@Test(description = "访客H获得助力", priority = 12) @Test(description = "访客H获得助力", priority = 12)
public void 访客H获得助力() { public void 访客H获得助力() {
......
...@@ -1886,6 +1886,7 @@ public class SaveLive implements Authorization { ...@@ -1886,6 +1886,7 @@ public class SaveLive implements Authorization {
Params.put("redAmount",30); Params.put("redAmount",30);
Params.put("redProbability",100); Params.put("redProbability",100);
Params.put("ruleType",1); Params.put("ruleType",1);
Params.put("showType", 0); // 取消红包封面最高66元标签展示
Response response = network.postResponse(Params, BasicConfig.MANAGER_redSaveOrUpdate); Response response = network.postResponse(Params, BasicConfig.MANAGER_redSaveOrUpdate);
System.out.println(response.body().asString()); System.out.println(response.body().asString());
boolean data=response.jsonPath().getBoolean("data"); boolean data=response.jsonPath().getBoolean("data");
......
...@@ -361,9 +361,8 @@ public class Lottery implements Authorization { ...@@ -361,9 +361,8 @@ public class Lottery implements Authorization {
Assert.assertTrue(firstGet, network.message(Params, BasicConfig.ANCHOR_getRed, "非第1次获取好运红包", response.body().asString())); Assert.assertTrue(firstGet, network.message(Params, BasicConfig.ANCHOR_getRed, "非第1次获取好运红包", response.body().asString()));
int redNum = response.jsonPath().getInt("data.redNum"); int redNum = response.jsonPath().getInt("data.redNum");
Assert.assertTrue(redNum>1, network.message(Params, BasicConfig.ANCHOR_getRed, "红包个数不对", response.body().asString())); Assert.assertTrue(redNum>1, network.message(Params, BasicConfig.ANCHOR_getRed, "红包个数不对", response.body().asString()));
int showtype = response.jsonPath().getInt("data.showType");
Assert.assertEquals(showtype, 0, network.message(Params, BasicConfig.ANCHOR_getRed, "红包封面图标签展示状态不对", response.body().asString()));
} }
@Test(description = "访客A分享好运红包给访客B", priority = 27) @Test(description = "访客A分享好运红包给访客B", priority = 27)
......
...@@ -205,7 +205,7 @@ public class SecondKill implements Authorization { ...@@ -205,7 +205,7 @@ public class SecondKill implements Authorization {
Response downgradeGoodsRes = network.getResponse(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_downgradeGoodsFirst); Response downgradeGoodsRes = network.getResponse(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_downgradeGoodsFirst);
try { try {
String confId = downgradeGoodsRes.jsonPath().getString("data.confId"); String confId = downgradeGoodsRes.jsonPath().getString("data.confId");
Assert.assertEquals(confId, ConfSecondKill.skIdFirst, network.message(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_goodsFirst, "当前秒杀商品配置ID错误", downgradeGoodsRes.body().asString())); Assert.assertEquals(confId, ConfSecondKill.skIdSecond, network.message(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_goodsFirst, "当前秒杀商品配置ID错误", downgradeGoodsRes.body().asString()));
}catch (NullPointerException e){ }catch (NullPointerException e){
e.printStackTrace(); e.printStackTrace();
Assert.fail(network.message(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_goodsFirst, "未获取到数据", downgradeGoodsRes.body().asString())); Assert.fail(network.message(downgradeGoodsPar, BasicConfig.MOBILE_secondKill_goodsFirst, "未获取到数据", downgradeGoodsRes.body().asString()));
......
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