Commit 450f78fc authored by 张艳玲's avatar 张艳玲

更新好运红包用例

parent 375b9e36
......@@ -219,19 +219,21 @@ public class FlipCard implements Authorization {
//预约
@Test(description = "翻牌集字_预约", priority = 12)
public void 翻牌集字_预约() {
ThreadSleepUtils.sleep(3000);
Map<String, Object> params = new HashMap<>();
params.put("bizType",1);
params.put("bizId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
params.put("markIds",Collections.singleton(144));
visitorAuth9();
ThreadSleepUtils.sleep(2000);
Response response = network.postResponse(params, BasicConfig.MOBILE_appointment);
boolean data = response.jsonPath().getBoolean("data");
System.out.println(data);
Assert.assertTrue(data, network.message(params, BasicConfig.MOBILE_appointment, "预约失败", response.body().asString()));
visitorAuth22();
ThreadSleepUtils.sleep(2000);
Response appointmentRes = network.postResponse(params, BasicConfig.MOBILE_appointment);
boolean data1 = appointmentRes.jsonPath().getBoolean("data");
System.out.println(data1);
......
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