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
99cb455c
Commit
99cb455c
authored
Jul 04, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加延时
parent
f73fa175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
自有新虚拟商品_充值_兑换限制_ExchangeTest.java
.../ExchangeTest/自有_商品兑换限制/自有新虚拟商品_充值_兑换限制_ExchangeTest.java
+11
-1
No files found.
src/test/java/http/cases/ExchangeTest/自有_商品兑换限制/自有新虚拟商品_充值_兑换限制_ExchangeTest.java
View file @
99cb455c
...
...
@@ -95,6 +95,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i
--;
}
Thread
.
sleep
(
4000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
detailResponse
.
prettyPrint
();
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
...
...
@@ -153,6 +155,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i
--;
}
Thread
.
sleep
(
4000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
detailResponse
.
prettyPrint
();
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
...
...
@@ -214,6 +218,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i
--;
}
Thread
.
sleep
(
4000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
detailResponse
.
prettyPrint
();
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
...
...
@@ -313,6 +319,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
}
Thread
.
sleep
(
4000
);
//获取按钮状态
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
...
...
@@ -382,7 +390,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try
{
//第一次兑换
Thread
.
sleep
(
4
000
);
Thread
.
sleep
(
5
000
);
Response
response
=
gawService
.
virtualExchange
(
cookie
,
appItemId
,
59
);
response
.
prettyPrint
();
String
orderId
=
response
.
jsonPath
().
getString
(
"data.orderId"
);
...
...
@@ -400,6 +408,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i
--;
}
Thread
.
sleep
(
4000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
cookie
,
appItemId
);
detailResponse
.
prettyPrint
();
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
...
...
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