Commit 5cac6a15 authored by qwj-github's avatar qwj-github

add

parent 4e07b900
......@@ -182,4 +182,6 @@ public class MysqlConnPool {
}
}
......@@ -99,6 +99,7 @@ public class 集卡_出奖方式测试_DuibaTest extends DuibaTestBase {
//自定义活动游戏 结果
Response response = this.playNewActivityResult("19930", "r3oq9gqkf", "240",2720);
response.prettyPrint();
//校验中奖结果类型
Assert.assertEquals(String.valueOf(response.jsonPath().getString("lottery.type")), "collectGoods", "校验中奖类型失败");
logger.info("校验中奖奖品类型成功,自定义活动游戏中奖奖品类型" + response.jsonPath().getString("lottery.type"));
......@@ -145,16 +146,16 @@ public class 集卡_出奖方式测试_DuibaTest extends DuibaTestBase {
String orderId = playResponse.jsonPath().getString("orderId");
Response statusResponse = newActivityService.getOrderStatus21(orderId,uid);
// statusResponse.prettyPrint();
statusResponse.prettyPrint();
String playResult = statusResponse.jsonPath().getString("result");
int i = 30;
while (i > 0 && (playResult.equals("0"))) {
Thread.sleep(1000);
statusResponse = newActivityService.getOrderStatus21(orderId,uid);
// statusResponse.prettyPrint();
statusResponse.prettyPrint();
playResult = String.valueOf(statusResponse.jsonPath().getString("result"));
i--;
// statusResponse.prettyPrint();
statusResponse.prettyPrint();
}
return statusResponse;
......
......@@ -46,6 +46,13 @@ public class 瓜分积分_实际瓜分_主胜方_AccessTest extends DuibaTestBas
private static String optionId2;
@Test
public void delet() throws Exception{
Boolean result1 = jdbc.update("DELETE FROM activity_order_con.tb_trade_center_activity_order_0525 where consumer_id = '100117005'\n");
}
@Test
public void 创建PK活动() throws Exception{
Response response = pkDevelopService.betEditor_right("18157163293","21832","4",null,"1","30","false","true");
......
......@@ -134,14 +134,14 @@ public class pk_瓜分红包_首页中奖弹层测试_AccessTest extends DuibaTe
Thread.sleep(8000);
Response popRes = pkService.popup(user02);
popRes.prettyPrint();
Assert.assertEquals(popRes.jsonPath().getString("data.show"),"false","校验是否展示弹层失败");
Assert.assertEquals(popRes.jsonPath().getString("data.totalBonus"),"0.0","校验红包值失败");
Assert.assertEquals(popRes.jsonPath().getString("data.drawType"),"0","校验开奖类型失败");
Assert.assertEquals(popRes.jsonPath().getString("data.lucky"),"false","校验不发福袋失败失败");
Assert.assertEquals(popRes.jsonPath().getString("data.prizeList"),null,"校验中奖list为null");
// Response popRes = pkService.popup(user02);
// popRes.prettyPrint();
// Assert.assertEquals(popRes.jsonPath().getString("data.show"),"false","校验是否展示弹层失败");
// Assert.assertEquals(popRes.jsonPath().getString("data.totalBonus"),"0.0","校验红包值失败");
// Assert.assertEquals(popRes.jsonPath().getString("data.drawType"),"0","校验开奖类型失败");
// Assert.assertEquals(popRes.jsonPath().getString("data.lucky"),"false","校验不发福袋失败失败");
//
// Assert.assertEquals(popRes.jsonPath().getString("data.prizeList"),null,"校验中奖list为null");
}
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public class 兑吧_优惠券秒杀商品兑换测试_SeckillTest extends DuibaTestBase {
public class 兑吧_优惠券秒杀商品兑换测试 extends DuibaTestBase {
@Autowired
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public class 兑吧_实物秒杀商品兑换测试_SeckillTest extends DuibaTestBase {
public class 兑吧_实物秒杀商品兑换测试 extends DuibaTestBase {
@Autowired
......
/**
* Copyright (C), 2015-2018
* FileName: 天天秒杀_秒杀活动兑换测试_SeckillTest
* FileName: 天天秒杀_秒杀活动兑换测试
* Author: qianwenjun
* Date: 2018/6/20 20:38
* Description:
......@@ -39,7 +39,7 @@ import static io.restassured.RestAssured.given;
* @create 2018/6/20
* @since 1.0.0
*/
public class 天天秒杀_秒杀活动兑换测试_SeckillTest extends DuibaTestBase {
public class 天天秒杀_秒杀活动兑换测试 extends DuibaTestBase {
@Autowired
SeckillService seckillService;
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public class 自有_优惠券秒杀商品兑换测试_SeckillTest extends DuibaTestBase {
public class 自有_优惠券秒杀商品兑换测试 extends DuibaTestBase {
@Autowired
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public class 自有_实物秒杀商品兑换测试_SeckillTest extends DuibaTestBase {
public class 自有_实物秒杀商品兑换测试 extends DuibaTestBase {
@Autowired
......@@ -46,7 +46,7 @@ public class 自有_实物秒杀商品兑换测试_SeckillTest extends DuibaTest
@Test
// @Test
public void 自有秒杀实物商品兑换测试() {
......
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
......@@ -30,7 +30,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public class 自有_虚拟商品秒杀商品兑换测试_SeckillTest extends DuibaTestBase {
public class 自有_虚拟商品秒杀商品兑换测试 extends DuibaTestBase {
@Autowired
......
......@@ -13,6 +13,7 @@ import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
......@@ -53,20 +54,24 @@ public class TypeChangeUtil {
public static void main(String[] args) {
CreditTool tool = new CreditTool("jlg88lyxz7siqtmr", "1x0eap95f4xfi77uaptrnwh9ewzvlm");
String url="http://activity.m.duiba.com.cn/autoLogin/autologin?";
Map<String, String> params=new HashMap<>();
params.put("uid", "1");//中文
params.put("times","6");
params.put("validType","0");
params.put("bizid", UUID.randomUUID().toString().replace("-",""));
//params.put("credits","0");
params.put("redirect","http://activity.m.duiba.com.cn/hdtool/index?id=3212716");
params.put("actid","3212716");
params.put("addType","0");
params.put("timestamp",System.currentTimeMillis()+"");
String autologinUrl= tool.buildUrlWithSign(url,params);
// String result = HttpUtil.sendGet(autologinUrl);
System.out.println(autologinUrl);
// CreditTool tool = new CreditTool("jlg88lyxz7siqtmr", "1x0eap95f4xfi77uaptrnwh9ewzvlm");
// String url="http://activity.m.duiba.com.cn/autoLogin/autologin?";
// Map<String, String> params=new HashMap<>();
// params.put("uid", "1");//中文
// params.put("times","6");
// params.put("validType","0");
// params.put("bizid", UUID.randomUUID().toString().replace("-",""));
// //params.put("credits","0");
// params.put("redirect","http://activity.m.duiba.com.cn/hdtool/index?id=3212716");
// params.put("actid","3212716");
// params.put("addType","0");
// params.put("timestamp",System.currentTimeMillis()+"");
// String autologinUrl= tool.buildUrlWithSign(url,params);
//// String result = HttpUtil.sendGet(autologinUrl);
// System.out.println(autologinUrl);
}
}
\ No newline at end of file
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