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

增加邀约任务的接口用例

parent 093b723d
......@@ -1496,7 +1496,21 @@ public class Work implements Authorization {
Assert.assertEquals(finishCustNum,2,network.message(params,BasicConfig.WORK_taskList,"已完成数量记录错误",response.body().asString()));
}
@Test(description = "校验邀约的通话信息",priority = 14)
@Test(description = "校验通话后显示回填弹窗",priority = 106)
public void 校验通话后显示回填弹窗(){
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
Response response = network.getResponse(params,BasicConfig.WORK_showFeedback);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_showFeedback,"电话表单回填状态错误:为不需要回填",response.body().asString()));
params.put("custId", custId+2);
response = network.getResponse(params,BasicConfig.WORK_showFeedback);
data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_showFeedback,"电话表单回填状态错误:为不需要回填",response.body().asString()));
}
@Test(description = "校验邀约的通话信息",priority = 107)
public void 校验邀约的通话信息(){
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
......@@ -1511,7 +1525,7 @@ public class Work implements Authorization {
Assert.assertEquals(callTimes,0,network.message(params,BasicConfig.WORK_header,"新客户总通话次数非0",response.body().asString()));
Assert.assertNull(lastCallTime,network.message(params,BasicConfig.WORK_header,"新客户总通话次数非0",response.body().asString()));
params.put("custId", custId);
params.put("custId", custId+2);
params.put("type", 1);
response = network.getResponse(params,BasicConfig.WORK_header);
allCallTimes= response.jsonPath().getInt("data.allCallTimes");
......
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