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
5af615cf
Commit
5af615cf
authored
Nov 02, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
87b8e051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
插件_优惠券测试_pluginTest.java
...va/http/cases/PluginActivityTest/插件_优惠券测试_pluginTest.java
+6
-6
No files found.
src/test/java/http/cases/PluginActivityTest/插件_优惠券测试_pluginTest.java
View file @
5af615cf
...
...
@@ -44,11 +44,11 @@ public class 插件_优惠券测试_pluginTest extends DuibaTestBase {
Object
[][]
result
=
null
;
if
(
method
.
getName
().
equals
(
"插件活动出券测试"
))
{
result
=
new
Object
[][]{
new
Object
[]{
1
,
"26775"
,
"236"
,
"1000
26000
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券链接券码的链接"
},
//case1
new
Object
[]{
2
,
"27128"
,
"237"
,
"1000
26000
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券商家落地页的链接(iOS登录)"
},
//case2
new
Object
[]{
2
,
"27128"
,
"237"
,
"1000
26000
"
,
"chome"
,
"Android"
,
"马上使用跳转优惠券商家落地页的链接(Android登录)"
},
//case2
new
Object
[]{
3
,
"27129"
,
"238"
,
"1
00026000
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券兑换记录页的链接"
},
//case3
new
Object
[]{
4
,
"27129"
,
"239"
,
"1000
26000
"
,
"chome"
,
"iOS"
,
"马上使用跳转福袋的链接"
}
//case4
new
Object
[]{
1
,
"26775"
,
"236"
,
"1000
92869
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券链接券码的链接"
},
//case1
new
Object
[]{
2
,
"27128"
,
"237"
,
"1000
92869
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券商家落地页的链接(iOS登录)"
},
//case2
new
Object
[]{
2
,
"27128"
,
"237"
,
"1000
92869
"
,
"chome"
,
"Android"
,
"马上使用跳转优惠券商家落地页的链接(Android登录)"
},
//case2
new
Object
[]{
3
,
"27129"
,
"238"
,
"1
100092869
"
,
"chome"
,
"iOS"
,
"马上使用跳转优惠券兑换记录页的链接"
},
//case3
new
Object
[]{
4
,
"27129"
,
"239"
,
"1000
92869
"
,
"chome"
,
"iOS"
,
"马上使用跳转福袋的链接"
}
//case4
};
}
...
...
@@ -111,7 +111,7 @@ response.prettyPrint();
case
4
:
// if (response.jsonPath().getString("lottery.type").equals("lucky")) {
Assert
.
assertTrue
(
response
.
jsonPath
().
getString
(
"lottery.iosDownloadUrl"
).
contains
(
"//activity.tuiatest.cn/activity/redirect?orderId=plugin"
),
"福袋url与实际url不匹配"
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getString
(
"lottery.iosDownloadUrl"
).
contains
(
"activityId=239&appId=2239&consumerId=1000
26000
"
),
"福袋url与实际url不匹配"
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getString
(
"lottery.iosDownloadUrl"
).
contains
(
"activityId=239&appId=2239&consumerId=1000
92869
"
),
"福袋url与实际url不匹配"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"lottery.type"
),
"lucky"
,
"校验type失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"lottery.showUse"
),
"true"
,
"校验显示按钮失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"lottery.useBtnText"
),
"马上使用"
,
"校验useBtnText失败"
);
...
...
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