Commit 82efd525 authored by 龚小红's avatar 龚小红

修改亲友券

parent 16299458
......@@ -20,6 +20,9 @@ import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.*;
import static com.kjj.utils.BaseUtils.ssoLogin;
public class SaveLive implements Authorization {
public String liveID;
public String EncodeLiveID;
......@@ -28,7 +31,8 @@ public class SaveLive implements Authorization {
public List<RedList> redId;
@BeforeClass
public void setUp() {BaseUtils.ssoLogin(); }
public void setUp() {
ssoLogin(); }
/**
* 创建直播
......@@ -2342,22 +2346,23 @@ public class SaveLive implements Authorization {
/**
* 亲友抽奖券配置
*/
// @Test(description = "保存亲友抽奖券配置", priority = 125)
// public void 保存亲友抽奖券配置() {
// Map<String, Object> Params = new HashMap<>();
// Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
// Params.put("giftedLotteryUrl","");
// Params.put("notGiftedLotteryUrl","");
// Params.put("popLotteryUrl","");
// Params.put("envelopeWord","这是信封话术");
// Params.put("lotteryName","亲友抽奖券");
// Params.put("lotteryNum",3);
// Params.put("lotteryInstruction","这是亲友抽奖券的说明");
// Response response = network.postResponse(Params, BasicConfig.MANAGER_relativeLottery);
// System.out.println(response.body().asString());
// boolean data =response.jsonPath().getBoolean("data");
// Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_relativeLottery, "保存亲友券配置失败", response.body().asString()));
// }
@Test(description = "保存亲友抽奖券配置", priority = 125)
public void 保存亲友抽奖券配置(){
ssoLogin();
Map<String, Object> Params = new HashMap<>();
Params.put("liveId", 5482);
Params.put("giftedLotteryUrl","");
Params.put("notGiftedLotteryUrl","");
Params.put("popLotteryUrl","");
Params.put("envelopeWord","这是信封话术");
Params.put("lotteryName","亲友抽奖券");
Params.put("lotteryNum",3);
Params.put("lotteryInstruction","这是亲友抽奖券的说明");
Response response = network.postResponse(Params, BasicConfig.MANAGER_relativeLottery);
System.out.println(response.body().asString());
boolean data =response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_relativeLottery, "保存亲友券配置失败", response.body().asString()));
}
//
// @Test(description = "查看亲友抽奖券配置详情", priority = 126)
// public void 查看亲友抽奖券配置详情() {
......
......@@ -24,7 +24,7 @@ public class DingTalkUtils {
context = "【接口自动化测试结果反馈】\n"
+ context
+ "报告地址: http://10.172.58.199/view/kkk/job/kejiji_interface/HTML_20Report\n"
+ "@张艳玲";
+ "@龚小红";
System.out.println(context);
Map<String, Object> contentParams = new HashMap<String, Object>();
......
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