Commit ab240a96 authored by 马博's avatar 马博

fix

parent af39372e
......@@ -78,6 +78,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,38);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......@@ -135,6 +136,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
try{
Thread.sleep(3000);
//第一次兑换
Response response = gawService.couponExchange(uid, appItemId,40);
String orderId = response.jsonPath().getString("data.orderId");
......@@ -196,6 +198,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
String appItemId = "193845";
try{
Thread.sleep(3000);
//第一次兑换
Response response = gawService.couponExchange(uid, appItemId,42);
String orderId = response.jsonPath().getString("data.orderId");
......@@ -262,6 +265,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,44);
}catch (Exception e){
......@@ -302,6 +306,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
//兑换
try{
Thread.sleep(3000);
response = gawService.couponExchange(uid, appItemId, skuId);
}catch (Exception e){
......@@ -351,6 +356,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = gawService.couponExchange(authorization.dafuwengLogin(uid), appItemId,45);
response.prettyPrint();
......@@ -360,6 +366,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
logger.info(message);
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response = gawService.couponExchange(authorization.generateSignAutoLogin("3tzVcss7SnAvA5ppT1m1rMPhaBcD",7083,1),appItemId,45);
response.prettyPrint();
......@@ -376,6 +383,7 @@ public class 自有新优惠券_兑换限制测试_ExchangeTest extends CheckTem
String appItemId = "193844";
try{
Thread.sleep(3000);
//第一次兑换
Response response = gawService.couponExchange(uid, appItemId,41);
response.prettyPrint();
......
......@@ -94,6 +94,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,47);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......@@ -153,6 +154,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,82);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -212,6 +214,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,83);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -277,6 +280,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,84);
}catch (Exception e){
......@@ -318,6 +322,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
//兑换
try{
Thread.sleep(3000);
response = gawService.couponExchange(authorization.dafuwengLogin(uid), appItemId, skuId);
}catch (Exception e){
......@@ -375,6 +380,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = gawService.couponExchange(authorization.dafuwengLogin(uid), appItemId,86);
response.prettyPrint();
......@@ -413,6 +419,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.couponExchange(uid, appItemId,85);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......
......@@ -73,6 +73,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -124,6 +125,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
String credits="2";
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
logger.info("********1"+"111111");
String orderId = response.jsonPath().getString("data.orderId");
......@@ -176,6 +178,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
String credits="3";
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -227,6 +230,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
String credits="5";
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -280,6 +284,8 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
logger.info(caseName);
//兑换
try{
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId);
response.prettyPrint();
}catch (Exception e){
......@@ -330,6 +336,8 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
logger.info("商品兑换按钮:" + exchangeText);
try{
Thread.sleep(3000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
response.prettyPrint();
......@@ -355,6 +363,7 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
//会员等级无法兑换
try{
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response =gawService.objectExchange(uid,appItemId,itemId);
response.prettyPrint();
......
......@@ -77,6 +77,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.virtualExchange(cookie, appItemId,48);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......@@ -135,6 +136,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.virtualExchange(cookie, appItemId,54);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -195,6 +197,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.virtualExchange(cookie, appItemId,55);
String orderId = response.jsonPath().getString("data.orderId");
//获取兑换结果
......@@ -260,6 +263,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = gawService.virtualExchange(cookie, appItemId,57);
}catch (Exception e){
......@@ -300,6 +304,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
//兑换
try{
Thread.sleep(3000);
response = gawService.virtualExchange(cookie, appItemId, skuId);
}catch (Exception e){
......@@ -349,6 +354,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = gawService.virtualExchange(authorization.dafuwengLogin(uid), appItemId,81);
response.prettyPrint();
......@@ -358,6 +364,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
logger.info(message);
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response = gawService.virtualExchange(authorization.generateSignAutoLogin("3tzVcss7SnAvA5ppT1m1rMPhaBcD",7083,1),appItemId,81);
response.prettyPrint();
......@@ -375,6 +382,7 @@ public class 自有新虚拟商品_充值_兑换限制_ExchangeTest extends Chec
try{
//第一次兑换
Thread.sleep(3000);
Response response = gawService.virtualExchange(cookie, appItemId,59);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
......
......@@ -87,6 +87,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......@@ -145,6 +146,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -205,6 +207,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -270,6 +273,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
}catch (Exception e){
......@@ -310,6 +314,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
//兑换
try{
Thread.sleep(3000);
response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
}catch (Exception e){
......@@ -359,6 +364,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId,null);
response.prettyPrint();
......@@ -368,6 +374,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
logger.info(message);
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.generateSignAutoLogin("2wGQc3MZaQsqYFWcX4gguya5PnnS",3402),appItemId,null);
response.prettyPrint();
......@@ -385,6 +392,7 @@ public class 自有老优惠券商品_兑换限制测试_ExchangeTest extends Ch
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.couponExchange(authorization.dafuwengLogin(uid), appItemId, null);
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......
......@@ -88,6 +88,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId, null, "null", "yrJRr7Cddp2YeQd", "null");
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......@@ -146,6 +147,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId, null, "null", "yrJRr7Cddp2YeQd", "null");
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -206,6 +208,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId, null, "null", "yrJRr7Cddp2YeQd", "null");
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -272,6 +275,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId, null, "null", "yrJRr7Cddp2YeQd", "null");
}catch (Exception e){
......@@ -311,6 +315,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
map.put("token",token);
//兑换
Thread.sleep(3000);
Response response = given().contentType("application/x-www-form-urlencoded;charset=UTF-8").cookies(authorization.dafuwengLogin(uid)).params(map).post(url + "/objectExchange/exchange");
response.prettyPrint();
......@@ -352,6 +357,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId,null, "null", "yrJRr7Cddp2YeQd", "null");
response.prettyPrint();
......@@ -361,6 +367,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
logger.info(message);
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.generateSignAutoLogin("2wGQc3MZaQsqYFWcX4gguya5PnnS",3402),appItemId,null,"null","yrJRr7Cddp2YeQd","null");
response.prettyPrint();
......@@ -378,6 +385,7 @@ public class 自有老实物_兑换限制测试_ExchangeTest extends CheckTemple
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.objectExchange(authorization.dafuwengLogin(uid), appItemId, null, "null", "yrJRr7Cddp2YeQd", "null");
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......
......@@ -85,6 +85,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......@@ -143,6 +144,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -203,6 +205,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
String orderId = response.jsonPath().getString("orderId");
//获取兑换结果
......@@ -268,6 +271,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
String message=null;
try{
//兑换
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
}catch (Exception e){
......@@ -308,6 +312,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
//兑换
try{
Thread.sleep(3000);
response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
}catch (Exception e){
......@@ -357,6 +362,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
//会员等级无法兑换
try{
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId,"123456");
response.prettyPrint();
......@@ -366,6 +372,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
logger.info(message);
//会员等级可兑换,vip=5
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.generateSignAutoLogin("2wGQc3MZaQsqYFWcX4gguya5PnnS",3402),appItemId,"123456");
response.prettyPrint();
......@@ -383,6 +390,7 @@ public class 自有老虚拟商品_兑换限制测试_ExchangeTest extends Check
try{
//第一次兑换
Thread.sleep(3000);
Response response = couponExchangeService.virtualExchange(authorization.dafuwengLogin(uid), appItemId, "123456");
response.prettyPrint();
String orderId = response.jsonPath().getString("orderId");
......
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