Commit 8d81c892 authored by 龚小红's avatar 龚小红

增加场景类型

parent 807fed58
...@@ -687,6 +687,17 @@ public class Phone implements Authorization { ...@@ -687,6 +687,17 @@ public class Phone implements Authorization {
getSellerPlan(1,1,1,1,2,0); getSellerPlan(1,1,1,1,2,0);
} }
@Test(description = "查看跟进人标签",priority = 59)
public void 查看跟进人标签(){
HashMap<String,Object> params = new HashMap<>();
params.put("custId", IdMakeUtil.decodingId(cust_id));
params.put("type", 1);
Response response = network.getResponse(params,BasicConfig.WORK_header);
int sceneConfDesc= response.jsonPath().getInt("data.sceneConfDesc.size()");
Assert.assertEquals(sceneConfDesc,1,network.message(params,BasicConfig.WORK_header,"客户的场景标签数量错误",response.body().asString()));
}
@Test(description = "删除客户",priority = 79) @Test(description = "删除客户",priority = 79)
public void 删除客户(){ public void 删除客户(){
long id= IdMakeUtil.decodingId(cust_id); long id= IdMakeUtil.decodingId(cust_id);
...@@ -697,10 +708,10 @@ public class Phone implements Authorization { ...@@ -697,10 +708,10 @@ public class Phone implements Authorization {
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString())); Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
} }
//
// for(int i = 4559;i<4984;i++){ // for(int i = 4559;i<4984;i++){
// HashMap<String,Object> params = new HashMap<>(); // HashMap<String,Object> params = new HashMap<>();
// params.put("custId", i); // params.put("custId", 7665);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust); // Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// //
// } // }
......
...@@ -489,6 +489,7 @@ public class Work implements Authorization { ...@@ -489,6 +489,7 @@ public class Work implements Authorization {
params.put("confUsable",0); params.put("confUsable",0);
params.put("companyIds",new int[]{5}); params.put("companyIds",new int[]{5});
params.put("sceneName","勿动-自动化场景"); params.put("sceneName","勿动-自动化场景");
params.put("sceneType",2);
params.put("sceneDesc","勿动,这是自动化测试专用的面访场景"); params.put("sceneDesc","勿动,这是自动化测试专用的面访场景");
Response response =network.postResponse(params,BasicConfig.WORK_custConfSave); Response response =network.postResponse(params,BasicConfig.WORK_custConfSave);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
...@@ -518,6 +519,7 @@ public class Work implements Authorization { ...@@ -518,6 +519,7 @@ public class Work implements Authorization {
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
params.put("id",sceneId); params.put("id",sceneId);
params.put("confUsable",1); params.put("confUsable",1);
params.put("sceneType",1);
params.put("companyIds",companyIds); params.put("companyIds",companyIds);
params.put("sceneName","勿动-自动化面访场景"); params.put("sceneName","勿动-自动化面访场景");
params.put("sceneDesc","勿动,这是自动化测试专用的面访场景"); params.put("sceneDesc","勿动,这是自动化测试专用的面访场景");
...@@ -1786,6 +1788,15 @@ public class Work implements Authorization { ...@@ -1786,6 +1788,15 @@ public class Work implements Authorization {
Assert.assertEquals(size,4,network.message(params,BasicConfig.WORK_getPlanList,"总计划数量错误",response.body().asString())); Assert.assertEquals(size,4,network.message(params,BasicConfig.WORK_getPlanList,"总计划数量错误",response.body().asString()));
} }
@Test(description = "获取场景类型",priority = 124)
public void 获取场景类型(){
HashMap<String,Object> params = new HashMap<>();
params.put("sceneType", "1,2");
Response response = network.getResponse(params,BasicConfig.PHONE_getSceneTypes);
int size = response.jsonPath().getInt("data.size()");
Assert.assertTrue(size>0,network.message(params,BasicConfig.PHONE_getSceneTypes,"场景结果为空",response.body().asString()));
}
//修改客户的约面情况 //修改客户的约面情况
public void updateInvite(int interviewFlag,long time){ public void updateInvite(int interviewFlag,long time){
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
......
...@@ -270,6 +270,7 @@ public class BasicConfig { ...@@ -270,6 +270,7 @@ public class BasicConfig {
public static final String PHONE_paper_getCustomers = PHONE_HOST + "/kjy/oto/seller/daily/paper/getCustomers"; public static final String PHONE_paper_getCustomers = PHONE_HOST + "/kjy/oto/seller/daily/paper/getCustomers";
public static final String PHONE_paper_updateCustomer = PHONE_HOST + "/kjy/oto/seller/daily/paper/updateCustomer"; public static final String PHONE_paper_updateCustomer = PHONE_HOST + "/kjy/oto/seller/daily/paper/updateCustomer";
public static final String PHONE_expertList = PHONE_HOST + "/kjy/oto/interview/expertList"; public static final String PHONE_expertList = PHONE_HOST + "/kjy/oto/interview/expertList";
public static final String PHONE_getSceneTypes= PHONE_HOST + "/kjy/oto/manager/custconf/getSceneTypes";
//******************专用测试接口****************************8 //******************专用测试接口****************************8
public static final String WORK_verifyCode = WORK_HOST + "/kjy/oto/auto/test/verifyCode"; public static final String WORK_verifyCode = WORK_HOST + "/kjy/oto/auto/test/verifyCode";
......
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