Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
dfc28537
Commit
dfc28537
authored
Nov 08, 2024
by
DuJunLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码,增加睡眠时间
parent
fc674ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCampRuleSchedule.java
+2
-0
No files found.
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCampRuleSchedule.java
View file @
dfc28537
...
...
@@ -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
,
"作废学员订单后,训练营课次中对应的预约记录没有被删除哈"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment