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
2325e33c
Commit
2325e33c
authored
Nov 27, 2024
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix训练计划case
parent
7417dfa7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/main/java/com/xiaomai/cases/polar/training/TestTrainingPlanRecordCreate.java
+0
-0
src/main/java/com/xiaomai/cases/polar/training/TrainingTools.java
+7
-7
No files found.
src/main/java/com/xiaomai/cases/polar/training/TestTrainingPlanRecordCreate.java
View file @
2325e33c
This diff is collapsed.
Click to expand it.
src/main/java/com/xiaomai/cases/polar/training/TrainingTools.java
View file @
2325e33c
...
...
@@ -838,10 +838,10 @@ public class TrainingTools extends XMBaseTest {
body
.
put
(
"templateId"
,
templateId
);
body
.
put
(
"templateName"
,
templateName
);
body
.
put
(
"trainingTemplateDetailList"
,
trainList
);
body
.
put
(
"studioId"
,
xmApp
Api
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"brandId"
,
xmApp
Api
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"creator"
,
xmApp
Api
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"operatorId"
,
xmApp
Api
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"studioId"
,
data
Api
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"brandId"
,
data
Api
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"creator"
,
data
Api
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"operatorId"
,
data
Api
.
getLoginInfo
().
getAdminId
());
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
body
.
toString
(),
dataheadrs
);
Assert
.
assertTrue
(
Boolean
.
valueOf
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.success"
))
==
true
,
"调用接口返回结果:"
+
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.message"
));
...
...
@@ -927,7 +927,7 @@ public class TrainingTools extends XMBaseTest {
public
JSONObject
listMyTrainingPlan
(
String
memberId
,
String
trainingPlanName
,
DataUserInfo
...
userInfo
)
{
dataApi
.
setApiModule
(
ApiModule
.
Lunar_Training
)
.
setApiName
(
"API_listMyTrainingPlan"
)
.
setTerminal
(
Terminal
.
C
);
.
setTerminal
(
Terminal
.
minApp
);
super
.
beforeDataRequest
(
userInfo
);
JSONObject
body
=
new
JSONObject
();
...
...
@@ -954,7 +954,7 @@ public class TrainingTools extends XMBaseTest {
public
JSONObject
findMyTrainingPlanDetailById
(
String
recordId
,
DataUserInfo
...
userInfo
)
{
dataApi
.
setApiModule
(
ApiModule
.
Lunar_Training
)
.
setApiName
(
"API_findMyTrainingPlanDetailById"
)
.
setTerminal
(
Terminal
.
C
);
.
setTerminal
(
Terminal
.
minApp
);
super
.
beforeDataRequest
(
userInfo
);
JSONObject
body
=
new
JSONObject
();
...
...
@@ -974,7 +974,7 @@ public class TrainingTools extends XMBaseTest {
public
JSONObject
getShareDetail
(
String
recordId
,
DataUserInfo
...
userInfo
)
{
dataApi
.
setApiModule
(
ApiModule
.
Lunar_Training
)
.
setApiName
(
"API_getShareDetail"
)
.
setTerminal
(
Terminal
.
C
);
.
setTerminal
(
Terminal
.
minApp
);
super
.
beforeDataRequest
(
userInfo
);
JSONObject
extJson
=
new
JSONObject
();
...
...
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