Commit 06274c0c authored by 吕雯燕's avatar 吕雯燕

lv

parent c0804bdd
......@@ -15,5 +15,7 @@ public class Database {
public static String orders8 = "orders_0090";
public static String orders9 = "orders_0203";
public static String orders10 = "orders_0411";
public static String orders11 = "orders_0182";
}
......@@ -44,7 +44,7 @@ public class 兑吧新优惠券_兑换流程测试_ExchangeTest extends CheckTem
Authorization authorization;
private DuibaLog logger = DuibaLog.getLogger();
int uid = 6866;
int uid = 7022;
@DataProvider
public Object[][] providerMethod(Method method) {
......@@ -398,4 +398,32 @@ public class 兑吧新优惠券_兑换流程测试_ExchangeTest extends CheckTem
}
@Test(description = "兑吧新优惠券可售库存不足")
public void 可售库存不足测试() throws Exception{
String appItemId = "193933";
String itemId = "32529";
String skuId = "60";
String message = "";
Map cookies = authorization.dafuwengLogin(uid);
//无库存兑换
try{
Response response =gawService.couponExchange(cookies,appItemId,itemId,skuId);
response.prettyPrint();
}catch (Exception e){
message = e.toString();
}
logger.info(message);
Assert.assertTrue(message.contains("商品售罄"),"校验message失败");
Assert.assertTrue(message.contains("\"success\":false"),"校验message失败");
logger.info("校验兑吧新优惠券可售库存不足成功");
}
}
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