Commit e2893136 authored by 马博's avatar 马博

加延时

parent 5edae75a
......@@ -105,13 +105,14 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换
Thread.sleep(4000);
try{
response = gawService.couponExchange(uid, appItemId,38);
response.prettyPrint();
......@@ -225,13 +226,14 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换
Thread.sleep(4000);
try{
response = gawService.couponExchange(uid, appItemId,42);
response.prettyPrint();
......@@ -325,6 +327,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
}
//获取按钮状态
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
logger.info("商品兑换按钮:" + exchangeText);
......@@ -411,13 +414,14 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换
Thread.sleep(4000);
try{
response = gawService.couponExchange(uid, appItemId,41);
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