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
ebed1a63
Commit
ebed1a63
authored
Jan 07, 2025
by
xyy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
52403198
5f66a91e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/java/com/xiaomai/cases/lunar/reserve/TestAddToQueue.java
+1
-1
src/main/java/com/xiaomai/cases/polar/admin/TestReinStateStudioAdmin.java
+5
-5
No files found.
src/main/java/com/xiaomai/cases/lunar/reserve/TestAddToQueue.java
View file @
ebed1a63
...
@@ -231,7 +231,7 @@ public class TestAddToQueue extends BaseTestImpl {
...
@@ -231,7 +231,7 @@ public class TestAddToQueue extends BaseTestImpl {
groupScheduleTools
.
editGroupSchedule
(
scheduleId
,
startTime
,
chiefCoachId
,
1
,
2
,
dataUserInfo
);
groupScheduleTools
.
editGroupSchedule
(
scheduleId
,
startTime
,
chiefCoachId
,
1
,
2
,
dataUserInfo
);
try
{
try
{
Thread
.
sleep
(
5
000
);
Thread
.
sleep
(
10
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
src/main/java/com/xiaomai/cases/polar/admin/TestReinStateStudioAdmin.java
View file @
ebed1a63
...
@@ -37,7 +37,7 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
...
@@ -37,7 +37,7 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
@Test
@Test
public
void
testReinStateStudioAdmin
()
{
public
void
testReinStateStudioAdmin
()
{
// 获取离职员工
// 获取离职员工
String
body
=
"{\"size\":
1
0,\"current\":0,\"state\":\"LEFT\"}"
;
String
body
=
"{\"size\":
2
0,\"current\":0,\"state\":\"LEFT\"}"
;
JSONObject
adminPage
=
adminTools
.
pageStudioAdmin
(
body
);
JSONObject
adminPage
=
adminTools
.
pageStudioAdmin
(
body
);
int
total
=
Integer
.
parseInt
(
adminPage
.
getJSONObject
(
"result"
).
getString
(
"total"
));
int
total
=
Integer
.
parseInt
(
adminPage
.
getJSONObject
(
"result"
).
getString
(
"total"
));
if
(
total
>
1
){
if
(
total
>
1
){
...
@@ -57,23 +57,23 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
...
@@ -57,23 +57,23 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
body
=
"{\"id\":\""
+
adminId
+
"\"}"
;
body
=
"{\"id\":\""
+
adminId
+
"\"}"
;
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
,
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
,
headers
).
assetsSuccess
(
true
);
try
{
try
{
Thread
.
sleep
(
1
000
);
Thread
.
sleep
(
2
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
// check 1:用手机号查询离职员工是否有这个员工
// check 1:用手机号查询离职员工是否有这个员工
body
=
"{\"size\":
1
0,\"current\":0,\"state\":\"DUTY\",\"searchContext\":\""
+
phone
+
"\"}"
;
body
=
"{\"size\":
2
0,\"current\":0,\"state\":\"DUTY\",\"searchContext\":\""
+
phone
+
"\"}"
;
adminPage
=
adminTools
.
pageStudioAdmin
(
body
);
adminPage
=
adminTools
.
pageStudioAdmin
(
body
);
total
=
Integer
.
parseInt
(
adminPage
.
getJSONObject
(
"result"
).
getString
(
"total"
));
total
=
Integer
.
parseInt
(
adminPage
.
getJSONObject
(
"result"
).
getString
(
"total"
));
Assert
.
assertEquals
(
total
,
1
,
"员工离职失败,用手机号查询离职员工未返回数据"
);
Assert
.
assertEquals
(
total
,
1
,
"员工离职失败,用手机号查询离职员工未返回数据"
);
try
{
try
{
Thread
.
sleep
(
1
2
000
);
Thread
.
sleep
(
1
5
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
// check 2: 生成对应的操作日志
// check 2: 生成对应的操作日志
body
=
"{\"current\":0,\"size\":
1
0,\"domainId\":\""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"content\": \""
+
name
+
"\",\"brandId\":\""
+
xmAppApi
.
getLoginInfo
().
getBrandId
()+
"\",\"studioId\": \""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"opEventKey\":\"RESTORE_ADMIN\"}"
;
body
=
"{\"current\":0,\"size\":
2
0,\"domainId\":\""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"content\": \""
+
name
+
"\",\"brandId\":\""
+
xmAppApi
.
getLoginInfo
().
getBrandId
()+
"\",\"studioId\": \""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"opEventKey\":\"RESTORE_ADMIN\"}"
;
JSONObject
response
=
configTools
.
getOpauditPage
(
body
);
JSONObject
response
=
configTools
.
getOpauditPage
(
body
);
Assert
.
assertEquals
(
response
.
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getJSONObject
(
"target"
).
getString
(
"targetId"
),
adminId
,
"员工离职未生成操作日志"
);
Assert
.
assertEquals
(
response
.
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getJSONObject
(
"target"
).
getString
(
"targetId"
),
adminId
,
"员工离职未生成操作日志"
);
...
...
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