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
a7878a7f
Commit
a7878a7f
authored
Jul 21, 2026
by
yangfangfang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
51dcc978
e6c4ab18
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/main/java/com/xiaomai/cases/polar/setting/courseCategory/CourseCategoryTools.java
+2
-1
src/main/java/com/xiaomai/cases/polar/setting/courseCategory/TestDeleteCourseCategory.java
+3
-1
No files found.
src/main/java/com/xiaomai/cases/polar/setting/courseCategory/CourseCategoryTools.java
View file @
a7878a7f
...
...
@@ -105,10 +105,11 @@ public class CourseCategoryTools extends XMBaseTest {
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"categoryName"
,
categoryName
);
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
body
.
toString
(),
dataheadrs
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
body
.
toString
(),
dataheadrs
)
.
assetsSuccess
(
true
)
;
return
dataApi
.
getBodyInJSON
().
getJSONObject
(
"result"
).
getString
(
"id"
);
}
...
...
src/main/java/com/xiaomai/cases/polar/setting/courseCategory/TestDeleteCourseCategory.java
View file @
a7878a7f
...
...
@@ -51,6 +51,7 @@ public class TestDeleteCourseCategory extends BaseTestImpl {
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
if
(
flag
){
// 删除课程
...
...
@@ -60,11 +61,12 @@ public class TestDeleteCourseCategory extends BaseTestImpl {
categoryId
=
courseCategoryTools
.
createCourseCategory
(
"课程分类"
+
TimeUtils
.
getCurrentTime
());
Thread
.
sleep
(
1000
);
// 创建团课程
courseId
=
courseTools
.
createGroupCourse
(
"自动化测试课程"
,
categoryId
,
"STUDIO"
);
courseId
=
courseTools
.
createGroupCourse
(
"自动化测试课程
AA
"
,
categoryId
,
"STUDIO"
);
Thread
.
sleep
(
2500
);
}
body
.
put
(
"categoryId"
,
categoryId
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
.
toString
(),
headers
).
assetsSuccess
(
flag
,
msg
);
}
...
...
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