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

Merge branch 'Feature/20220824-gxh' into 'master'

更新系数继承的测试用例

See merge request !23
parents 8882b3eb ec8504ff
......@@ -75,7 +75,7 @@ public class Phone implements Authorization {
@Test(description = "姓名搜索客户",priority = 4)
public void 姓名搜索客户(){
HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化测试用户");
params.put("custName", "自动化激活用户");
params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.PHONE_customerList);
int size = response.jsonPath().getInt("data.myCustomerVos.size()");
......@@ -136,8 +136,8 @@ public class Phone implements Authorization {
Response response = network.getResponse(params, BasicConfig.PHONE_customerList);
int size = response.jsonPath().getInt("data.myCustomerVos.size()");
Assert.assertTrue(size>0,network.message(params,BasicConfig.PHONE_customerList,"客户列表为空",response.body().asString()));
int custFlow = response.jsonPath().getInt("data.myCustomerVos.find{it.custName == '自动化测试用户'}.custFlow");
boolean interviewStatus = response.jsonPath().getBoolean("data.myCustomerVos.find{it.custName == '自动化测试用户'}.interviewStatus");
int custFlow = response.jsonPath().getInt("data.myCustomerVos.find{it.custName == '自动化激活用户'}.custFlow");
boolean interviewStatus = response.jsonPath().getBoolean("data.myCustomerVos.find{it.custName == '自动化激活用户'}.interviewStatus");
Assert.assertEquals(custFlow,1,network.message(params,BasicConfig.PHONE_customerList,"客户阶段错误",response.body().asString()));
Assert.assertTrue(interviewStatus,network.message(params,BasicConfig.PHONE_customerList,"客户面访状态错误:非面访中",response.body().asString()));
}
......@@ -324,7 +324,7 @@ public class Phone implements Authorization {
@Test(description = "查看我的面访状态更新为审批中",priority = 23)
public void 查看我的面访状态更新为审批中(){
HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化测试用户");
params.put("custName", "自动化激活用户");
params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.PHONE_interviewList);
int size = response.jsonPath().getInt("data.customerInterviewVos.size()");
......@@ -386,7 +386,7 @@ public class Phone implements Authorization {
@Test(description = "查看我的面访状态更新为已失效",priority = 27)
public void 查看我的面访状态更新为已失效(){
HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化测试用户");
params.put("custName", "自动化激活用户");
params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.PHONE_interviewList);
int interviewStatus = response.jsonPath().getInt("data.customerInterviewVos.find{it.id == '"+ interviewIds.get(0) +"'}.interviewStatus");
......@@ -484,7 +484,7 @@ public class Phone implements Authorization {
@Test(description = "查看我的面访状态更新为已完成",priority =33)
public void 查看我的面访状态更新为已完成(){
HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化测试用户");
params.put("custName", "自动化激活用户");
params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.PHONE_interviewList);
int interviewStatus = response.jsonPath().getInt("data.customerInterviewVos.find{it.id == '"+ interviewIds.get(0) +"'}.interviewStatus");
......
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