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