Commit 604ffa95 authored by 周松波's avatar 周松波

songbo

parent c5ac9209
......@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import utils.RedisUtil;
import java.sql.SQLException;
import java.text.ParseException;
......@@ -196,14 +197,33 @@ public class ContractSign_signTest extends DuibaTestBase {
}
//@Test(description = "打卡完成,活动ID=2",priority = 4)
@Test(description = "uid3 uid4打卡完成,活动ID=2",priority = 4)
public void 契约签到整期打卡完成() throws Exception{
//
//当前为打卡第6天,周期往期挪一天
String actID = "2";
modifyIssuePeriod(actID, uid3, -1);
//补签前6天
this.contractResign(actID, uid3, 7,false);
this.contractResign(actID, uid4, 7,false);
//今日打卡
Response signRes = ContractSignService.doSign("2", uid3);
String success = signRes.jsonPath().getString("success");
String status = signRes.jsonPath().getString("status");
Assert.assertEquals(success, "true", "uid3打卡失败");
Assert.assertEquals(status,"6","完成7日打卡状态不正确");
logger.info("uid3七日打卡成功");
signRes = ContractSignService.doSign("2", uid4);
success = signRes.jsonPath().getString("success");
status = signRes.jsonPath().getString("status");
Assert.assertEquals(success, "true", "uid4打卡失败");
Assert.assertEquals(status,"6","完成7日打卡状态不正确");
logger.info("uid4七日打卡成功");
}
//@Test(description = "开奖,活动ID=2",priority = 5)
public void 契约开奖() throws Exception{
//
//修改redis的打卡日期键值
}
public Map<String, String> doJoinResult(String activityId, String betAmount, int uid) throws Exception {
Response doJoinRes = ContractSignService.doJoin(activityId, betAmount, uid);
......
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