Commit ae21ecd2 authored by 赵然's avatar 赵然

zr

parent cd6fd695
......@@ -100,6 +100,7 @@ public class CustomActivity_DuibaTest extends DuibaTestBase {
//进行接口测试传参
Response response = this.自定义答题活动抽奖(activityId, token, device);
response.prettyPrint();
String type = String.valueOf(response.jsonPath().getString("lottery.type"));
//根据case选择对应的校验项
......
......@@ -88,7 +88,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
j--;
}
Assert.assertEquals(flowWork,"SupplierExchange-started","数据库主订单流程节点校验失败");
Assert.assertEquals(String.valueOf(selectResult2.get("biz_params")),"胡梦新:18258853242:浙江:杭州市:西湖区:西溪街道:数娱大厦 ","数据库主订单biz_params校验失败");
Assert.assertEquals(String.valueOf(selectResult2.get("biz_params")),"胡梦新:18258853242:浙江:杭州市:西湖区:西溪街道:数娱大厦 ","数据库主订单biz_params校验失败");
Assert.assertEquals(String.valueOf(selectResult2.get("pay_status")),"none","数据库主订单pay_status校验失败");
Assert.assertEquals(String.valueOf(selectResult2.get("status")),"consume_success","数据库主订单status校验失败");
......@@ -131,7 +131,6 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
result = response.jsonPath().getString("result");
i--;
}
String id = response.jsonPath().getString("lottery.id");
String imgurl = response.jsonPath().getString("lottery.imgurl");
String link = response.jsonPath().getString("lottery.link");
......
......@@ -52,11 +52,11 @@ public class 页面元素测试_DuibaTest extends AbstractTestNGSpringContextTes
Assert.assertEquals(response.jsonPath().getString("options[0].prizeType"), "thanks", "校验显示谢谢参与失败");
Assert.assertEquals(response.jsonPath().getString("options[1].prizeType"), "coupon", "校验显示优惠券失败");
Assert.assertEquals(response.jsonPath().getString("options[2].prizeType"), "object", "校验显示实物失败");
Assert.assertEquals(response.jsonPath().getString("options[3].prizeType"), "alipay", "校验显示支付宝失败");
Assert.assertEquals(response.jsonPath().getString("options[4].prizeType"), "qb", "校验显示Q币失败");
Assert.assertEquals(response.jsonPath().getString("options[5].prizeType"), "phonebill", "校验显示话费失败");
Assert.assertEquals(response.jsonPath().getString("options[6].prizeType"), "collectGoods", "校验显示集卡失败");
Assert.assertEquals(response.jsonPath().getString("options[7].prizeType"), "virtual", "校验显示虚拟奖失败");
Assert.assertEquals(response.jsonPath().getString("options[4].prizeType"), "alipay", "校验显示支付宝失败");
Assert.assertEquals(response.jsonPath().getString("options[5].prizeType"), "qb", "校验显示Q币失败");
Assert.assertEquals(response.jsonPath().getString("options[6].prizeType"), "phonebill", "校验显示话费失败");
Assert.assertEquals(response.jsonPath().getString("options[7].prizeType"), "collectGoods", "校验显示集卡失败");
Assert.assertEquals(response.jsonPath().getString("options[3].prizeType"), "virtual", "校验显示虚拟奖失败");
Assert.assertEquals(response.jsonPath().getString("options[0].hidden"), "false", "校验是否显示谢谢参与失败");
Assert.assertEquals(response.jsonPath().getString("options[1].hidden"), "false", "校验是否显示优惠券失败");
......
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