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
d033921d
Commit
d033921d
authored
Aug 20, 2024
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑会员卡时,identifier不能随机生成
parent
469b4b0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/main/java/com/xiaomai/cases/polar/memberCard/TestTenantMemberCard_update.java
+12
-2
No files found.
src/main/java/com/xiaomai/cases/polar/memberCard/TestTenantMemberCard_update.java
View file @
d033921d
...
@@ -39,10 +39,19 @@ public class TestTenantMemberCard_update extends XMBaseTest {
...
@@ -39,10 +39,19 @@ public class TestTenantMemberCard_update extends XMBaseTest {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
Cardtools
.
memberCardCreate
(
"次卡-自动化会员卡"
+
RandomStringUtil
.
randomString
(
3
));
//创建随机的名的次卡
Cardtools
.
memberCardCreate
(
"次卡-自动化会员卡"
+
RandomStringUtil
.
randomString
(
3
));
//创建随机的名的次卡
Cardtools
.
fetchPageOfMemberCard
(
"MEMBER_CARD"
);
Cardtools
.
fetchPageOfMemberCard
(
"MEMBER_CARD"
);
String
memberCardId
=
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.records[0].id"
);
String
memberCardId
=
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.records[0].id"
);
Cardtools
.
fetchDetailById
(
memberCardId
);
String
id
=
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.benefitList[0].id"
);
String
identifier
=
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.benefitList[0].identifier"
);
JSONObject
bodyJson2
=
Cardtools
.
fetchPageOfHistory
(
memberCardId
);
JSONObject
bodyJson2
=
Cardtools
.
fetchPageOfHistory
(
memberCardId
);
int
count
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
bodyJson2
,
"$.result.total"
));
int
count
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
bodyJson2
,
"$.result.total"
));
...
@@ -56,7 +65,8 @@ public class TestTenantMemberCard_update extends XMBaseTest {
...
@@ -56,7 +65,8 @@ public class TestTenantMemberCard_update extends XMBaseTest {
//List itemList = new ArrayList();
//List itemList = new ArrayList();
//itemList.add("");
//itemList.add("");
JSONObject
Object
=
new
JSONObject
();
JSONObject
Object
=
new
JSONObject
();
Object
.
put
(
"identifier"
,
RandomStringUtil
.
randomString
(
20
));
Object
.
put
(
"id"
,
id
);
Object
.
put
(
"identifier"
,
identifier
);
Object
.
put
(
"benefitType"
,
"BALANCE"
);
Object
.
put
(
"benefitType"
,
"BALANCE"
);
Object
.
put
(
"targetScope"
,
"GROUP_CLASS_AND_PERSONAL_COURSE"
);
Object
.
put
(
"targetScope"
,
"GROUP_CLASS_AND_PERSONAL_COURSE"
);
Object
.
put
(
"balance"
,
"30"
);
Object
.
put
(
"balance"
,
"30"
);
...
...
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