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
501d4781
Commit
501d4781
authored
Apr 25, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决数据报错
parent
04b348e3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
+0
-0
src/main/java/com/xiaomai/cases/polar/goods/TestRefundGoods.java
+8
-8
No files found.
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
View file @
501d4781
This diff is collapsed.
Click to expand it.
src/main/java/com/xiaomai/cases/polar/goods/TestRefundGoods.java
View file @
501d4781
...
...
@@ -70,7 +70,7 @@ public class TestRefundGoods extends XMBaseTest {
info
.
setLoginUser
(
LoginAccount
.
GYM_MINIAPPC
);
try
{
Thread
.
sleep
(
5
000
);
Thread
.
sleep
(
3
000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -90,7 +90,7 @@ public class TestRefundGoods extends XMBaseTest {
int
beforeInventory
=
Integer
.
parseInt
(
getDetail_goods
.
getJSONObject
(
"result"
).
getJSONObject
(
"multiSpecInfo"
).
getJSONArray
(
"specCombinationList"
).
getJSONObject
(
0
).
getString
(
"inventory"
));
try
{
Thread
.
sleep
(
5
000
);
Thread
.
sleep
(
3
000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -131,7 +131,7 @@ public class TestRefundGoods extends XMBaseTest {
int
refundBeforeInventory
=
Integer
.
parseInt
(
lastGetDetail_goods
.
getJSONObject
(
"result"
).
getJSONObject
(
"multiSpecInfo"
).
getJSONArray
(
"specCombinationList"
).
getJSONObject
(
0
).
getString
(
"inventory"
));
try
{
Thread
.
sleep
(
1
5000
);
Thread
.
sleep
(
5000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -181,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
refundAfterInventory
,
refundBeforeInventory
+
1
,
"退货退款成功后,库存数应+1"
);
try
{
Thread
.
sleep
(
15
000
);
Thread
.
sleep
(
20
000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -212,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardRefundAfterInventory
,
refundAfterInventory
-
1
,
"作废退货退款订单成功后,库存数应-1"
);
try
{
Thread
.
sleep
(
1
5000
);
Thread
.
sleep
(
5000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -260,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
refundAfterInventory_onlyAmount
,
discardRefundAfterInventory
,
"仅退款成功后,库存数应不变"
);
try
{
Thread
.
sleep
(
1
5000
);
Thread
.
sleep
(
5000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -289,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardRefundAfterInventory_onlyAmount
,
refundAfterInventory_onlyAmount
,
"作废仅退款订单成功后,库存数应不变"
);
try
{
Thread
.
sleep
(
1
5000
);
Thread
.
sleep
(
5000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -318,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardSignAfterInventory
,
discardRefundAfterInventory_onlyAmount
+
1
,
"作废购买订单成功后,库存数应+1"
);
try
{
Thread
.
sleep
(
1
5000
);
Thread
.
sleep
(
5000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
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