Commit 5af615cf authored by 钱雯君's avatar 钱雯君

add

parent 87b8e051
......@@ -44,11 +44,11 @@ public class 插件_优惠券测试_pluginTest extends DuibaTestBase {
Object[][] result = null;
if(method.getName().equals("插件活动出券测试")) {
result = new Object[][]{
new Object[]{1, "26775", "236", "100026000","chome","iOS","马上使用跳转优惠券链接券码的链接"}, //case1
new Object[]{2, "27128", "237", "100026000", "chome","iOS","马上使用跳转优惠券商家落地页的链接(iOS登录)"}, //case2
new Object[]{2, "27128", "237", "100026000","chome","Android","马上使用跳转优惠券商家落地页的链接(Android登录)"},//case2
new Object[]{3, "27129", "238", "100026000","chome","iOS","马上使用跳转优惠券兑换记录页的链接"}, //case3
new Object[]{4,"27129","239","100026000","chome","iOS","马上使用跳转福袋的链接"} //case4
new Object[]{1, "26775", "236", "100092869","chome","iOS","马上使用跳转优惠券链接券码的链接"}, //case1
new Object[]{2, "27128", "237", "100092869", "chome","iOS","马上使用跳转优惠券商家落地页的链接(iOS登录)"}, //case2
new Object[]{2, "27128", "237", "100092869","chome","Android","马上使用跳转优惠券商家落地页的链接(Android登录)"},//case2
new Object[]{3, "27129", "238", "1100092869","chome","iOS","马上使用跳转优惠券兑换记录页的链接"}, //case3
new Object[]{4,"27129","239","100092869","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=100026000"), "福袋url与实际url不匹配");
Assert.assertTrue(response.jsonPath().getString("lottery.iosDownloadUrl").contains("activityId=239&appId=2239&consumerId=100092869"), "福袋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失败");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment