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
2adcaa5b
Commit
2adcaa5b
authored
Dec 28, 2024
by
DuJunLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
3c96d118
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
module/lunar/整个模块.xml
+4
-2
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCurrentCampSchedule.java
+2
-1
testng.xml
+1
-1
No files found.
module/lunar/整个模块.xml
View file @
2adcaa5b
<?xml
version="1.0" encoding="UTF-8"?>
<?xml
version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"lunar"
>
<!-- 起一个好听且唯一的名字-->
<suite
name=
"lunar"
configfailurepolicy=
"continue"
>
<!-- 起一个好听且唯一的名字-->
<test
name=
"小程序整个模块测试"
preserve-order=
"true"
verbose=
"3"
>
<!-- 再起一个听且唯一的名字 -->
<packages>
...
...
@@ -11,5 +11,6 @@
<listener
class-name=
"com.xiaomai.client.RetryListener"
/>
<listener
class-name=
"com.xiaomai.client.TestListener"
/>
<listener
class-name=
"com.xiaomai.client.ExtentTestNGIReporterListener"
/>
<listener
class-name=
"com.xiaomai.client.RePrioritizingListener"
></listener>
<!-- 解决TestNG 中多 class 乱序问题 -->
</listeners>
</suite>
\ No newline at end of file
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestEditCurrentCampSchedule.java
View file @
2adcaa5b
...
...
@@ -111,10 +111,11 @@ public class TestEditCurrentCampSchedule extends SelectTargetTrainingCampAndGetI
}
@Test
(
description
=
"删除此case创建的训练营排课日程"
,
priority
=
1
)
public
void
delData
()
{
public
void
delData
()
throws
InterruptedException
{
if
(
null
!=
campId
||
!
campId
.
isEmpty
())
{
this
.
getTrainingTools
().
deleteTraining
(
campId
);
//训练营被删除后,对应的排课日程会被自动删除check
Thread
.
sleep
(
2000
);
campScheduleTools
.
getCampRuleScheduleList
(
campId
,
""
,
""
);
Assert
.
assertTrue
(
XMJSONPath
.
getJSONArrayByReadPath
(
dataApi
.
getApi_response
(),
"$.result"
).
size
()
==
0
,
"训练营被删除后,对应的排课日程会被自动删除,目前还有相关数据请检查"
);
...
...
testng.xml
View file @
2adcaa5b
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"XMAUTOTEST"
parallel=
"classes"
thread-count=
"20"
>
<suite
name=
"XMAUTOTEST"
parallel=
"classes"
thread-count=
"20"
configfailurepolicy=
"continue"
>
<listeners>
<listener
class-name=
"com.xiaomai.client.RetryListener"
/>
...
...
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