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

增加邀约任务的接口用例

parent a8de16dd
...@@ -578,19 +578,6 @@ public class Phone implements Authorization { ...@@ -578,19 +578,6 @@ public class Phone implements Authorization {
Assert.assertTrue(success,network.message(params,BasicConfig.PHONE_interviewFeedback,"上传面访失败",response.body().asString())); Assert.assertTrue(success,network.message(params,BasicConfig.PHONE_interviewFeedback,"上传面访失败",response.body().asString()));
} }
@Test(description = "销售任务_销售完成任务",priority = 45)
public void 销售任务_销售完成任务(){
otoTakerAuth();
//销售完成面访,跟进时间更新,联系新客户任务完成
HashMap<String,Object> params = new HashMap<>();
params.put("taskConfId",4); //任务配置id,4:联系未跟进的客户,5:复拨未接通的客户,6:超过N天未跟进的客户
params.put("pageIndex",1);
params.put("pageSize",20);
Response response = network.getResponse(params,BasicConfig.WORK_taskList);
int finishCustNum = response.jsonPath().getInt("data.finishCustNum");
Assert.assertTrue(finishCustNum>0,network.message(params,BasicConfig.WORK_taskList,"已完成数量记录错误",response.body().asString()));
}
@Test(description = "查看我的预约订单列表",priority = 46) @Test(description = "查看我的预约订单列表",priority = 46)
public void 查看我的预约订单列表(){ public void 查看我的预约订单列表(){
agent2Tku(); agent2Tku();
...@@ -699,12 +686,10 @@ public class Phone implements Authorization { ...@@ -699,12 +686,10 @@ public class Phone implements Authorization {
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 = 6549;i<6560;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", i);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust); // Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// boolean data = response.jsonPath().getBoolean("data");
// Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
// //
// } // }
} }
......
...@@ -1419,9 +1419,7 @@ public class Work implements Authorization { ...@@ -1419,9 +1419,7 @@ public class Work implements Authorization {
Assert.assertEquals(leadertotalCoefficient,takerCoefficient,network.message(params,BasicConfig.WORK_coefficient_detail,"邀约人系数未增加",response.body().asString())); Assert.assertEquals(leadertotalCoefficient,takerCoefficient,network.message(params,BasicConfig.WORK_coefficient_detail,"邀约人系数未增加",response.body().asString()));
} }
@Test(description = "退回邀约组",priority = 102)
@Test(description = "退回邀约组",priority = 103)
public void 退回邀约组(){ public void 退回邀约组(){
//退回邀约组 //退回邀约组
otoManagerAuth(); otoManagerAuth();
...@@ -1444,7 +1442,7 @@ public class Work implements Authorization { ...@@ -1444,7 +1442,7 @@ public class Work implements Authorization {
Assert.assertEquals(sellertotalCoefficient,coefficient.get("totalCoefficient"),network.message(params,BasicConfig.WORK_coefficient_detail,"邀约人系数变化",response.body().asString())); Assert.assertEquals(sellertotalCoefficient,coefficient.get("totalCoefficient"),network.message(params,BasicConfig.WORK_coefficient_detail,"邀约人系数变化",response.body().asString()));
} }
@Test(description = "立即分配邀约客户",priority = 104) @Test(description = "立即分配邀约客户",priority = 103)
public void 立即分配邀约客户(){ public void 立即分配邀约客户(){
updateInvite(0,now + 3600000); updateInvite(0,now + 3600000);
updateInvite(1,now + 3600000); updateInvite(1,now + 3600000);
...@@ -1480,6 +1478,24 @@ public class Work implements Authorization { ...@@ -1480,6 +1478,24 @@ public class Work implements Authorization {
} }
@Test(description = "邀约完成任务",priority = 105)
public void 邀约完成任务(){
otoInviterAuth();
//notDeal -未接通,dealing-已接通
callling("15136361301","notDeal");
callling("15136361301","notDeal");
callling("15136361302","notDeal");
callling("15136361303","dealing");
//销售完成面访,跟进时间更新,联系新客户任务完成
HashMap<String,Object> params = new HashMap<>();
params.put("taskConfId",7); //任务配置id,4:联系未跟进的客户,5:复拨未接通的客户,6:超过N天未跟进的客户
params.put("pageIndex",1);
params.put("pageSize",20);
Response response = network.getResponse(params,BasicConfig.WORK_taskList);
int finishCustNum = response.jsonPath().getInt("data.finishCustNum");
Assert.assertEquals(finishCustNum,2,network.message(params,BasicConfig.WORK_taskList,"已完成数量记录错误",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<>();
...@@ -1646,4 +1662,10 @@ public class Work implements Authorization { ...@@ -1646,4 +1662,10 @@ public class Work implements Authorization {
} }
} }
public void callling(String custPhone,String callState){
//销售完成面访,跟进时间更新,联系新客户任务完成
String CALL_URL = CALL_BACK_1 + custPhone + CALL_BACK_2 + callState + CALL_BACK_3;
Response response = network.getResponse(CALL_URL);
} }
}
...@@ -255,8 +255,9 @@ public class BasicConfig { ...@@ -255,8 +255,9 @@ public class BasicConfig {
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";
public static final String WORK_delCust = WORK_HOST + "/kjy/oto/auto/test/delCust"; public static final String WORK_delCust = WORK_HOST + "/kjy/oto/auto/test/delCust";
public static final String WORK_delPubFormRecord = WORK_HOST + "/kjy/oto/auto/test/delPubFormRecord"; public static final String WORK_delPubFormRecord = WORK_HOST + "/kjy/oto/auto/test/delPubFormRecord";
public static final String CALL_BACK_1 = "https://kjj-work.duibatest.com.cn/kjy/oto/notify/record?CallSheetID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallType=normal&CallNo="; public static final String CALL_BACK_1 = WORK_HOST + "/kjy/oto/notify/record?CallSheetID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallType=dialout&CallNo=18248405155&CalledNo=";
public static final String CALL_BACK_2 = "&CalledNo=18248405155&Ring=2022-11-07%2013:57:06&RingingTime=&Begin=2022-11-07%2013:57:14&End=2022-11-07%2013:57:28&CallTimeLength=0&State=notDeal&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07%2013:57:06"; public static final String CALL_BACK_2 = "&Ring=2022-11-07%2013:57:06&RingingTime=&Begin=2022-11-07%2013:57:14&End=2022-11-07%2013:57:28&CallTimeLength=0&State=";
public static final String CALL_BACK_3 = "&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07%2013:57:06";
//*************** 人管系统 *************** //*************** 人管系统 ***************
public static final String JiuJiuBao_login = JiuJiuBao_HOST + "/oto/manager/login"; public static final String JiuJiuBao_login = JiuJiuBao_HOST + "/oto/manager/login";
......
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