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

加延时

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