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
fc674ff5
Commit
fc674ff5
authored
Nov 07, 2024
by
DuJunLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码,新增睡眠时间
parent
49d50b71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCampRuleSchedule.java
+1
-0
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestGetCampScheduleItemDetail.java
+2
-1
No files found.
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCampRuleSchedule.java
View file @
fc674ff5
...
@@ -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"
);
...
...
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestGetCampScheduleItemDetail.java
View file @
fc674ff5
...
@@ -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"
);
...
...
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