Commit d2261ecf authored by 张艳玲's avatar 张艳玲

新增猜数字红包

parent a3de41a9
......@@ -5,4 +5,5 @@ import lombok.Data;
@Data
public class TeamList {
private Integer id;
}
......@@ -6,4 +6,6 @@ import lombok.Data;
public class TreasureList {
private long treasureConfId;
private Integer treasureSort;
private Integer receiveNum;
private Integer totalNum;
}
......@@ -200,6 +200,13 @@ public interface AdminAuthorization {
System.out.println("用户AUTH_KEY:" + visitorAuth21);
}
/**
* 访客V(谢翊美)ID:791
*/
default void visitorAuth22() {
network.agentCookies.put("authKey", visitorAuth22);
System.out.println("用户AUTH_KEY:" + visitorAuth22);
}
}
......@@ -535,11 +535,11 @@ public class Answer implements AdminAuthorization {
Response response = network.getResponse(params, BasicConfig.MOBILE_QuesParticipateInfo);
boolean result=response.jsonPath().getBoolean("data.result");
System.out.println(result);
Assert.assertTrue(result, network.message(params, BasicConfig.MOBILE_QuesParticipateInfo, "查询答题红包结果失败", response.body().asString()));
Assert.assertTrue(result, network.message(params, BasicConfig.MOBILE_QuesParticipateInfo, "答题失败", response.body().asString()));
Integer welfareStatus=response.jsonPath().getJsonObject("data.welfareStatus");
System.out.println(welfareStatus);
Assert.assertTrue(welfareStatus==2, network.message(params, BasicConfig.MOBILE_QuesParticipateInfo, "查询答题红包结果失败", response.body().asString()));
Assert.assertTrue(welfareStatus==2, network.message(params, BasicConfig.MOBILE_QuesParticipateInfo, "领取异常", response.body().asString()));
}
......
This diff is collapsed.
......@@ -80,5 +80,20 @@ public class Share implements AdminAuthorization {
}
@Test(description = "翻牌红包小程序分享", priority = 5)
public void 翻牌红包小程序分享() {
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
Params.put("mpShareUrl", "//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg");
Params.put("mpShareTitle", "「{{welfareName}}」翻牌红包分享文案{{name}}");
Params.put("shareType", 6);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveOrUpdateMpShare);
boolean data =response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data,network.message(Params, BasicConfig.MOBILE_info, "翻牌红包小程序分享失败", response.body().asString()));
}
}
......@@ -277,7 +277,7 @@ public class WinningRules implements AdminAuthorization {
Params.put("pageSize",20);
Params.put("pageIndex",1);
Response response = network.getResponse(Params, BasicConfig.MANAGER_search);
Object data=response.jsonPath().getJsonObject("data");
Object data = response.jsonPath().getJsonObject("data");
Assert.assertNotNull(data, network.message(Params, BasicConfig.MANAGER_search, "查询新增时团队列表失败", response.body().asString()));
}
......
......@@ -31,6 +31,12 @@
</classes>
</test>
<test preserve-order="true" name="翻牌红包">
<classes>
<class name="com.kjj.cases.live.flipCard.FlipCard"/>
</classes>
</test>
<test preserve-order="true" name="宝箱裂变">
<classes>
<class name="com.kjj.cases.live.treasure.Treasure"/>
......
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