Commit 6a1cd26b authored by 马博's avatar 马博

update

parent e530dd0d
......@@ -138,6 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
public void 用户每月兑换限制() throws Exception {
int uid = 7478;
Thread.sleep(4000);
//第一次兑换
Response response = qbExchangeService.doTakePrize(authorization.dafuwengLogin(uid),"12343432554","3");
String orderId = (String)response.jsonPath().get("orderId");
......
......@@ -325,6 +325,7 @@ public class 兑吧老优惠券_兑换流程测试_ExchangeTest extends CheckTem
String orderId = this.优惠券兑换订单(appItemId,itemId,uid);
logger.info("订单号:" + orderId);
Thread.sleep(3000);
//订单审核,判断是否在待审核节点
Map<String,Object> mapOrder = jdbc.findSimpleResult("SELECT * FROM "+Database.orders_consumer+"."+Database.orders9+" WHERE id = " + orderId);
String flowWork = String.valueOf(mapOrder.get("flowwork_stage"));
......@@ -348,7 +349,7 @@ public class 兑吧老优惠券_兑换流程测试_ExchangeTest extends CheckTem
//判断订单是否审核成功,如果订单没有成功则继续审核
int j =10;
while (j > 0 && !flowWork.equals("Success-complete")) {
Thread.sleep(1000);
Thread.sleep(3000);
auditResponse = dsOrderService.submitAudit("22542",orderId,"pass",authorization.hdLoginCommonNew("15833333333"));
mapOrder = jdbc.findSimpleResult("SELECT * FROM "+Database.orders_consumer+"."+Database.orders9+" WHERE id = " + orderId);
flowWork = String.valueOf(mapOrder.get("flowwork_stage"));
......
......@@ -40,7 +40,8 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet {
// private MysqlUtils jdbc;
// @BeforeClass
// @BeforeClassF优惠券用户批次兑换限制测试()
// public void before(){
//
// jdbc = MysqlUtils.mysqlDuiba("");
......
......@@ -28,7 +28,10 @@ db.password= 2Fe36uDap8TMqtfzob3f1u8r2aK8qjdnwPP
//db.url = jdbc:mysql://47.97.127.67:13001/?tinyInt1isBit=false
#db.url = jdbc:mysql://autotest-config.duibatest.com.cn:3306/?tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.url = jdbc:mysql://auto.testdb2.duibar.com:3306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
#db.url = jdbc:mysql://auto.testdb2.duibar.com:3306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.url = jdbc:mysql://auto.testdb2.duibar.com:5306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.driver= com.mysql.cj.jdbc.Driver
......
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