Commit 80339e5e authored by 龚小红's avatar 龚小红

增加邀约优化的测试用例

parent 6c71443e
......@@ -382,6 +382,7 @@ public class CheckTask implements Authorization {
@Test(description = "提交客户盘点",priority = 30)
public void 提交客户盘点(){
otoManagerAuth();
//盘管客户页盘点
Calendar calendar = new GregorianCalendar();
calendar.setTime(new Date());
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
......@@ -389,6 +390,7 @@ public class CheckTask implements Authorization {
params.put("checkConclusion","客户盘点后的结论1");
params.put("strategyId",strategyId);
params.put("custId",cust_id);
params.put("from",1);
calendar.add(calendar.DATE,2);
ArrayList<Plan> plans = new ArrayList<>();
plans.add(new Plan("phone",simpleDateFormat.format(calendar.getTime()),"pm",6,null));//创建后日计划
......@@ -398,11 +400,13 @@ public class CheckTask implements Authorization {
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_saveCheckRecord,"提交客户盘点失败",response.body().asString()));
//快速盘点
plans.clear();
sleep(2000);
params.put("checkConclusion","客户盘点后的结论2");
params.put("strategyId",strategyId);
calendar.add(calendar.DATE,-1);
params.put("from",2);
plans.add(new Plan("phone",simpleDateFormat.format(calendar.getTime()),"pm",6,null));//创建明日计划
plans.add(new Plan("meet",simpleDateFormat.format(calendar.getTime()),"am",6, (int) sceneId));
params.put("plans",plans);
......@@ -410,6 +414,7 @@ public class CheckTask implements Authorization {
plans.clear();
sleep(2000);
params.put("from",2);
params.put("checkConclusion","客户盘点后的结论");
params.put("strategyId",strategyId);
params.put("plans",plans);
......@@ -730,6 +735,25 @@ public class CheckTask implements Authorization {
checChart(6,0,0);
}
@Test(description = "获取客户类型的枚举值",priority = 71)
public void 获取客户类型的枚举值(){
Response response = network.getResponse( BasicConfig.WORK_check_custTypeList);
String size = response.jsonPath().getString("data.size()");
Assert.assertEquals(size,6, network.message( BasicConfig.WORK_check_custTypeList, "客户分类枚举值错误", response.body().asString()));
}
@Test(description = "导出盘点列表客户",priority = 72)
public void 导出盘点列表客户(){
HashMap<String,Object> params = new HashMap<>();
params.put("custName","自动化");
params.put("todayCheck",1);
params.put("pageIndex",1);
params.put("pageSize",50);
Response response =network.postResponse(params,BasicConfig.WORK_check_export);
String data = response.jsonPath().getString("data");
Assert.assertNotNull(data,network.message(params,BasicConfig.WORK_check_export,"导出客户失败",response.body().asString()));
}
//获取销售个人工作计划
public static void getSellerPlan(int amFinish,int amTotal,int pmFinish,int pmTotal,int pStatus,int unFinishTypes){
......
......@@ -941,7 +941,12 @@ public class Work implements Authorization {
Assert.assertEquals(fromAssignTypes,2,network.message(BasicConfig.WORK_warnList,"即将被改派原因非2个",response.body().asString()));
}
@Test(description = "查看异常面访告警客户",priority = 73)
public void 查看异常面访告警客户(){
Response response =network.getResponse(BasicConfig.WORK_notifyWarning);
int data = response.jsonPath().getInt("data");
Assert.assertTrue(data>0,network.message(BasicConfig.WORK_notifyWarning,"即将被改派客户不为1",response.body().asString()));
}
@Test(description = "公域引流_删除标签",priority = 88)
......
......@@ -237,6 +237,7 @@ public class BasicConfig {
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_abnormalNum= WORK_HOST + "/kjy/oto/manager/customer/custCheck/interview/abnormal/num";
//*************************客户报告审批*******************************
public static final String WORK_OA_submit = WORK_HOST + "/kjy/oto/manager/report/oa/submit";
......@@ -275,6 +276,8 @@ public class BasicConfig {
public static final String WORK_scheme_savePlanFile= WORK_HOST + "/kjy/oto/manager/customer/planFile/save";
public static final String WORK_scheme_saveKyc = WORK_HOST + "/kjy/oto/manager/customer/kyc/save";
public static final String WORK_check_custChart = WORK_HOST + "/kjy/oto/manager/customer/custCheck/custChart";
public static final String WORK_check_custTypeList = WORK_HOST + "/kjy/oto/manager/customer/custCheck/custTypeList";
public static final String WORK_check_export = WORK_HOST + "/kjy/oto/manager/customer/custCheck/export";
//*************************会话管理***************************
public static final String WORK_wxList= WORK_HOST + "/kjy/oto/manager/wx/conversation/list";
......
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