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
c6918893
Commit
c6918893
authored
Jan 20, 2025
by
xuyamei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改优化
parent
7c2d110d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/xiaomai/cases/polar/admin/TestReinStateStudioAdmin.java
+2
-2
No files found.
src/main/java/com/xiaomai/cases/polar/admin/TestReinStateStudioAdmin.java
View file @
c6918893
...
@@ -68,14 +68,14 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
...
@@ -68,14 +68,14 @@ public class TestReinStateStudioAdmin extends BaseTestImpl {
Assert
.
assertEquals
(
total
,
1
,
"员工离职失败,用手机号查询离职员工未返回数据"
);
Assert
.
assertEquals
(
total
,
1
,
"员工离职失败,用手机号查询离职员工未返回数据"
);
try
{
try
{
Thread
.
sleep
(
15
000
);
Thread
.
sleep
(
20
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
// check 2: 生成对应的操作日志
// check 2: 生成对应的操作日志
body
=
"{\"current\":0,\"size\":20,\"domainId\":\""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"content\": \""
+
name
+
"\",\"brandId\":\""
+
xmAppApi
.
getLoginInfo
().
getBrandId
()+
"\",\"studioId\": \""
+
xmAppApi
.
getLoginInfo
().
getStudioId
()+
"\",\"opEventKey\":\"RESTORE_ADMIN\"}"
;
body
=
"{\"current\":0,\"size\":20,\"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