Commit 182a8e9e authored by 龚小红's avatar 龚小红

增加修改重点跟进人的用例

parent 6b7c0c46
......@@ -216,6 +216,7 @@ public class Work implements Authorization {
int callTimes= response.jsonPath().getInt("data.callTimes");
int custStar= response.jsonPath().getInt("data.custStar");
int addWxStatus= response.jsonPath().getInt("data.addWxStatus");
int followUp= response.jsonPath().getInt("data.followUp");
int bindWxWorkFlag= response.jsonPath().getInt("data.wxCustInfo.bindWxWorkFlag");
String custHead= response.jsonPath().getString("data.custHead");
String custDescription= response.jsonPath().getString("data.custDescription");
......@@ -225,6 +226,7 @@ public class Work implements Authorization {
Assert.assertEquals(callTimes,0,network.message(params,BasicConfig.WORK_header,"新客户总通话次数非0",response.body().asString()));
Assert.assertEquals(custStar,0,network.message(params,BasicConfig.WORK_header,"新客户星标不为否",response.body().asString()));
Assert.assertEquals(addWxStatus,0,network.message(params,BasicConfig.WORK_header,"新客户的加微状态不是未添加",response.body().asString()));
Assert.assertEquals(followUp,0,network.message(params,BasicConfig.WORK_header,"新客户的重点跟进人不是空",response.body().asString()));
Assert.assertEquals(bindWxWorkFlag,0,network.message(params,BasicConfig.WORK_header,"新客户的企微状态不是未绑定",response.body().asString()));
Assert.assertEquals(custHead,"https://yun.kjjcrm.com/kjy/media/file/20221018/c9c37c521ddfd949614f1b78b92a1001.png?x-oss-process=image/quality,q_80",network.message(params,BasicConfig.WORK_header,"新客户头像非默认头像",response.body().asString()));
Assert.assertEquals(custDescription,"",network.message(params,BasicConfig.WORK_header,"新客户的备注不为null",response.body().asString()));
......@@ -1631,6 +1633,21 @@ public class Work implements Authorization {
Assert.assertEquals(size,5,network.message(params,BasicConfig.WORK_sellerList,"当前跟进人模糊搜索数量错误",response.body().asString()));
}
@Test(description = "修改重点跟进人",priority = 113)
public void 修改重点跟进人(){
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
params.put("followUp", 4);
Response response = network.postResponse(params,BasicConfig.WORK_updateFollowUp);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_updateFollowUp,"修改重点跟进人失败",response.body().asString()));
params.put("type", 2);
response = network.getResponse(params,BasicConfig.WORK_header);
int followUp= response.jsonPath().getInt("data.followUp");
Assert.assertEquals(followUp,4,network.message(params,BasicConfig.WORK_header,"客户重点跟进人错误",response.body().asString()));
}
//修改客户的约面情况
public void updateInvite(int interviewFlag,long time){
HashMap<String,Object> params = new HashMap<>();
......
......@@ -43,8 +43,8 @@ public class BasicConfig {
/*******OTO销售工作台*********/
public static final String OTO_INVITER_TKU = "4yrzAfNog7WE527NKCNmqBqph48N7mWR9J49QYysZmKYC3DF97hQFap7RphynF3GFXLhp7GFZ35mc";
public static final String OTO_TAKER_TKU = "7Fcuh7FWTsTHSqd2be68YiRKvNhscfrWwNHFvuMwkumtuhF4AotfJLRbsAVpjxzt4G9E5r6M2nvgrcqiP5xBvQDLDQjT5eB9rqBVB1eonEqkmd1gjktdoWV8GLPAK8S3nk7yaHUevCWZWaZhJ8YkQV6M";
public static final String OTO_EXPERT_TKU = "7Fcuh7FWTsTHSqd2be68YiSEoRqh5beyhXNsJahtdNENwqw57Q8TPPkJkUoE8pP57iQhpfhq2LnsJVpBfdtSt2j969eSDnpxUd7WGNhyZDL8gSFA6ecKSbZSYh29SPrUQXhHQihrbPNDfLzrDbku1AM4";
public static final String OTO_TAKER_TKU = "7Fcuh7FWTsTHSqdGLMp5tQfPxhLUvJPui5b8gHP2ZkyDFqVEhZ7NLbZB2cpohNSKYScBin4vQrgDVDhxxBdmPr9937m1bY3LTXzDdQ6y8fGrF8r66CSzHbM69FPTYxJLGHG71NittSC1J1Hi86Vu4kFR";
public static final String OTO_EXPERT_TKU = "7Fcuh7FWTsTHSqdGLMp5tQsHHyH8oTHwYpSo8uHUiYABxYw3KBuY2gfxur5mFo5wiLKNtMZbgNo969ULyi8W7CrWzvXgQCuqchPXa9qfmvNJnyFWjH7wtSifZFYoM9rMN8CeT9iMC4FbhHtEpdVuFmzP";
// *************** 客集集域名 ***************
public static final String HOST = "https://kjj.m.duibatest.com.cn";
public static final String SSO_HOST = "https://sso.duibatest.com.cn";
......@@ -219,6 +219,7 @@ public class BasicConfig {
public static final String WORK_sellerList = WORK_HOST + "/kjy/oto/manager/customer/role/sellerList";
public static final String WORK_getWxCustByName = WORK_HOST + "/kjy/oto/manager/customer/getWxCustByName";
public static final String WORK_bindWxCust = WORK_HOST + "/kjy/oto/manager/customer/bindWxCust";
public static final String WORK_updateFollowUp = WORK_HOST + "/kjy/oto/manager/customer/updateFollowUp";
//*************************客集集营销平台******************************
public static final String PHONE_bindWxUser = HOST + "/kjy/oto/interview/bindWxUser";
......
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