Commit e1d18ccf authored by 赵然's avatar 赵然

zr

parent 579191b8
...@@ -261,7 +261,7 @@ public class 自有_自有活动出奖 extends DuibaTestBase { ...@@ -261,7 +261,7 @@ public class 自有_自有活动出奖 extends DuibaTestBase {
String coupon_code = response.jsonPath().getString("data.lottery.coupon_code"); String coupon_code = response.jsonPath().getString("data.lottery.coupon_code");
String coupon_key = response.jsonPath().getString("data.lottery.coupon_key"); String coupon_key = response.jsonPath().getString("data.lottery.coupon_key");
Assert.assertEquals(id,"15810","id不正确"); Assert.assertEquals(id,"36248","id不正确");
Assert.assertTrue(link.contains("//activity.m.duibatest.com.cn/crecord/recordDetailNew?orderId="),"link不正确"); Assert.assertTrue(link.contains("//activity.m.duibatest.com.cn/crecord/recordDetailNew?orderId="),"link不正确");
Assert.assertEquals(title,"【自动化】优惠券-普通","title不正确"); Assert.assertEquals(title,"【自动化】优惠券-普通","title不正确");
Assert.assertEquals(type,"coupon","type不正确"); Assert.assertEquals(type,"coupon","type不正确");
......
...@@ -110,11 +110,20 @@ public class 扣库存测试_DuibaTest extends DuibaTestBase { ...@@ -110,11 +110,20 @@ public class 扣库存测试_DuibaTest extends DuibaTestBase {
response = newActivityService.getOrderStatus2(orderId,"iOS"); response = newActivityService.getOrderStatus2(orderId,"iOS");
response.prettyPrint(); response.prettyPrint();
String result = String.valueOf(response.jsonPath().getString("result")); String result = String.valueOf(response.jsonPath().getString("result"));
int i= 30; // int i= 30;
while(i>0&&(result.equals("0"))){ // while(i>0&&(result.equals("0"))){
// Thread.sleep(1000);
// response = newActivityService.getOrderStatus2(orderId,"iOS");
// result = String.valueOf(response.jsonPath().getString("result"));
// i--;
// response.prettyPrint();
// }
int i= 3;
while(i>0){
Thread.sleep(1000); Thread.sleep(1000);
response = newActivityService.getOrderStatus2(orderId,"iOS"); response = newActivityService.getOrderStatus2(orderId,"iOS");
result = String.valueOf(response.jsonPath().getString("result"));
i--; i--;
response.prettyPrint(); response.prettyPrint();
} }
......
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