Commit fc674ff5 by DuJunLi

优化代码,新增睡眠时间

parent 49d50b71
...@@ -75,6 +75,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo ...@@ -75,6 +75,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo
""); "");
//查询排课日程:根据训练营和教练查询 //查询排课日程:根据训练营和教练查询
Thread.sleep(2000);
campScheduleTools.getCampRuleScheduleList(campId, "", chiefCoachId); campScheduleTools.getCampRuleScheduleList(campId, "", chiefCoachId);
Assert.assertTrue(XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").size() == 1, "排课创建成功后,日程中没查询到对应数据"); Assert.assertTrue(XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").size() == 1, "排课创建成功后,日程中没查询到对应数据");
ruldId = XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").getJSONObject(0).getString("ruleId"); ruldId = XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").getJSONObject(0).getString("ruleId");
......
...@@ -50,7 +50,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe ...@@ -50,7 +50,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe
} }
@Test(description = "查看课次详情") @Test(description = "查看课次详情")
public void testGetCampScheduleItemDetail() { public void testGetCampScheduleItemDetail() throws InterruptedException {
//获取选择的训练营ID //获取选择的训练营ID
campId = super.campId; campId = super.campId;
//获取训练营活动的指定教练ID //获取训练营活动的指定教练ID
...@@ -121,6 +121,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe ...@@ -121,6 +121,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe
//会员退款订单check //会员退款订单check
trainingTools.refundCampOrder(memberId, this.price, memberCardId, this.totalClassHour); trainingTools.refundCampOrder(memberId, this.price, memberCardId, this.totalClassHour);
Thread.sleep(2000);
//退单后再次check课次详情 //退单后再次check课次详情
campScheduleTools.getCampScheduleItemDetail(scheduleId); campScheduleTools.getCampScheduleItemDetail(scheduleId);
JSONArray memberReserveList = XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result.memberReserveList"); JSONArray memberReserveList = XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result.memberReserveList");
......
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