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
745a7c8c
Commit
745a7c8c
authored
Apr 24, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决数据中心延迟报错
parent
465be28e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
+3
-3
src/main/java/com/xiaomai/cases/polar/goods/TestGoodsOrderByDeposit.java
+1
-1
src/main/java/com/xiaomai/cases/polar/goods/TestRefundGoods.java
+6
-7
No files found.
src/main/java/com/xiaomai/cases/polar/data/financeData/TestGetCostData.java
View file @
745a7c8c
...
@@ -134,7 +134,7 @@ public class TestGetCostData extends XMBaseTest {
...
@@ -134,7 +134,7 @@ public class TestGetCostData extends XMBaseTest {
BigDecimal
unpaidAmount
=
new
BigDecimal
(
getDetailResult
.
getJSONObject
(
"result"
).
getString
(
"unpaidAmount"
));
//欠费金额
BigDecimal
unpaidAmount
=
new
BigDecimal
(
getDetailResult
.
getJSONObject
(
"result"
).
getString
(
"unpaidAmount"
));
//欠费金额
try
{
try
{
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1
5
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -218,7 +218,7 @@ public class TestGetCostData extends XMBaseTest {
...
@@ -218,7 +218,7 @@ public class TestGetCostData extends XMBaseTest {
// BigDecimal leftAmount6=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(5).getString("leftAmount"));
// BigDecimal leftAmount6=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(5).getString("leftAmount"));
try
{
try
{
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -262,7 +262,7 @@ public class TestGetCostData extends XMBaseTest {
...
@@ -262,7 +262,7 @@ public class TestGetCostData extends XMBaseTest {
try
{
try
{
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
src/main/java/com/xiaomai/cases/polar/goods/TestGoodsOrderByDeposit.java
View file @
745a7c8c
...
@@ -207,7 +207,7 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
...
@@ -207,7 +207,7 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
try
{
try
{
Thread
.
sleep
(
5000
);
Thread
.
sleep
(
1
5000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
src/main/java/com/xiaomai/cases/polar/goods/TestRefundGoods.java
View file @
745a7c8c
...
@@ -131,7 +131,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -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"
));
int
refundBeforeInventory
=
Integer
.
parseInt
(
lastGetDetail_goods
.
getJSONObject
(
"result"
).
getJSONObject
(
"multiSpecInfo"
).
getJSONArray
(
"specCombinationList"
).
getJSONObject
(
0
).
getString
(
"inventory"
));
try
{
try
{
Thread
.
sleep
(
8
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -168,7 +168,6 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -168,7 +168,6 @@ public class TestRefundGoods extends XMBaseTest {
JSONObject
refundGoods
=
goodTools
.
refundGoods
(
xmAppApi
.
getLoginInfo
().
getAdminId
(),
ownerName
,
quantity
,
refundAmount
,
true
,
voucherItemId
,
memberId
,
receivableAmount
,
amount
,
"1"
,
new
BigDecimal
(
"0.00"
),
new
BigDecimal
(
"0.00"
),
""
,
0
,
amount
,
amount
);
JSONObject
refundGoods
=
goodTools
.
refundGoods
(
xmAppApi
.
getLoginInfo
().
getAdminId
(),
ownerName
,
quantity
,
refundAmount
,
true
,
voucherItemId
,
memberId
,
receivableAmount
,
amount
,
"1"
,
new
BigDecimal
(
"0.00"
),
new
BigDecimal
(
"0.00"
),
""
,
0
,
amount
,
amount
);
String
refundOrderId1
=
refundGoods
.
getString
(
"result"
);
String
refundOrderId1
=
refundGoods
.
getString
(
"result"
);
//校验:
//校验:
//校验1:获取B端订单详情:退单已完成状态
//校验1:获取B端订单详情:退单已完成状态
JSONObject
getDetailResult_refund
=
orderTools
.
getDetail
(
refundOrderId1
);
JSONObject
getDetailResult_refund
=
orderTools
.
getDetail
(
refundOrderId1
);
...
@@ -182,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -182,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
refundAfterInventory
,
refundBeforeInventory
+
1
,
"退货退款成功后,库存数应+1"
);
Assert
.
assertEquals
(
refundAfterInventory
,
refundBeforeInventory
+
1
,
"退货退款成功后,库存数应+1"
);
try
{
try
{
Thread
.
sleep
(
8
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -213,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -213,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardRefundAfterInventory
,
refundAfterInventory
-
1
,
"作废退货退款订单成功后,库存数应-1"
);
Assert
.
assertEquals
(
discardRefundAfterInventory
,
refundAfterInventory
-
1
,
"作废退货退款订单成功后,库存数应-1"
);
try
{
try
{
Thread
.
sleep
(
1
0
000
);
Thread
.
sleep
(
1
5
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -261,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -261,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
refundAfterInventory_onlyAmount
,
discardRefundAfterInventory
,
"仅退款成功后,库存数应不变"
);
Assert
.
assertEquals
(
refundAfterInventory_onlyAmount
,
discardRefundAfterInventory
,
"仅退款成功后,库存数应不变"
);
try
{
try
{
Thread
.
sleep
(
8
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -290,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -290,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardRefundAfterInventory_onlyAmount
,
refundAfterInventory_onlyAmount
,
"作废仅退款订单成功后,库存数应不变"
);
Assert
.
assertEquals
(
discardRefundAfterInventory_onlyAmount
,
refundAfterInventory_onlyAmount
,
"作废仅退款订单成功后,库存数应不变"
);
try
{
try
{
Thread
.
sleep
(
8
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -319,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest {
...
@@ -319,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert
.
assertEquals
(
discardSignAfterInventory
,
discardRefundAfterInventory_onlyAmount
+
1
,
"作废购买订单成功后,库存数应+1"
);
Assert
.
assertEquals
(
discardSignAfterInventory
,
discardRefundAfterInventory_onlyAmount
+
1
,
"作废购买订单成功后,库存数应+1"
);
try
{
try
{
Thread
.
sleep
(
8
000
);
Thread
.
sleep
(
15
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
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