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
04b348e3
Commit
04b348e3
authored
Apr 24, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
745a7c8c
87c2cc02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/xiaomai/cases/polar/finance/axf/TestAxfGetLatestApply.java
+2
-2
src/main/java/com/xiaomai/cases/polar/training/TestGetTrainingPlanContent.java
+2
-2
No files found.
src/main/java/com/xiaomai/cases/polar/finance/axf/TestAxfGetLatestApply.java
View file @
04b348e3
...
@@ -30,8 +30,8 @@ public class TestAxfGetLatestApply extends BaseTestImpl {
...
@@ -30,8 +30,8 @@ public class TestAxfGetLatestApply extends BaseTestImpl {
String
str
=
"{\"studioId\":\""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"brandId\":\""
+
xmAppApi
.
getLoginInfo
().
getBrandId
()+
"\",\"operatorId\":\""
+
xmAppApi
.
getLoginInfo
().
getAdminId
()+
"\"}"
;
String
str
=
"{\"studioId\":\""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"brandId\":\""
+
xmAppApi
.
getLoginInfo
().
getBrandId
()+
"\",\"operatorId\":\""
+
xmAppApi
.
getLoginInfo
().
getAdminId
()+
"\"}"
;
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
str
,
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
str
,
headers
).
assetsSuccess
(
true
);
//校验校区的商户号PID与预期的一致
//校验校区的商户号PID与预期的一致
Assert
.
assertEquals
(
xmAppApi
.
getBodyInJSON
().
getJSONObject
(
"result"
).
getString
(
"
merchantNo"
),
"2088460274140455"
,
"PID返回错误"
);
Assert
.
assertEquals
(
xmAppApi
.
getBodyInJSON
().
getJSONObject
(
"result"
).
getString
(
"
superTenantKey"
),
"B_"
+
xmAppApi
.
getLoginInfo
().
getBrandId
()
);
Assert
.
assertEquals
(
xmAppApi
.
getBodyInJSON
().
getJSONObject
(
"result"
).
getString
(
"
state"
),
"SETTLE_SUCCESS"
,
"状态是申请成功"
);
Assert
.
assertEquals
(
xmAppApi
.
getBodyInJSON
().
getJSONObject
(
"result"
).
getString
(
"
tenantKey"
),
"S_"
+
xmAppApi
.
getLoginInfo
().
getStudioId
()
);
}
}
}
}
src/main/java/com/xiaomai/cases/polar/training/TestGetTrainingPlanContent.java
View file @
04b348e3
...
@@ -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