Commit 2e0f515c authored by 张艳玲's avatar 张艳玲

update

parent 5f9186a8
......@@ -23,7 +23,7 @@ public class CloseLive implements AdminAuthorization{
public void 结束直播() {
Map<String, Object> closeParam = new HashMap<>();
closeParam.put("liveid", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
closeParam.put("cid", 90);
closeParam.put("cid", 101);
Response closeRes = network.postResponse(closeParam, BasicConfig.ANCHOR_CLOSE);
Object data = closeRes.jsonPath().getJsonObject("data");
System.out.println(data);
......
......@@ -34,7 +34,7 @@ public class LiveMaterial implements AdminAuthorization {
saveOrUpdateParam.put("welfareName", "盲盒锦鲤");
saveOrUpdateParam.put("welfarePictures", "https://yun.dui88.com/kjy/image/20210304/1614844198545.jpeg");
saveOrUpdateParam.put("welfarePicturesArr", "https://yun.dui88.com/kjy/image/20210304/1614844198545.jpeg");
saveOrUpdateParam.put("companyId", 90);
saveOrUpdateParam.put("companyId", 101);
Response saveOrUpdatePes = network.postResponse(saveOrUpdateParam, BasicConfig.MANAGER_SAVEORUPDATE6);
boolean data = saveOrUpdatePes.jsonPath().getBoolean("data");
......@@ -46,7 +46,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询福利并删除() {
Map<String, Object> params = new HashMap<>();
params.put("companyId", 90);
params.put("companyId", 101);
params.put("pageIndex", 1);
params.put("pageSize", 1);
......@@ -76,7 +76,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 添加投票() {
Map<String, Object> choiceParam = new HashMap<>();
choiceParam.put("companyId", 90);
choiceParam.put("companyId", 101);
choiceParam.put("question", "投票测试一");
List<VoteListBean> votes = new ArrayList<>();
VoteListBean vote = new VoteListBean();
......@@ -103,7 +103,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询投票并删除() {
Map<String, Object> choiceListPram = new HashMap<>();
choiceListPram.put("companyId", 90);
choiceListPram.put("companyId", 101);
choiceListPram.put("pageIndex", 1);
choiceListPram.put("pageSize", 1);
......@@ -131,7 +131,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test(description = "问题管理", priority = 5)
public void 添加问题() {
Map<String, Object> questionParam = new HashMap<>();
questionParam.put("companyId", 90);
questionParam.put("companyId", 101);
questionParam.put("question", "测试问题");
Response questionRes = network.postResponse(questionParam, BasicConfig.MANAGER_QUESTION);
......@@ -144,7 +144,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询问题并删除() {
Map<String, Object> question1Param = new HashMap<>();
question1Param.put("companyId", 90);
question1Param.put("companyId", 101);
question1Param.put("pageIndex", 1);
question1Param.put("pageSize", 1);
......@@ -172,7 +172,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test(description = "添加图文资料", priority = 7)
public void 添加图文资料() {
Map<String, Object> resourceParam = new HashMap<>();
resourceParam.put("companyId", 90);
resourceParam.put("companyId", 101);
resourceParam.put("resourceTitle", "图文资料2");
resourceParam.put("resourceButtonTitle", "我要报名");
resourceParam.put("resourceImg", "https://yun.dui88.com/kjy/image/20210306/1615023456356.jpeg");
......@@ -190,7 +190,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询图文并删除() {
Map<String, Object> imageTextParam = new HashMap<>();
imageTextParam.put("companyId", 90);
imageTextParam.put("companyId", 101);
imageTextParam.put("pageIndex", 1);
imageTextParam.put("pageSize", 1);
imageTextParam.put("resourceTypeList", 1);
......@@ -237,7 +237,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询链接并删除() {
Map<String, Object> linkParam = new HashMap<>();
linkParam.put("companyId", 90);
linkParam.put("companyId", 101);
linkParam.put("pageIndex", 1);
linkParam.put("pageSize", 1);
linkParam.put("resourceTypeList", 9);
......@@ -267,7 +267,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test(description = "添加表单", priority = 11)
public void 添加表单() {
Map<String, Object> formParam = new HashMap<>();
formParam.put("companyId", 90);
formParam.put("companyId", 101);
formParam.put("resourceTitle", "表单");
formParam.put("resourceButtonTitle", "我要报名");
formParam.put("resourcePicturesArr", Arrays.asList("https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"));
......@@ -286,7 +286,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 查询表单并删除() {
Map<String, Object> form1Param = new HashMap<>();
form1Param.put("companyId", 90);
form1Param.put("companyId", 101);
form1Param.put("pageIndex", 1);
form1Param.put("pageSize", 1);
form1Param.put("resourceTypeList", 12);
......@@ -315,7 +315,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test(description = "免费领资料", priority = 13)
public void 免费领资料() {
Map<String, Object> freeParam = new HashMap<>();
freeParam.put("companyId", 90);
freeParam.put("companyId", 101);
freeParam.put("resourceTitle", "免费领资料");
freeParam.put("resourceButtonTitle", "领取资料");
freeParam.put("resourcePicturesArr", Arrays.asList("https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"));
......@@ -334,7 +334,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 删除免费领资料() {
Map<String, Object> form1Param = new HashMap<>();
form1Param.put("companyId", 90);
form1Param.put("companyId", 101);
form1Param.put("pageIndex", 1);
form1Param.put("pageSize", 1);
form1Param.put("resourceTypeList", 11);
......@@ -363,7 +363,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test(description = "秒薪测试", priority = 15)
public void 秒薪测试() {
Map<String, Object> testParam = new HashMap<>();
testParam.put("companyId", 90);
testParam.put("companyId", 101);
testParam.put("clueType", 1);
testParam.put("mainButtonTitle","领取门票");
testParam.put("resourcePicturesArr", Arrays.asList("https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"));
......@@ -385,7 +385,7 @@ public class LiveMaterial implements AdminAuthorization {
public void 删除秒薪测试() {
Map<String, Object> test1Param = new HashMap<>();
test1Param.put("companyId", 90);
test1Param.put("companyId", 101);
test1Param.put("pageIndex", 1);
test1Param.put("pageSize", 1);
test1Param.put("resourceTypeList", 13);
......
......@@ -18,7 +18,7 @@ public class OpenLive implements AdminAuthorization {
public void 开启直播() {
Map<String, Object> openParam = new HashMap<>();
openParam.put("liveid", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
openParam.put("cid", 90);
openParam.put("cid", 101);
Response openRes = network.postResponse(openParam, BasicConfig.ANCHOR_OPEN);
Object data = openRes.jsonPath().getJsonObject("data");
System.out.println(data);
......
......@@ -3,7 +3,7 @@ package com.kjj.config;
public class BasicConfig {
public static int apiCount; //接口数量统计
// 是否开启钉钉机器人推送
public static final boolean isPushReport =false; //true
public static final boolean isPushReport =true; //true
// 代理人微信昵称
public static final String WECHAT_NAME = "嘿保险"; //true
......@@ -163,11 +163,12 @@ public class BasicConfig {
public static final String MOBILE_ClueNum = MOBILE_HOST + "/kjy/live/agent/clue/clueNum";
public static final String MOBILE_ClueList = MOBILE_HOST + "/kjy/live/agent/clue/list";
public static final String MOBILE_AGENTSPECIFYAWARDSUBMIN = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardSubmit";
public static final String MOBILE_AgentSpecifyAwardSubmit = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardSubmit";
public static final String MOBILE_GETSHARESIGN = MOBILE_HOST + "/kjy/live/getShareSign";
public static final String MOBILE_binding = MOBILE_HOST + "/clue/invitation/binding";
public static final String MOBILE_AgentSpecifyAwardConf = MOBILE_HOST + "/kjy/live/agent/agentSpecifyAwardConf";
//***************直播素材*****************
public static final String MANAGER_SAVEORUPDATE6 = MANAGER_HOST+ "/kjy/manager/conf/base/welfare/saveOrUpdate";
......
......@@ -38,30 +38,28 @@
</classes>
</test>
<!-- <test preserve-order="true" name="指定中奖">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.DesignatedWinner"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="指定中奖">
<classes>
<class name="com.kjj.cases.live.DesignatedWinner"/>
</classes>
</test>
<test preserve-order="true" name="访客领取资料">
<classes>
<class name="com.kjj.cases.live.LiveVisitors"/>
</classes>
</test>
<!-- <test preserve-order="true" name="获取代理人排行榜及客户信息">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.LiveAgent"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="获取代理人排行榜及客户信息">
<classes>
<class name="com.kjj.cases.live.LiveAgent"/>
</classes>
</test>
<!-- <test preserve-order="true" name="助播-结束直播">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.CloseLive"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="助播-结束直播">
<classes>
<class name="com.kjj.cases.live.CloseLive"/>
</classes>
</test>
......
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