Commit 76d84885 authored by 龚小红's avatar 龚小红

增加导出到场客户和即将改派告警的测试用例

parent 290f6eed
...@@ -374,6 +374,16 @@ public class Invite implements Authorization { ...@@ -374,6 +374,16 @@ public class Invite implements Authorization {
Assert.assertEquals(recordItem.deptId, 47,network.message(BasicConfig.WORK_getAllSceneConfs,"未回显部门id","")); Assert.assertEquals(recordItem.deptId, 47,network.message(BasicConfig.WORK_getAllSceneConfs,"未回显部门id",""));
} }
@Test(description = "导出确认到场客户",priority = 27)
public void 导出确认到场客户(){
SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd");
HashMap<String,Object> params = new HashMap<>();
params.put("date", sdt.format(today));
Response response = network.getResponse(params, BasicConfig.WORK_calendarExport);
String data = response.jsonPath().getString("data");
Assert.assertNotNull(data, network.message(params, BasicConfig.WORK_calendarExport, "导出客户失败", response.body().asString()));
}
@Test(description = "邀约记录未到场盘点详情不可重新分配专家",priority = 30) @Test(description = "邀约记录未到场盘点详情不可重新分配专家",priority = 30)
public void 邀约记录未到场盘点详情不可重新分配专家(){ public void 邀约记录未到场盘点详情不可重新分配专家(){
......
...@@ -953,6 +953,25 @@ public class Work implements Authorization { ...@@ -953,6 +953,25 @@ public class Work implements Authorization {
Assert.assertTrue(size>0,network.message(params,BasicConfig.WORK_SellerCustList,"总监的团队客户为空",response.body().asString())); Assert.assertTrue(size>0,network.message(params,BasicConfig.WORK_SellerCustList,"总监的团队客户为空",response.body().asString()));
} }
@Test(description = "查看即将改派告警客户",priority = 71)
public void 查看即将改派告警客户(){
Response response =network.getResponse(BasicConfig.WORK_notifyWarning);
int assignWarnNum = response.jsonPath().getInt("data.assignWarnNum");
Assert.assertEquals(assignWarnNum,1,network.message(BasicConfig.WORK_notifyWarning,"即将被改派客户不为1",response.body().asString()));
}
@Test(description = "查看即将改派客户列表",priority = 72)
public void 查看即将改派客户列表(){
Response response =network.getResponse(BasicConfig.WORK_warnList);
int assignWarnNum = response.jsonPath().getInt("data.assignWarnNum");
int size = response.jsonPath().getInt("data.vos.size()");
int fromAssignTypes = response.jsonPath().getInt("data.vos[0].fromAssignTypes.size()");
Assert.assertEquals(assignWarnNum,1,network.message(BasicConfig.WORK_warnList,"即将被改派客户不为1",response.body().asString()));
Assert.assertEquals(size,1,network.message(BasicConfig.WORK_warnList,"即将被改派客户列表不为1",response.body().asString()));
Assert.assertEquals(fromAssignTypes,2,network.message(BasicConfig.WORK_warnList,"即将被改派原因非2个",response.body().asString()));
}
@Test(description = "公域引流_删除标签",priority = 88) @Test(description = "公域引流_删除标签",priority = 88)
...@@ -988,6 +1007,7 @@ public class Work implements Authorization { ...@@ -988,6 +1007,7 @@ public class Work implements Authorization {
public static void callling(String sellerPhone,String custPhone,int length,String callState){ public static void callling(String sellerPhone,String custPhone,int length,String callState){
//通话回传 //通话回传
String CALL_URL = CALL_BACK_1 +sellerPhone + "&CalledNo="+ custPhone + CALL_BACK_2 + length +"&State=" +callState + CALL_BACK_3; String CALL_URL = CALL_BACK_1 +sellerPhone + "&CalledNo="+ custPhone + CALL_BACK_2 + length +"&State=" +callState + CALL_BACK_3;
......
...@@ -235,6 +235,8 @@ public class BasicConfig { ...@@ -235,6 +235,8 @@ public class BasicConfig {
public static final String WORK_liveDynamic= WORK_HOST + "/kjy/oto/manager/customer/liveDynamic"; public static final String WORK_liveDynamic= WORK_HOST + "/kjy/oto/manager/customer/liveDynamic";
public static final String WORK_updateInfo= WORK_HOST + "/kjy/oto/manager/customer/info/update"; public static final String WORK_updateInfo= WORK_HOST + "/kjy/oto/manager/customer/info/update";
public static final String WORK_notifyWarning= WORK_HOST + "/kjy/oto/manager/customer/notify/total"; public static final String WORK_notifyWarning= WORK_HOST + "/kjy/oto/manager/customer/notify/total";
public static final String WORK_warnList= WORK_HOST + "/kjy/oto/manager/customer/assign/warn/list";
public static final String WORK_calendarExport= WORK_HOST + "/kjy/oto/manager/cust/calendar/export";
//*************************客户报告审批******************************* //*************************客户报告审批*******************************
public static final String WORK_OA_submit = WORK_HOST + "/kjy/oto/manager/report/oa/submit"; public static final String WORK_OA_submit = WORK_HOST + "/kjy/oto/manager/report/oa/submit";
......
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