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
b75f178e
Commit
b75f178e
authored
Dec 26, 2019
by
吕雯燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv
parent
100038b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
集卡活动助力_AccessTest.java
src/test/java/http/cases/ClcardTest/集卡活动助力_AccessTest.java
+1
-1
集卡活动领奖_AccessTest.java
src/test/java/http/cases/ClcardTest/集卡活动领奖_AccessTest.java
+1
-1
红包广场提现_AccessTest.java
.../java/http/cases/LotterySquareTest/红包广场提现_AccessTest.java
+21
-0
No files found.
src/test/java/http/cases/ClcardTest/集卡活动助力_AccessTest.java
View file @
b75f178e
...
@@ -59,7 +59,7 @@ public class 集卡活动助力_AccessTest extends DuibaTestBase {
...
@@ -59,7 +59,7 @@ public class 集卡活动助力_AccessTest extends DuibaTestBase {
//开始助力
//开始助力
Response
helpResponse
=
clcardService
.
doHelpNew
(
uid1
,
activityId
,
shareCode
);
Response
helpResponse
=
clcardService
.
doHelpNew
(
uid1
,
activityId
,
shareCode
);
helpResponse
.
prettyPrint
();
helpResponse
.
prettyPrint
();
Thread
.
sleep
(
100
);
Thread
.
sleep
(
100
0
);
//首页集卡信息
//首页集卡信息
indexResponse
=
clcardService
.
activity
(
uid1
,
activityId
);
indexResponse
=
clcardService
.
activity
(
uid1
,
activityId
);
int
resultCount
=
Integer
.
parseInt
(
indexResponse
.
jsonPath
().
getString
(
"data.cards[1].count"
));
int
resultCount
=
Integer
.
parseInt
(
indexResponse
.
jsonPath
().
getString
(
"data.cards[1].count"
));
...
...
src/test/java/http/cases/ClcardTest/集卡活动领奖_AccessTest.java
View file @
b75f178e
...
@@ -28,7 +28,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
...
@@ -28,7 +28,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
private
List
<
String
>
resultList
=
new
CopyOnWriteArrayList
<>();
private
List
<
String
>
resultList
=
new
CopyOnWriteArrayList
<>();
//
@BeforeClass
@BeforeClass
public
void
before
(){
public
void
before
(){
try
{
try
{
//修改表,增加用户卡片,"A_集卡单用户并发领奖"
//修改表,增加用户卡片,"A_集卡单用户并发领奖"
...
...
src/test/java/http/cases/LotterySquareTest/红包广场提现_AccessTest.java
View file @
b75f178e
...
@@ -144,6 +144,27 @@ public class 红包广场提现_AccessTest extends DuibaTestBase {
...
@@ -144,6 +144,27 @@ public class 红包广场提现_AccessTest extends DuibaTestBase {
}
}
@Test
(
description
=
"用户提现失败测试:提现次数不足"
)
public
void
提现次数不足
()
throws
Exception
{
int
uid
=
7455
;
String
activityId
=
"3"
;
String
money
=
"1"
;
String
account
=
"lvwenyan@duiba.com.cn"
;
String
username
=
"吕雯燕"
;
Response
response
=
lotterySquareService
.
cashDraws2
(
uid
,
activityId
,
money
,
account
,
username
);
response
.
prettyPrint
();
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"false"
,
"校验success失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"desc"
),
"活动期间提现次数已达上限"
,
"校验desc失败"
);
logger
.
info
(
"校验成功:提现次数不足无法提现"
);
}
}
}
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