Commit 99cb455c authored by 马博's avatar 马博

加延时

parent f73fa175
......@@ -95,6 +95,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
......@@ -153,6 +155,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
......@@ -214,6 +218,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
......@@ -313,6 +319,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
}
Thread.sleep(4000);
//获取按钮状态
Response detailResponse = mobileService.appItemDetail(authorization.dafuwengLogin(uid),appItemId);
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
......@@ -382,7 +390,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try{
//第一次兑换
Thread.sleep(4000);
Thread.sleep(5000);
Response response = gawService.virtualExchange(cookie, appItemId,59);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......@@ -400,6 +408,8 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
i--;
}
Thread.sleep(4000);
Response detailResponse = mobileService.appItemDetail(cookie,appItemId);
detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(), "\"exchangeText\":\"(.*?)\",", 1);
......
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