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
f4df222d
Commit
f4df222d
authored
Jan 08, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物品
parent
9de7a417
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
src/main/java/com/xiaomai/cases/polar/goods/TestGoodsOrderByDeposit.java
+12
-1
No files found.
src/main/java/com/xiaomai/cases/polar/goods/TestGoodsOrderByDeposit.java
View file @
f4df222d
...
...
@@ -40,6 +40,8 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
String
memberId
;
String
voucherId
;
@BeforeMethod
...
...
@@ -96,7 +98,7 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
//1.购储值卡,获取购卡订单id
String
voucherId
=
cardTools
.
signOrderDeposit
(
cardId
,
latestSnapshotId
,
memberId
,
String
.
valueOf
(
cardPrice
),
String
.
valueOf
(
cardBalance
));
voucherId
=
cardTools
.
signOrderDeposit
(
cardId
,
latestSnapshotId
,
memberId
,
String
.
valueOf
(
cardPrice
),
String
.
valueOf
(
cardBalance
));
//获取已售储值卡ID,使用储值卡抵扣的时候需要的ID
JSONObject
listUserUsableDepositCardB
=
cardTools
.
listUserUsableDepositCardB
(
memberId
,
"GOODS"
).
getJSONObject
(
"result"
).
getJSONArray
(
"applicableList"
).
getJSONObject
(
0
);
...
...
@@ -305,4 +307,13 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
}
@Test
(
description
=
"作废签单订单"
,
priority
=
1
)
public
void
discard
(){
//作废储值卡签单订单
orderTools
.
discard
(
voucherId
,
"重复录入"
,
"已作废储值卡签单订单"
+
RandomStringUtil
.
randomString
(
10
));
}
}
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