Commit fdecc52f authored by 赵然's avatar 赵然

zr

parent 7901166a
...@@ -18,6 +18,7 @@ import http.service.Manager.EditManagerInfoService; ...@@ -18,6 +18,7 @@ import http.service.Manager.EditManagerInfoService;
import io.restassured.response.Response; import io.restassured.response.Response;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import utils.GetCookieUtil; import utils.GetCookieUtil;
...@@ -43,9 +44,17 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase { ...@@ -43,9 +44,17 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase {
@Autowired @Autowired
EditManagerInfoService editManagerInfoService; EditManagerInfoService editManagerInfoService;
private static DuibaLog logger = DuibaLog.getLogger();
@BeforeClass
public void beforeclass() {
try {
this.clear2();
} catch (Exception e) {
logger.info("数据前后置操作异常");
}
}
private static DuibaLog logger = DuibaLog.getLogger();
@Test @Test
public void 助力_发集卡() throws Exception{ public void 助力_发集卡() throws Exception{
...@@ -258,6 +267,9 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase { ...@@ -258,6 +267,9 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase {
Boolean res1 = jdbc.update("delete from new_consumer.consumer_0010 where id = ?",comsumerId); Boolean res1 = jdbc.update("delete from new_consumer.consumer_0010 where id = ?",comsumerId);
} }
public void clear2() throws Exception{
Boolean res = jdbc.update("delete from dafuweng.user where name = '新用户助力' and app_id = '57'");
}
public String getDbName (String dbPrex,String consumerId) { public String getDbName (String dbPrex,String consumerId) {
......
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