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
f122e873
Commit
f122e873
authored
Dec 14, 2019
by
吕雯燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv
parent
2b57e8a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
集卡活动领奖_AccessTest.java
src/test/java/http/cases/ClcardTest/集卡活动领奖_AccessTest.java
+18
-4
No files found.
src/test/java/http/cases/ClcardTest/集卡活动领奖_AccessTest.java
View file @
f122e873
...
...
@@ -91,7 +91,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
Assert
.
assertEquals
(
rules1
,
"2"
,
"校验rules1失败"
);
Assert
.
assertEquals
(
rules2
,
"3"
,
"校验rules2失败"
);
logger
.
info
(
"集卡活动领奖成功"
);
logger
.
info
(
"
校验成功:
集卡活动领奖成功"
);
}
...
...
@@ -120,7 +120,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
//库存不足,接口会轮询处理超时
Assert
.
assertEquals
(
result
,
"0"
,
"校验result失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"takeSuccess"
),
"false"
,
"校验takeSuccess失败"
);
logger
.
info
(
"集卡大奖库存不足领奖失败"
);
logger
.
info
(
"
校验成功:
集卡大奖库存不足领奖失败"
);
}
...
...
@@ -135,7 +135,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
response
.
prettyPrint
();
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"desc"
),
"卡片还未集齐,请继续集卡"
,
"校验desc失败"
);
logger
.
info
(
"集卡卡片未集齐领奖失败"
);
logger
.
info
(
"
校验成功:
集卡卡片未集齐领奖失败"
);
}
...
...
@@ -170,10 +170,24 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
//检验 成功的只有一个。错误提示有多种
Assert
.
assertEquals
(
fail
,
4
,
"校验fail数量失败"
);
Assert
.
assertEquals
(
success
,
1
,
"校验success数量失败"
);
logger
.
info
(
"校验
集卡单用户并发领奖成功
"
);
logger
.
info
(
"校验
成功:集卡单用户并发领奖
"
);
}
@Test
(
description
=
"集卡活动已下架,领奖测试"
)
public
void
集卡活动已下架再领奖
()
throws
Exception
{
int
uid
=
7451
;
String
activityId
=
"45620"
;
Response
response
=
clcardService
.
openPrize2
(
uid
,
activityId
);
response
.
prettyPrint
();
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