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
5edae75a
Commit
5edae75a
authored
Jul 04, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加延时
parent
f6b207e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
自有新实物_兑换流程测试_ExchangeTest.java
...ses/ExchangeTest/自有_商品兑换限制/自有新实物_兑换流程测试_ExchangeTest.java
+7
-4
No files found.
src/test/java/http/cases/ExchangeTest/自有_商品兑换限制/自有新实物_兑换流程测试_ExchangeTest.java
View file @
5edae75a
...
...
@@ -90,11 +90,12 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
}
Assert
.
assertEquals
(
status
,
"wait_delivery"
,
"校验轮询结果status失败"
);
Thread
.
sleep
(
5000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
logger
.
info
(
"商品兑换按钮:"
+
exchangeText
);
//第二次兑换
Thread
.
sleep
(
3000
);
try
{
response
=
gawService
.
objectExchange
(
uid
,
appItemId
,
itemId
,
skuId
,
credits
,
actualCredits
);
response
.
prettyPrint
();
...
...
@@ -142,11 +143,12 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
i
--;
}
Assert
.
assertEquals
(
status
,
"wait_delivery"
,
"校验轮询结果status失败"
);
Thread
.
sleep
(
5000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
logger
.
info
(
"商品兑换按钮:"
+
exchangeText
);
//第二次兑换
Thread
.
sleep
(
3000
);
try
{
response
=
gawService
.
objectExchange
(
uid
,
appItemId
,
itemId
,
skuId
,
credits
,
actualCredits
);
logger
.
info
(
"********2"
);
...
...
@@ -194,11 +196,11 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
i
--;
}
Assert
.
assertEquals
(
status
,
"wait_delivery"
,
"校验轮询结果status失败"
);
Thread
.
sleep
(
5000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
// logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换
Thread
.
sleep
(
3000
);
try
{
response
=
gawService
.
objectExchange
(
uid
,
appItemId
,
itemId
,
skuId
,
credits
,
actualCredits
);
response
.
prettyPrint
();
...
...
@@ -246,11 +248,11 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
i
--;
}
Assert
.
assertEquals
(
status
,
"wait_delivery"
,
"校验轮询结果status失败"
);
Thread
.
sleep
(
5000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
// logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换
Thread
.
sleep
(
3000
);
try
{
response
=
gawService
.
objectExchange
(
uid
,
appItemId
,
itemId
,
skuId
,
credits
,
actualCredits
);
response
.
prettyPrint
();
...
...
@@ -292,6 +294,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
}
logger
.
info
(
message
);
//获取按钮状态
Thread
.
sleep
(
5000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
logger
.
info
(
"商品兑换按钮:"
+
exchangeText
);
...
...
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