Commit 8072345b authored by 龚小红's avatar 龚小红

增加OTO销售工作台移动端1.1的测试用例

parent fd7c802d
......@@ -246,7 +246,7 @@ public class Work implements Authorization {
int custFlow = response.jsonPath().getInt("data.custInfo.custFlow");
int commitInsure = response.jsonPath().getInt("data.custInfo.commitInsure");
int commitPlanFlag = response.jsonPath().getInt("data.custInfo.commitPlanFlag");
Assert.assertEquals(custFlow,1,network.message(params,BasicConfig.WORK_detail,"新客户流程组状态错误非0",response.body().asString()));
Assert.assertEquals(custFlow,1,network.message(params,BasicConfig.WORK_detail,"新客户流程组状态错误非1",response.body().asString()));
Assert.assertEquals(commitInsure,0,network.message(params,BasicConfig.WORK_detail,"新客户提交计划书状态错误非0",response.body().asString()));
Assert.assertEquals(commitPlanFlag,0,network.message(params,BasicConfig.WORK_detail,"新客户投保要素确认状态错误非0",response.body().asString()));
}
......@@ -416,7 +416,7 @@ public class Work implements Authorization {
params.put("custName", "自动化");
Response response = network.getResponse(params,BasicConfig.WORK_fuzzyCustName);
int size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size,2,network.message(params,BasicConfig.WORK_fuzzyCustName,"客户动态条数错误",response.body().asString()));
Assert.assertTrue(size>0,network.message(params,BasicConfig.WORK_fuzzyCustName,"客户动态条数错误",response.body().asString()));
}
@Test(description = "公域引流_删除标签",priority = 41)
......@@ -712,4 +712,15 @@ public class Work implements Authorization {
Assert.assertTrue(data,network.message(BasicConfig.WORK_cancelSchedule,"取消日程失败",response.body().asString()));
}
@Test(description = "普通销售不可查看审批管理",priority = 65)
public void 普通销售不可查看审批管理(){
otosellerAuth();
HashMap<String,Object> params = new HashMap<>();
params.put("pageIndex",1);
params.put("pageSize",20);
Response response =network.getResponse(params,BasicConfig.WORK_interviewAuditList);
int size = response.jsonPath().getInt("data.list.size()");
Assert.assertEquals(size,0,network.message(BasicConfig.WORK_interviewAuditList,"查看审批列表不为空",response.body().asString()));
}
}
......@@ -114,7 +114,7 @@ public class BasicConfig {
/*******OTO销售工作台*********/
public static final String OTO_TKU = "2RA3RVc1LEF7SnuZg7qu8kr9mx4BEQcUy3ZmGw6EcESNTGXj1XP9rtChjMmfcnvfeQzPijhA2sbAWvYHchwK9o9b1GtjMLwvmUpJ1PdC57Y1yGJLynbr3FZ3YLURN35f9CE7sFhm3CrqT5FTo4tjpxD";
public static final String OTO_TKU = "2RA3RVc1LEF7SnuZgb5JDNWuiTCgii9S3tU1tUS83jyZyWSgFwREmcRF3wB1txYth5GgnEskgLHUcvfYLLa6Uqn14w6EZ2srZaJXCWVGaYbxhbv1EMnMS5QqjK54GaeEUo4d9vPQz1o9P5DmruUsgNa";
// *************** 客集集域名 ***************
public static final String HOST = "https://kjj.m.duibatest.com.cn";
......@@ -1372,6 +1372,9 @@ public class BasicConfig {
public static final String WORK_saveOrModifySchedule= WORK_HOST + "/kjy/oto/manager/sellerNotify/saveOrModifySchedule";
public static final String WORK_cancelSchedule= WORK_HOST + "/kjy/oto/manager/sellerNotify/cancelSchedule";
public static final String WORK_abandonCust= WORK_HOST + "/kjy/oto/manager/customer/abandonCust";
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_interviewAuditPass= WORK_HOST + "/kjy/oto/manager/audit/interviewAuditPass";
public static final String PHONE_customerList = PHONE_HOST + "/kjy/oto/manager/customer/list";
public static final String PHONE_customerSave = PHONE_HOST + "/kjy/oto/manager/customer/introduce/save";
......@@ -1382,7 +1385,7 @@ public class BasicConfig {
public static final String PHONE_interviewList = PHONE_HOST + "/kjy/oto/interview/list";
public static final String PHONE_interviewCancel = PHONE_HOST + "/kjy/oto/interview/cancel";
public static final String PHONE_interviewCode = PHONE_HOST + "/kjy/oto/h5/interview/code";
public static final String PHONE_interviewStatus = PHONE_HOST + "/kjy/oto/h5/interview/status";
public static final String PHONE_interviewStatus = PHONE_HOST + "/kjy/oto/h5/v1/getInterviewStatus";
public static final String PHONE_interviewPhone = PHONE_HOST + "/kjy/oto/h5/interview/phone";
public static final String PHONE_interviewBind = PHONE_HOST + "/kjy/oto/h5/interview/bind";
public static final String PHONE_bindCancel = PHONE_HOST + "/kjy/oto/h5/interview/cancel";
......@@ -1390,13 +1393,15 @@ public class BasicConfig {
public static final String PHONE_custExtDetail = PHONE_HOST + "/kjy/oto/interview/custExtDetail";
public static final String PHONE_interviewFeedback = PHONE_HOST + "/kjy/oto/interview/feedback";
public static final String PHONE_interviewDetail = PHONE_HOST + "/kjy/oto/interview/edit/detail";
public static final String PHONE_authPhone = PHONE_HOST + "/auth/oto/authPhone";
public static final String PHONE_getAuthPhone = PHONE_HOST + "/auth/oto/getAuthPhone";
public static final String PHONE_bindWxUser = HOST + "/kjy/oto/interview/bindWxUser";
public static final String PHONE_submitEvaluate = HOST + "/kjy/oto/interview/submitEvaluate";
public static final String PHONE_listBysellComp = PHONE_HOST + "/kjy/oto/manager/customer/listBysellComp";
public static final String PHONE_address = PHONE_HOST + "/kjy/oto/h5/v1/save/address";
public static final String PHONE_getUnusualTypes = PHONE_HOST + "/kjy/oto/h5/v1/getUnusualTypes";
public static final String PHONE_fail = HOST + "/kjy/oto/interview/authorize/fail";
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_delPubFormRecord = WORK_HOST + "/kjy/oto/auto/test/delPubFormRecord";
}
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