Commit 8c4361ea authored by 龚小红's avatar 龚小红

增加总监盘点的接口用例

parent ade84012
...@@ -145,12 +145,12 @@ public class Manager implements Authorization { ...@@ -145,12 +145,12 @@ public class Manager implements Authorization {
PubForm("1513636130"+i,"自动化测试用户"+i); PubForm("1513636130"+i,"自动化测试用户"+i);
} }
// for(int i = 10;i<20;i++){ // for(int i = 20;i<80;i++){
// HashMap<String,Object> params = new HashMap<>(); // HashMap<String,Object> params = new HashMap<>();
// params.put("formId", "Kj22MTU5MQ"); // params.put("formId", "Kj22MTU5MQ");
// params.put("phoneNum", "130112100"+i); // params.put("phoneNum", "130112100"+i);
// params.put("urlLink", "https://kjj-static.duibatest.com.cn/tk/202204111900-1?formId=Kj22MTU5MQ&channel=jrtt&agent=td"); // params.put("urlLink", "https://kjj-static.duibatest.com.cn/tk/202204111900-1?formId=Kj22MTU5MQ&channel=jrtt&agent=td");
// params.put("username", "小红用户"+i); // params.put("username", "小红11月用户"+i);
// params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60"); // params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60");
// Response response = network.postResponse(params,BasicConfig.FORM_submit); // Response response = network.postResponse(params,BasicConfig.FORM_submit);
// String recordId = response.jsonPath().getString("data.recordId"); // String recordId = response.jsonPath().getString("data.recordId");
......
...@@ -627,8 +627,6 @@ public class Phone implements Authorization { ...@@ -627,8 +627,6 @@ public class Phone implements Authorization {
Response response =network.getResponse(params,BasicConfig.PHONE_paper_getCustomers); Response response =network.getResponse(params,BasicConfig.PHONE_paper_getCustomers);
int size = response.jsonPath().getInt("data.list.size()"); int size = response.jsonPath().getInt("data.list.size()");
Assert.assertTrue(size>0,network.message(BasicConfig.PHONE_paper_getCustomers,"日报列表客户为空",response.body().asString())); Assert.assertTrue(size>0,network.message(BasicConfig.PHONE_paper_getCustomers,"日报列表客户为空",response.body().asString()));
String label = response.jsonPath().getString("data.list[0].label");
Assert.assertEquals(label,"",network.message(BasicConfig.PHONE_paper_getCustomers,"客户非今日见面标签",response.body().asString()));
} }
@Test(description = "提交日报",priority = 50) @Test(description = "提交日报",priority = 50)
...@@ -701,7 +699,7 @@ public class Phone implements Authorization { ...@@ -701,7 +699,7 @@ 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 = 6380;i<6385;i++){ // for(int i = 6549;i<6560;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);
...@@ -738,6 +736,8 @@ public class Phone implements Authorization { ...@@ -738,6 +736,8 @@ public class Phone implements Authorization {
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId); params.put("custId", custId);
params.put("interviewType", 2); params.put("interviewType", 2);
params.put("interviewConfId", IdMakeUtil.encodingId(Work.sceneId));
params.put("custPhase", custPhase);
params.put("custPhase", custPhase); params.put("custPhase", custPhase);
params.put("appointmentTime", System.currentTimeMillis()+3600000); params.put("appointmentTime", System.currentTimeMillis()+3600000);
Response response = network.postResponse(params, BasicConfig.PHONE_interviewSave); Response response = network.postResponse(params, BasicConfig.PHONE_interviewSave);
......
...@@ -172,8 +172,8 @@ public class BasicConfig { ...@@ -172,8 +172,8 @@ public class BasicConfig {
public static final String WORK_interviewAuditList= WORK_HOST + "/kjy/oto/manager/audit/getInterviewAuditList"; public static final String WORK_interviewAuditList= WORK_HOST + "/kjy/oto/manager/audit/getInterviewAuditList";
public static final String WORK_interviewAuditReject= WORK_HOST + "/kjy/oto/manager/audit/interviewAuditReject"; public static final String WORK_interviewAuditReject= WORK_HOST + "/kjy/oto/manager/audit/interviewAuditReject";
public static final String WORK_interviewAuditPass= WORK_HOST + "/kjy/oto/manager/audit/interviewAuditPass"; public static final String WORK_interviewAuditPass= WORK_HOST + "/kjy/oto/manager/audit/interviewAuditPass";
public static final String WORK_taskConfList= WORK_HOST + "/kjy/oto/manager/sellerTask/taskConfList"; public static final String WORK_taskConfList= WORK_HOST + "/kjy/oto/manager/task/config/list";
public static final String WORK_modifyTaskConf= WORK_HOST + "/kjy/oto/manager/sellerTask/modifyTaskConf"; public static final String WORK_taskEdit = WORK_HOST + "/kjy/oto/manager/task/config/edit";
public static final String WORK_statisticHeader= WORK_HOST + "/kjy/oto/manager/sellerTask/statistic/header"; public static final String WORK_statisticHeader= WORK_HOST + "/kjy/oto/manager/sellerTask/statistic/header";
public static final String WORK_taskDetailsList= WORK_HOST + "/kjy/oto/manager/sellerTask/taskDetailsList"; public static final String WORK_taskDetailsList= WORK_HOST + "/kjy/oto/manager/sellerTask/taskDetailsList";
public static final String WORK_coefficient_detail= WORK_HOST + "/kjy/oto/manager/customer/coefficient/detail"; public static final String WORK_coefficient_detail= WORK_HOST + "/kjy/oto/manager/customer/coefficient/detail";
......
...@@ -27,7 +27,7 @@ public class NetworkUtils { ...@@ -27,7 +27,7 @@ public class NetworkUtils {
//cookies中的tku //cookies中的tku
agentCookies.put("tku",AGENT_TKU); agentCookies.put("tku",AGENT_TKU);
//多场景测试标志 //多场景测试标志
agentCookies.put("_duibaServiceGroupKey","miria-3321"); agentCookies.put("_duibaServiceGroupKey","miria-3433");
//json类型的headers //json类型的headers
agentHeaders.put("Content-Type","application/json"); agentHeaders.put("Content-Type","application/json");
//二进制文件的headers //二进制文件的headers
......
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