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
f702ccb5
Commit
f702ccb5
authored
Aug 09, 2024
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加/移除共享人,增加断言
parent
46ba5753
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/main/java/com/xiaomai/cases/polar/memberCard/TestModifySharers.java
+5
-0
No files found.
src/main/java/com/xiaomai/cases/polar/memberCard/TestModifySharers.java
View file @
f702ccb5
...
...
@@ -8,6 +8,7 @@ import com.xiaomai.enums.RequestType;
import
com.xiaomai.enums.Terminal
;
import
com.xiaomai.utils.XMBaseTest
;
import
com.xiaomai.utils.XMJSONPath
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -46,6 +47,8 @@ public class TestModifySharers extends XMBaseTest {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
Cardtools
.
membercardfindDetailById
(
memberCardId
);
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.sharers.id"
),
"[\"1807334217474027521\"]"
,
"添加共享人后,核对会员卡有对应共享人"
);
}
@Test
(
description
=
"移除移除共享人"
)
...
...
@@ -68,6 +71,8 @@ public class TestModifySharers extends XMBaseTest {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
Cardtools
.
membercardfindDetailById
(
memberCardId
);
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.sharers.id"
),
"[]"
,
"移除共享人后,核对会员卡下无共享人"
);
}
}
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