Commit fb17a2e8 authored by 龚小红's avatar 龚小红

Merge branch 'Feature/20221114-mixed' into 'master'

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

See merge request !50
parents 48bf1ce5 182a8e9e
......@@ -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<>();
......
......@@ -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