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
6b3e6cd4
Commit
6b3e6cd4
authored
Jun 18, 2025
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sleep位置调整至增加、减少积分后
parent
30aac9aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/xiaomai/cases/polar/points/TestBatchPoints.java
+4
-4
No files found.
src/main/java/com/xiaomai/cases/polar/points/TestBatchPoints.java
View file @
6b3e6cd4
...
...
@@ -46,8 +46,8 @@ public class TestBatchPoints extends XMBaseTest {
int
before
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findStatementPagePermission
(
""
),
"$.result.total"
));
//积分记录列表总条数
//品牌操作批量增加
Thread
.
sleep
(
1000
);
pointsTools
.
batchAwardPoint
(
"1"
,
memberId
,
""
);
Thread
.
sleep
(
1000
);
int
AftotalAwardBalance1
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findAccountPagePermission
(
""
,
memberId
),
"$.result.records[0].totalAwardBalance"
));
//发放积分数
int
AfleftBalance1
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findAccountPagePermission
(
""
,
memberId
),
"$.result.records[0].leftBalance"
));
//剩余积分数
System
.
out
.
println
(
"aftotal1--------"
+
AftotalAwardBalance1
);
...
...
@@ -66,8 +66,8 @@ public class TestBatchPoints extends XMBaseTest {
//品牌操作批量扣减
Thread
.
sleep
(
1000
);
pointsTools
.
batchDeductPoint
(
"1"
,
memberId
,
""
);
//会员详情扣减1积分
Thread
.
sleep
(
1000
);
//核对积分帐户的积分的变化
int
AfalreadyUsedBalance2
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findAccountPagePermission
(
""
,
memberId
),
"$.result.records[0].alreadyUsedBalance"
));
//已使用积分积分数
int
AfleftBalance2
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findAccountPagePermission
(
""
,
memberId
),
"$.result.records[0].leftBalance"
));
//剩余积分数
...
...
@@ -77,7 +77,7 @@ public class TestBatchPoints extends XMBaseTest {
Assert
.
assertEquals
(
AfleftBalance2
,
AfleftBalance1
-
1
);
//断言剩余积分数-1
//核对积分记录
Thread
.
sleep
(
1000
);
//
Thread.sleep(1000);
int
after2
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findStatementPagePermission
(
""
),
"$.result.total"
));
System
.
out
.
println
(
"after2--------"
+
after2
);
Assert
.
assertEquals
(
after2
,
after1
+
1
);
//断言积分记录+1条记录
...
...
@@ -87,8 +87,8 @@ public class TestBatchPoints extends XMBaseTest {
//品牌操作批量清零
Thread
.
sleep
(
1000
);
pointsTools
.
batchClearPoint
(
memberId
,
""
);
Thread
.
sleep
(
1000
);
int
AfleftBalance3
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
pointsTools
.
findAccountPagePermission
(
""
,
memberId
),
"$.result.records[0].leftBalance"
));
//剩余积分数
Assert
.
assertEquals
(
AfleftBalance3
,
0
);
//断言剩余积分数等于0
...
...
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