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
e123db8f
Commit
e123db8f
authored
Dec 09, 2019
by
赵然
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:mabo/test-platform
parents
a0005406
c6d89476
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
兑吧新优惠券_兑换流程测试_ExchangeTest.java
...a/http/cases/ExchangeTest/兑吧新优惠券_兑换流程测试_ExchangeTest.java
+0
-0
积分夺宝开奖_AccessTest.java
...t/java/http/cases/HappyCodeNewTest/积分夺宝开奖_AccessTest.java
+4
-3
No files found.
src/test/java/http/cases/ExchangeTest/兑吧新优惠券_兑换流程测试_ExchangeTest.java
View file @
e123db8f
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/HappyCodeNewTest/积分夺宝开奖_AccessTest.java
View file @
e123db8f
...
...
@@ -115,7 +115,7 @@ public class 积分夺宝开奖_AccessTest extends DuibaTestBase {
//同一用户并发领奖 【自动化勿动】lv测试优惠券
@Test
(
threadPoolSize
=
5
,
invocationCount
=
5
)
public
void
夺宝单用户并发领奖
()
throws
Exception
{
public
void
A_
夺宝单用户并发领奖
()
throws
Exception
{
int
uid
=
7397
;
String
activityId
=
"45465"
;
String
detailId
=
"8"
;
...
...
@@ -135,7 +135,8 @@ public class 积分夺宝开奖_AccessTest extends DuibaTestBase {
resultList
.
add
(
rewardResponse
.
asString
());
logger
.
info
(
"请求返回结果:"
+
rewardResponse
.
asString
());
}
@Test
(
dependsOnMethods
=
"夺宝单用户并发领奖"
)
@Test
(
dependsOnMethods
=
"A_夺宝单用户并发领奖"
)
public
void
checkResult
(){
int
fail
=
0
;
int
success
=
0
;
...
...
@@ -177,7 +178,7 @@ public class 积分夺宝开奖_AccessTest extends DuibaTestBase {
String
prizeCode
=
String
.
valueOf
(
detailResponse
.
jsonPath
().
getString
(
"data.prizeCode"
));
Assert
.
assertEquals
(
prizeType
,
"object"
,
"校验prizeType失败"
);
Assert
.
assertEquals
(
rewardStatus
,
"
1"
,
"校验rewardStatus失败"
);
Assert
.
assertEquals
(
rewardStatus
,
"
3"
,
"校验rewardStatus失败"
);
//奖品过期了未领取
Assert
.
assertEquals
(
prizeCode
,
"887316214305"
,
"校验prizeCode失败"
);
//校验领奖后的页面跳转链接
...
...
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