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

lv

parent 2b57e8a1
......@@ -91,7 +91,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
Assert.assertEquals(rules1,"2","校验rules1失败");
Assert.assertEquals(rules2,"3","校验rules2失败");
logger.info("集卡活动领奖成功");
logger.info("校验成功:集卡活动领奖成功");
}
......@@ -120,7 +120,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
//库存不足,接口会轮询处理超时
Assert.assertEquals(result,"0","校验result失败");
Assert.assertEquals(response.jsonPath().getString("takeSuccess"),"false","校验takeSuccess失败");
logger.info("集卡大奖库存不足领奖失败");
logger.info("校验成功:集卡大奖库存不足领奖失败");
}
......@@ -135,7 +135,7 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
response.prettyPrint();
Assert.assertEquals(response.jsonPath().getString("desc"),"卡片还未集齐,请继续集卡","校验desc失败");
logger.info("集卡卡片未集齐领奖失败");
logger.info("校验成功:集卡卡片未集齐领奖失败");
}
......@@ -170,10 +170,24 @@ public class 集卡活动领奖_AccessTest extends DuibaTestBase {
//检验 成功的只有一个。错误提示有多种
Assert.assertEquals(fail,4,"校验fail数量失败");
Assert.assertEquals(success,1,"校验success数量失败");
logger.info("校验集卡单用户并发领奖成功");
logger.info("校验成功:集卡单用户并发领奖");
}
@Test(description = "集卡活动已下架,领奖测试")
public void 集卡活动已下架再领奖() throws Exception{
int uid = 7451;
String activityId = "45620";
Response response = clcardService.openPrize2(uid,activityId);
response.prettyPrint();
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