Commit 5b42e768 authored by 马博's avatar 马博

fix

parent 47cd5773
...@@ -178,6 +178,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -178,6 +178,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","1"); response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","1");
}catch (Exception e){ }catch (Exception e){
logger.info(e.toString());
message = e.toString(); message = e.toString();
} }
logger.info(message); logger.info(message);
......
...@@ -138,7 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -138,7 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
//第一次兑换 //第一次兑换
Thread.sleep(4000); Thread.sleep(4000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","3"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"12343432554","3");
String orderId = (String)response.jsonPath().get("orderId"); String orderId = (String)response.jsonPath().get("orderId");
response = mobileService.orderStatusQuery(authorization.dafuwengLogin(uid),orderId); response = mobileService.orderStatusQuery(authorization.dafuwengLogin(uid),orderId);
String message = response.jsonPath().getString("message"); String message = response.jsonPath().getString("message");
...@@ -151,7 +151,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -151,7 +151,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
} }
//第二次兑换 //第二次兑换
Thread.sleep(4000); Thread.sleep(4000);
response = qbExchangeService.doTakePrize1(authorization.dafuwengLogin(uid),"12343455541","3"); response = qbExchangeService.doTakePrize1(authorization.dafuwengLogin(uid),"123434455541","3");
response.prettyPrint(); response.prettyPrint();
message = response.jsonPath().getString("message"); message = response.jsonPath().getString("message");
logger.info(message); logger.info(message);
...@@ -206,7 +206,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -206,7 +206,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int uid = 4934; int uid = 4934;
//第一次兑换 //第一次兑换
Thread.sleep(3000); Thread.sleep(5000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"123434555412","1"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"123434555412","1");
String orderId = (String)response.jsonPath().get("orderId"); String orderId = (String)response.jsonPath().get("orderId");
response = mobileService.orderStatusQuery(authorization.dafuwengLogin(uid),orderId); response = mobileService.orderStatusQuery(authorization.dafuwengLogin(uid),orderId);
......
...@@ -409,13 +409,14 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check ...@@ -409,13 +409,14 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
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);
logger.info("商品兑换按钮:" + exchangeText); logger.info("商品兑换按钮:" + exchangeText);
//第二次兑换 //第二次兑换
Thread.sleep(4000);
try{ try{
response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456"); response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
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