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
5b42e768
Commit
5b42e768
authored
Apr 25, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
47cd5773
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Qb_兑换流程测试_ExchangeTest.java
.../java/http/cases/ExchangeTest/Qb_兑换流程测试_ExchangeTest.java
+1
-0
Qb_兑换限制测试_ExchangeTest.java
.../java/http/cases/ExchangeTest/Qb_兑换限制测试_ExchangeTest.java
+3
-3
自有老虚拟商品_兑换限制测试_ExchangeTest.java
...s/ExchangeTest/自有_商品兑换限制/自有老虚拟商品_兑换限制测试_ExchangeTest.java
+2
-1
No files found.
src/test/java/http/cases/ExchangeTest/Qb_兑换流程测试_ExchangeTest.java
View file @
5b42e768
...
@@ -178,6 +178,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
...
@@ -178,6 +178,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"1"
);
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"1234345554"
,
"1"
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
logger
.
info
(
e
.
toString
());
message
=
e
.
toString
();
message
=
e
.
toString
();
}
}
logger
.
info
(
message
);
logger
.
info
(
message
);
...
...
src/test/java/http/cases/ExchangeTest/Qb_兑换限制测试_ExchangeTest.java
View file @
5b42e768
...
@@ -138,7 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
...
@@ -138,7 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
//第一次兑换
//第一次兑换
Thread
.
sleep
(
4000
);
Thread
.
sleep
(
4000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"123434
5
554"
,
"3"
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"123434
32
554"
,
"3"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
String
message
=
response
.
jsonPath
().
getString
(
"message"
);
String
message
=
response
.
jsonPath
().
getString
(
"message"
);
...
@@ -151,7 +151,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
...
@@ -151,7 +151,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
}
}
//第二次兑换
//第二次兑换
Thread
.
sleep
(
4000
);
Thread
.
sleep
(
4000
);
response
=
qbExchangeService
.
doTakePrize1
(
authorization
.
dafuwengLogin
(
uid
),
"12343455541"
,
"3"
);
response
=
qbExchangeService
.
doTakePrize1
(
authorization
.
dafuwengLogin
(
uid
),
"123434
4
55541"
,
"3"
);
response
.
prettyPrint
();
response
.
prettyPrint
();
message
=
response
.
jsonPath
().
getString
(
"message"
);
message
=
response
.
jsonPath
().
getString
(
"message"
);
logger
.
info
(
message
);
logger
.
info
(
message
);
...
@@ -206,7 +206,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
...
@@ -206,7 +206,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int
uid
=
4934
;
int
uid
=
4934
;
//第一次兑换
//第一次兑换
Thread
.
sleep
(
3
000
);
Thread
.
sleep
(
5
000
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"123434555412"
,
"1"
);
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"123434555412"
,
"1"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
response
=
mobileService
.
orderStatusQuery
(
authorization
.
dafuwengLogin
(
uid
),
orderId
);
...
...
src/test/java/http/cases/ExchangeTest/自有_商品兑换限制/自有老虚拟商品_兑换限制测试_ExchangeTest.java
View file @
5b42e768
...
@@ -409,13 +409,14 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
...
@@ -409,13 +409,14 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
i
--;
i
--;
}
}
Thread
.
sleep
(
4000
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
Response
detailResponse
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
);
detailResponse
.
prettyPrint
();
detailResponse
.
prettyPrint
();
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
String
exchangeText
=
MatcherString
.
getString
(
detailResponse
.
asString
(),
"\"exchangeText\":\"(.*?)\","
,
1
);
logger
.
info
(
"商品兑换按钮:"
+
exchangeText
);
logger
.
info
(
"商品兑换按钮:"
+
exchangeText
);
//第二次兑换
//第二次兑换
Thread
.
sleep
(
4000
);
try
{
try
{
response
=
couponExchangeService
.
virtualExchange
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
,
"123456"
);
response
=
couponExchangeService
.
virtualExchange
(
authorization
.
dafuwengLogin
(
uid
),
appItemId
,
"123456"
);
response
.
prettyPrint
();
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