Commit 9ff1e122 authored by 吕雯燕's avatar 吕雯燕

lv

parent 87bfb93d
...@@ -113,7 +113,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -113,7 +113,7 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
@Test @Test
public void qbExchange_档位不存在() throws Exception { public void qbExchange_档位不存在() throws Exception {
int uid = 3767; int uid = 7474;
String message = ""; String message = "";
...@@ -178,12 +178,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -178,12 +178,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
Assert.assertTrue(message.contains("\"success\":false")); Assert.assertTrue(message.contains("\"success\":false"));
} }
@Test @Test
public void 每日兑换限制() throws Exception { public void 每日兑换限制() throws Exception {
int uid = 3767; int uid = 7475;
//第一次兑换 //第一次兑换
Thread.sleep(5000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","1"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","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);
...@@ -209,12 +209,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -209,12 +209,12 @@ public class Qb_兑换流程测试_ExchangeTest extends CheckTemplet {
Assert.assertTrue(message.contains("\"success\":false")); Assert.assertTrue(message.contains("\"success\":false"));
} }
@Test @Test
public void 永久兑换限制() throws Exception { public void 永久兑换限制() throws Exception {
int uid = 3767; int uid = 7476;
//第一次兑换 //第一次兑换
Thread.sleep(5000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","2"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","2");
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);
......
...@@ -69,7 +69,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -69,7 +69,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int uid = 4932; int uid = 4932;
//第一次兑换 //第一次兑换
Thread.sleep(4000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234343554","1"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234343554","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);
...@@ -100,10 +99,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -100,10 +99,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
@Test(description = "Q币2元用户兑换限制永久") @Test(description = "Q币2元用户兑换限制永久")
public void 用户永久兑换限制() throws Exception { public void 用户永久兑换限制() throws Exception {
int uid = 4933; int uid = 7477;
//第一次兑换 //第一次兑换
Thread.sleep(4000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","2"); Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"1234345554","2");
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);
...@@ -136,10 +134,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -136,10 +134,9 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
@Test(description = "Q币3元用户兑换限制每月") @Test(description = "Q币3元用户兑换限制每月")
public void 用户每月兑换限制() throws Exception { public void 用户每月兑换限制() throws Exception {
int uid = 4933; int uid = 7478;
//第一次兑换 //第一次兑换
Thread.sleep(4000);
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"12343432554","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);
...@@ -208,7 +205,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet { ...@@ -208,7 +205,6 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
int uid = 4934; int uid = 4934;
//第一次兑换 //第一次兑换
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);
......
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