Commit dfc28537 by DuJunLi

优化代码,增加睡眠时间

parent fc674ff5
......@@ -127,6 +127,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo
body.put("retainBooking", true);
xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers);
Assert.assertTrue(Boolean.valueOf(XMJSONPath.readPath(xmAppApi.getApi_response(),"$.success"))==true,"调用接口返回结果:"+XMJSONPath.readPath(xmAppApi.getApi_response(),"$.message"));
Thread.sleep(1000);
//查询训练营日程详情,check修改项是否被同步修改
......@@ -156,6 +157,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo
//作废学员训练营报名订单
orderTools.discard(orderId,"重复录入","自动化测试作废训练营订单");
//作废订单后,学员之前报名训练营生成的课次预约记录要被删除check
Thread.sleep(2000);
JSONArray reserverRecords= reserveTools.getPageByStudio("","","","",null,
null,"","TRAINING_CAMP",campId);
Assert.assertTrue(reserverRecords.size()==0,"作废学员订单后,训练营课次中对应的预约记录没有被删除哈");
......
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