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
2e2bc59a
Commit
2e2bc59a
authored
Jan 16, 2020
by
吕雯燕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'duiba_wenyan'
parents
858cec82
9ff1e122
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
Qb_兑换流程测试_ExchangeTest.java
...cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换流程测试_ExchangeTest.java
+5
-5
Qb_兑换限制测试_ExchangeTest.java
...cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换限制测试_ExchangeTest.java
+2
-6
No files found.
src/test/java/http/cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换流程测试_ExchangeTest.java
View file @
2e2bc59a
...
...
@@ -113,7 +113,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
@Test
public
void
qbExchange_
档位不存在
()
throws
Exception
{
int
uid
=
3767
;
int
uid
=
7474
;
String
message
=
""
;
...
...
@@ -178,12 +178,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
Assert
.
assertTrue
(
message
.
contains
(
"\"success\":false"
));
}
@Test
public
void
每日兑换限制
()
throws
Exception
{
int
uid
=
3767
;
int
uid
=
7475
;
//第一次兑换
Thread
.
sleep
(
5000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"1"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -209,12 +209,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
Assert
.
assertTrue
(
message
.
contains
(
"\"success\":false"
));
}
@Test
public
void
永久兑换限制
()
throws
Exception
{
int
uid
=
3767
;
int
uid
=
7476
;
//第一次兑换
Thread
.
sleep
(
5000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"2"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
src/test/java/http/cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换限制测试_ExchangeTest.java
View file @
2e2bc59a
...
...
@@ -69,7 +69,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4932
;
//第一次兑换
Thread
.
sleep
(
4000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234343554"
,
"1"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -100,10 +99,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
@Test
(
description
=
"Q币2元用户兑换限制永久"
)
public
void
用户永久兑换限制
()
throws
Exception
{
int
uid
=
4933
;
int
uid
=
7477
;
//第一次兑换
Thread
.
sleep
(
4000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"2"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -136,10 +134,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
@Test
(
description
=
"Q币3元用户兑换限制每月"
)
public
void
用户每月兑换限制
()
throws
Exception
{
int
uid
=
4933
;
int
uid
=
7478
;
//第一次兑换
Thread
.
sleep
(
4000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"12343432554"
,
"3"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
@@ -208,7 +205,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4934
;
//第一次兑换
Thread
.
sleep
(
5000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"123434555412"
,
"1"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
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