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
47cd5773
Commit
47cd5773
authored
Apr 25, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
008a221c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Qb_兑换限制测试_ExchangeTest.java
.../java/http/cases/ExchangeTest/Qb_兑换限制测试_ExchangeTest.java
+8
-8
No files found.
src/test/java/http/cases/ExchangeTest/Qb_兑换限制测试_ExchangeTest.java
View file @
47cd5773
...
...
@@ -68,7 +68,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4932
;
//第一次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"1"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -81,7 +81,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
i
--;
}
//第二次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
response
=
qbExchangeService
.
doTakePrize1
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"1"
);
message
=
response
.
jsonPath
().
getString
(
"message"
);
logger
.
info
(
message
);
...
...
@@ -101,7 +101,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4933
;
//第一次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"2"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -114,7 +114,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
i
--;
}
//第二次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
response
=
qbExchangeService
.
doTakePrize1
(
authorization
.
dafuwengLogin
(
uid
),
"12343455541"
,
"2"
);
response
.
prettyPrint
();
message
=
response
.
jsonPath
().
getString
(
"message"
);
...
...
@@ -137,7 +137,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4933
;
//第一次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"3"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -150,7 +150,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
i
--;
}
//第二次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
response
=
qbExchangeService
.
doTakePrize1
(
authorization
.
dafuwengLogin
(
uid
),
"12343455541"
,
"3"
);
response
.
prettyPrint
();
message
=
response
.
jsonPath
().
getString
(
"message"
);
...
...
@@ -179,7 +179,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
//会员等级无法兑换
try
{
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
degreeId
);
response
.
prettyPrint
();
...
...
@@ -189,7 +189,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
logger
.
info
(
message
);
//会员等级可兑换,vip=5
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
4
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
generateSignAutoLogin
(
"42vkFzeLnoNjXt6AhMM7LPj4G8pT"
,
vipUid
),
"1234345554"
,
degreeId
);
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