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
9f74f30c
Commit
9f74f30c
authored
Nov 07, 2019
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
40d83aed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
兑吧_优惠券秒杀商品兑换测试_SeckillTest.java
...va/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试_SeckillTest.java
+1
-1
秒杀自有老实物_兑换限制_SeckillTest.java
...java/http/cases/SeckillTest/秒杀自有老实物_兑换限制_SeckillTest.java
+1
-1
No files found.
src/test/java/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试_SeckillTest.java
View file @
9f74f30c
...
@@ -68,7 +68,7 @@ public class 兑吧_优惠券秒杀商品兑换测试_SeckillTest extends DuibaT
...
@@ -68,7 +68,7 @@ public class 兑吧_优惠券秒杀商品兑换测试_SeckillTest extends DuibaT
String
title
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"<title>(.*?)</title>"
,
1
);
String
title
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"<title>(.*?)</title>"
,
1
);
String
kind
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"\"kind\":\"(.*?)\","
,
1
);
String
kind
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"\"kind\":\"(.*?)\","
,
1
);
for
(
int
i
=
36
;
i
>
0
;
i
--){
for
(
int
i
=
40
;
i
>
0
;
i
--){
if
((
title
.
equals
(
"等待中"
))||(
kind
.
equals
(
"process"
))){
if
((
title
.
equals
(
"等待中"
))||(
kind
.
equals
(
"process"
))){
Thread
.
sleep
(
3000
);
Thread
.
sleep
(
3000
);
queryResponse
=
seckillService
.
queueQuery
(
queueId
,
uid_Nomal
);
queryResponse
=
seckillService
.
queueQuery
(
queueId
,
uid_Nomal
);
...
...
src/test/java/http/cases/SeckillTest/秒杀自有老实物_兑换限制_SeckillTest.java
View file @
9f74f30c
...
@@ -147,7 +147,7 @@ public class 秒杀自有老实物_兑换限制_SeckillTest extends DuibaTestBas
...
@@ -147,7 +147,7 @@ public class 秒杀自有老实物_兑换限制_SeckillTest extends DuibaTestBas
String
result
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"<h2 class=\"tit\">(.*?)</h2>"
,
1
);
String
result
=
MatcherString
.
getString
(
queryResponse
.
asString
(),
"<h2 class=\"tit\">(.*?)</h2>"
,
1
);
Thread
.
sleep
(
5000
);
response
=
seckillService
.
detail
(
orderId
,
uid
);
response
=
seckillService
.
detail
(
orderId
,
uid
);
response
.
prettyPrint
();
response
.
prettyPrint
();
String
failedReason
=
response
.
jsonPath
().
getString
(
"data.failedReason"
);
String
failedReason
=
response
.
jsonPath
().
getString
(
"data.failedReason"
);
...
...
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