Commit b75f178e authored by 吕雯燕's avatar 吕雯燕

lv

parent 100038b1
...@@ -59,7 +59,7 @@ public class 集卡活动助力_AccessTest extends DuibaTestBase { ...@@ -59,7 +59,7 @@ public class 集卡活动助力_AccessTest extends DuibaTestBase {
//开始助力 //开始助力
Response helpResponse = clcardService.doHelpNew(uid1,activityId,shareCode); Response helpResponse = clcardService.doHelpNew(uid1,activityId,shareCode);
helpResponse.prettyPrint(); helpResponse.prettyPrint();
Thread.sleep(100); Thread.sleep(1000);
//首页集卡信息 //首页集卡信息
indexResponse = clcardService.activity(uid1,activityId); indexResponse = clcardService.activity(uid1,activityId);
int resultCount = Integer.parseInt(indexResponse.jsonPath().getString("data.cards[1].count")); int resultCount = Integer.parseInt(indexResponse.jsonPath().getString("data.cards[1].count"));
......
...@@ -28,7 +28,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase { ...@@ -28,7 +28,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
private List<String> resultList = new CopyOnWriteArrayList<>(); private List<String> resultList = new CopyOnWriteArrayList<>();
// @BeforeClass @BeforeClass
public void before(){ public void before(){
try{ try{
//修改表,增加用户卡片,"A_集卡单用户并发领奖" //修改表,增加用户卡片,"A_集卡单用户并发领奖"
......
...@@ -144,6 +144,27 @@ public class 红包广场提现_AccessTest extends DuibaTestBase { ...@@ -144,6 +144,27 @@ public class 红包广场提现_AccessTest extends DuibaTestBase {
} }
@Test(description = "用户提现失败测试:提现次数不足")
public void 提现次数不足() throws Exception{
int uid = 7455;
String activityId = "3";
String money = "1";
String account = "lvwenyan@duiba.com.cn";
String username = "吕雯燕";
Response response = lotterySquareService.cashDraws2(uid,activityId,money,account,username);
response.prettyPrint();
Assert.assertEquals(response.jsonPath().getString("success"),"false","校验success失败");
Assert.assertEquals(response.jsonPath().getString("desc"),"活动期间提现次数已达上限","校验desc失败");
logger.info("校验成功:提现次数不足无法提现");
}
} }
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