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
2db1e7fd
Commit
2db1e7fd
authored
Aug 23, 2024
by
xyy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c2d4867e
09b2585e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/main/java/com/xiaomai/cases/polar/applet/TestSetPageConfig.java
+3
-3
src/main/java/com/xiaomai/cases/polar/reserve/group/TestAddMemberReserve.java
+7
-2
No files found.
src/main/java/com/xiaomai/cases/polar/applet/TestSetPageConfig.java
View file @
2db1e7fd
...
...
@@ -32,7 +32,7 @@ public class TestSetPageConfig extends XMBaseTest {
super
.
beforeTest
();
}
@Test
(
description
=
"修改小程序页面配置-首页"
)
//
@Test(description = "修改小程序页面配置-首页")
public
void
testSetStyleConfig
(){
String
shareText
=
"自动化脚本首页分享"
+
RandomStringUtil
.
randomString
(
5
);
...
...
@@ -42,7 +42,7 @@ public class TestSetPageConfig extends XMBaseTest {
Assert
.
assertEquals
(
appletTools
.
getPageConfig
(
"HOME"
).
getJSONObject
(
"result"
).
getJSONObject
(
"shareSetting"
).
getString
(
"shareText"
),
shareText
);
}
@Test
(
description
=
"修改小程序页面配置-约课"
)
//
@Test(description = "修改小程序页面配置-约课")
public
void
testSetStyleConfig_1
(){
String
shareText
=
"自动化脚本约课页面分享"
+
RandomStringUtil
.
randomString
(
5
);
...
...
@@ -52,7 +52,7 @@ public class TestSetPageConfig extends XMBaseTest {
}
@Test
(
description
=
"修改小程序页面配置-我的"
)
//@Test(description = "修改小程序页面配置-我的"),json一直在更新,每次上线后脚本的json不更新就会产生脏数据,先注释掉
public
void
testSetStyleConfig_2
(){
String
shareText
=
"自动化脚本我的页面分享"
+
RandomStringUtil
.
randomString
(
5
);
...
...
src/main/java/com/xiaomai/cases/polar/reserve/group/TestAddMemberReserve.java
View file @
2db1e7fd
...
...
@@ -231,8 +231,9 @@ public class TestAddMemberReserve extends BaseTestImpl {
public
void
testAddMemberReserve3
(){
// 修改课次人数上限为1
groupScheduleTools
.
editGroupSchedule
(
scheduleId
,
startTime
,
xmAppApi
.
getLoginInfo
().
getAdminId
(),
1
,
1
);
try
{
Thread
.
sleep
(
2
000
);
Thread
.
sleep
(
3
000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -242,7 +243,11 @@ public class TestAddMemberReserve extends BaseTestImpl {
Random
random
=
new
Random
();
int
bookingSeatCount
=
random
.
nextInt
(
10
)+
1
;
// 席位
ruleTools
.
saveGroupBookingRules
(
id
,
false
,
bookingSeatCount
,
true
,
true
,
random
.
nextInt
(
30
)+
10
,
true
,
random
.
nextInt
(
100
)+
10
,
random
.
nextInt
(
5
)+
1
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
);
try
{
Thread
.
sleep
(
2000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
// 新学员 购买卡
String
memberId2
=
""
;
// 查询存量的学员没有则创建学员
...
...
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