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
663e8c3e
Commit
663e8c3e
authored
Nov 16, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
5b5133cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
种红包配置校验_AccessTest.java
src/test/java/http/cases/WalletTest/种红包配置校验_AccessTest.java
+10
-1
No files found.
src/test/java/http/cases/WalletTest/种红包
发券
.java
→
src/test/java/http/cases/WalletTest/种红包
配置校验_AccessTest
.java
View file @
663e8c3e
...
...
@@ -18,7 +18,7 @@ import java.util.Map;
/**
* Created by mabo on 2018/8/15
*/
public
class
种红包
发券
extends
DuibaTestBase
{
public
class
种红包
配置校验
_AccessTest
extends
DuibaTestBase
{
@Autowired
SeedRedPacketService
seedRedPacketService
;
...
...
@@ -42,12 +42,21 @@ public class 种红包发券 extends DuibaTestBase{
String
drawNumDaily
=
response
.
jsonPath
().
getString
(
"data.drawNumDaily"
);
String
decrBeginTime
=
response
.
jsonPath
().
getString
(
"data.decrBeginTime"
);
String
decrSwitch
=
response
.
jsonPath
().
getString
(
"data.decrSwitch"
);
String
seedCreditsPrice
=
response
.
jsonPath
().
getString
(
"data.seedCreditsPrice"
);
String
stealRedPacketSwitch
=
response
.
jsonPath
().
getString
(
"data.stealRedPacketSwitch"
);
String
unlockLandCreditsPrice
=
response
.
jsonPath
().
getString
(
"data.unlockLandCreditsPrice"
);
Assert
.
assertEquals
(
adPositions
,
"1,2,3"
,
"发券位置校验异常"
);
Assert
.
assertEquals
(
adSwitch
,
"true"
,
"种红包发券开关校验异常"
);
Assert
.
assertEquals
(
drawNumDaily
,
"20"
,
"每日中奖个数校验异常"
);
Assert
.
assertEquals
(
decrSwitch
,
"true"
,
"种红包衰减开关校验异常"
);
Assert
.
assertEquals
(
decrBeginTime
,
"1"
,
"衰减时间校验异常"
);
Assert
.
assertEquals
(
seedCreditsPrice
,
"1"
,
"种红包种植单价校验异常"
);
Assert
.
assertEquals
(
stealRedPacketSwitch
,
"false"
,
"偷红包开关校验异常"
);
Assert
.
assertEquals
(
unlockLandCreditsPrice
,
"300"
,
"解锁土地所需积分校验异常"
);
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