Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
e1d18ccf
Commit
e1d18ccf
authored
May 28, 2020
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
579191b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
自有_自有活动出奖.java
src/test/java/http/cases/ActivityReconTest/自有_自有活动出奖.java
+1
-1
扣库存测试_DuibaTest.java
...test/java/http/cases/NewActivityTest/扣库存测试_DuibaTest.java
+12
-3
No files found.
src/test/java/http/cases/ActivityReconTest/自有_自有活动出奖.java
View file @
e1d18ccf
...
...
@@ -261,7 +261,7 @@ public class 自有_自有活动出奖 extends DuibaTestBase {
String
coupon_code
=
response
.
jsonPath
().
getString
(
"data.lottery.coupon_code"
);
String
coupon_key
=
response
.
jsonPath
().
getString
(
"data.lottery.coupon_key"
);
Assert
.
assertEquals
(
id
,
"
15810
"
,
"id不正确"
);
Assert
.
assertEquals
(
id
,
"
36248
"
,
"id不正确"
);
Assert
.
assertTrue
(
link
.
contains
(
"//activity.m.duibatest.com.cn/crecord/recordDetailNew?orderId="
),
"link不正确"
);
Assert
.
assertEquals
(
title
,
"【自动化】优惠券-普通"
,
"title不正确"
);
Assert
.
assertEquals
(
type
,
"coupon"
,
"type不正确"
);
...
...
src/test/java/http/cases/NewActivityTest/扣库存测试_DuibaTest.java
View file @
e1d18ccf
...
...
@@ -110,11 +110,20 @@ public class 扣库存测试_DuibaTest extends DuibaTestBase {
response
=
newActivityService
.
getOrderStatus2
(
orderId
,
"iOS"
);
response
.
prettyPrint
();
String
result
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"result"
));
int
i
=
30
;
while
(
i
>
0
&&(
result
.
equals
(
"0"
))){
// int i= 30;
// while(i>0&&(result.equals("0"))){
// Thread.sleep(1000);
// response = newActivityService.getOrderStatus2(orderId,"iOS");
// result = String.valueOf(response.jsonPath().getString("result"));
// i--;
// response.prettyPrint();
// }
int
i
=
3
;
while
(
i
>
0
){
Thread
.
sleep
(
1000
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
,
"iOS"
);
result
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"result"
));
i
--;
response
.
prettyPrint
();
}
...
...
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