Commit 81b2cc79 authored by 钱雯君's avatar 钱雯君

add

parent 4921d33c
...@@ -10,8 +10,7 @@ package http.cases.PkTest; ...@@ -10,8 +10,7 @@ package http.cases.PkTest;
import base.DuibaLog; import base.DuibaLog;
import base.DuibaTestBase; import base.DuibaTestBase;
import com.alibaba.fastjson.JSONObject;
import http.model.BetMobileVo;
import http.service.Activity.PkService; import http.service.Activity.PkService;
import http.service.Manager.PkActivityService; import http.service.Manager.PkActivityService;
import io.restassured.response.Response; import io.restassured.response.Response;
...@@ -28,6 +27,7 @@ import org.joda.time.format.DateTimeFormatter; ...@@ -28,6 +27,7 @@ import org.joda.time.format.DateTimeFormatter;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import java.sql.SQLException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -60,7 +60,7 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase { ...@@ -60,7 +60,7 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase {
private List<String> optionsIds = new ArrayList<>(); private List<String> optionsIds = new ArrayList<>();
// @BeforeMethod @BeforeMethod
public void setUp() { public void setUp() {
try { try {
...@@ -93,7 +93,7 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase { ...@@ -93,7 +93,7 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase {
// Response res3 = pkService.doJoin(user03,newBetId,optionsIds.get(1)); // Response res3 = pkService.doJoin(user03,newBetId,optionsIds.get(1));
// Response res4 = pkService.doJoin(user04,newBetId,optionsIds.get(1)); // Response res4 = pkService.doJoin(user04,newBetId,optionsIds.get(1));
Response res1 = pkService.doJoin(user01,"1124","2247"); // Response res1 = pkService.doJoin(user01,"1124","2247");
// res1.prettyPrint(); // res1.prettyPrint();
...@@ -108,7 +108,6 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase { ...@@ -108,7 +108,6 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase {
} }
public void createPk(String bounsType,String endTime,String groupId) throws Exception { public void createPk(String bounsType,String endTime,String groupId) throws Exception {
Response betResponse = pkActivityService.bet(bounsType,endTime); Response betResponse = pkActivityService.bet(bounsType,endTime);
...@@ -144,19 +143,19 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase { ...@@ -144,19 +143,19 @@ public class pk_开奖_瓜分红包测试 extends DuibaTestBase {
// //
// } // }
@AfterMethod
public void tearDown(){
@AfterClass
public void tearDown() {
try { try {
// if (!newBetId.equals("")){
// Boolean res1 = jdbc.update("delete from act_com_conf.tb_bet_config where id = ?\n",newBetId);
// Boolean res2 = jdbc.update("delete from act_com_conf.tb_bet_group_relation where bet_id = ?\n",newBetId);
// }
Boolean res3 = jdbc.update("delete from act_com_conf.tb_bet_group_relation where bet_id in (select id from act_com_conf.tb_bet_config where title = \"【自动化】新建pk活动-瓜分红包\")\n"); Boolean result2 = jdbc.update("delete from act_com_conf.tb_bet_group_relation where bet_id in (select id from act_com_conf.tb_bet_config where title = '【自动化】新建pk活动-瓜分红包')");
Boolean res4 = jdbc.update("delete from act_com_conf.tb_bet_config where title = \"【自动化】新建pk活动-瓜分红包\"\n"); Boolean result3 = jdbc.update("delete from act_com_conf.tb_bet_config where title = '【自动化】新建pk活动-瓜分红包'");
}catch (Exception e){ } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
} }
\ No newline at end of file
...@@ -220,6 +220,10 @@ public class pk_管理端测试_AccessTest extends DuibaTestBase { ...@@ -220,6 +220,10 @@ public class pk_管理端测试_AccessTest extends DuibaTestBase {
Boolean result4 = jdbc.update("delete from act_com_conf.tb_app_group_relation where group_id in (select id from act_com_conf.tb_bet_act_group where title = '【勿动】增pk组投放')"); Boolean result4 = jdbc.update("delete from act_com_conf.tb_app_group_relation where group_id in (select id from act_com_conf.tb_bet_act_group where title = '【勿动】增pk组投放')");
Boolean result5 = jdbc.update("delete from act_com_conf.tb_bet_act_group where title = '【勿动】增pk组投放'"); Boolean result5 = jdbc.update("delete from act_com_conf.tb_bet_act_group where title = '【勿动】增pk组投放'");
Boolean result6 = jdbc.update("delete from act_com_conf.tb_bet_group_relation where bet_id in (select id from act_com_conf.tb_bet_config where title = '【自动化】新建pk活动-瓜分红包')");
Boolean result7 = jdbc.update("delete from act_com_conf.tb_bet_config where title = '【自动化】新建pk活动-瓜分红包'");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
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