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
87c2cc02
Commit
87c2cc02
authored
Apr 24, 2025
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case优化
parent
3b92e986
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/xiaomai/cases/polar/training/TestGetTrainingPlanContent.java
+2
-2
No files found.
src/main/java/com/xiaomai/cases/polar/training/TestGetTrainingPlanContent.java
View file @
87c2cc02
...
@@ -59,8 +59,8 @@ public class TestGetTrainingPlanContent extends BaseTestImpl {
...
@@ -59,8 +59,8 @@ public class TestGetTrainingPlanContent extends BaseTestImpl {
Assert
.
assertNotNull
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.result"
));
Assert
.
assertNotNull
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.result"
));
//5.保存并发送训练计划
//5.保存并发送训练计划
String
exerciseId
=
XMJSONPath
.
readPath
(
trainingTools
.
getListByName
(
"胸"
),
"$.result[0].id"
);
String
exerciseId
=
XMJSONPath
.
readPath
(
trainingTools
.
getListByName
(
"
上斜绳索夹
胸"
),
"$.result[0].id"
);
String
exerciseName
=
XMJSONPath
.
readPath
(
trainingTools
.
getListByName
(
"胸"
),
"$.result[0].name"
);
String
exerciseName
=
XMJSONPath
.
readPath
(
trainingTools
.
getListByName
(
"
上斜绳索夹
胸"
),
"$.result[0].name"
);
String
recordId
=
trainingTools
.
trainingPlanRecordCreate
(
memberId
,
exerciseId
,
exerciseName
);
String
recordId
=
trainingTools
.
trainingPlanRecordCreate
(
memberId
,
exerciseId
,
exerciseName
);
Assert
.
assertTrue
(
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
trainingTools
.
trainingPlanRecordPage
(
memberId
,
""
),
"$.result.total"
))==
num
+
1
);
Assert
.
assertTrue
(
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
trainingTools
.
trainingPlanRecordPage
(
memberId
,
""
),
"$.result.total"
))==
num
+
1
);
...
...
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