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

增加客户告知书管理的自动化测试接口

parent b223e9a3
......@@ -486,8 +486,8 @@ public class Phone implements Authorization {
public void 客户流程组_表格总览(){
otosellerAuth();
Response response = network.getResponse(BasicConfig.WORK_staticChart);
int ondStep = response.jsonPath().getInt("data[1].custNum");
int twoStep = response.jsonPath().getInt("data[2].custNum");
int ondStep = response.jsonPath().getInt("data[0].custNum");
int twoStep = response.jsonPath().getInt("data[1].custNum");
Assert.assertEquals(ondStep,Work.chart.get("ondStep")+1,network.message(BasicConfig.WORK_staticChart,"创建的转介绍和缘故客户的流程组非1",response.body().asString()));
Assert.assertEquals(twoStep,Work.chart.get("twoStep")+1,network.message(BasicConfig.WORK_staticChart,"客户社区参观后未提交计划书流程组状态未变为2",response.body().asString()));
}
......@@ -587,7 +587,7 @@ public class Phone implements Authorization {
otosellerAuth();
sleep(2000);
Response response = network.getResponse(BasicConfig.WORK_staticChart);
int fourStep = response.jsonPath().getInt("data[4].custNum");
int fourStep = response.jsonPath().getInt("data[3].custNum");
Assert.assertEquals(fourStep,Work.chart.get("fourStep")+1,network.message(BasicConfig.WORK_staticChart,"客户社区参观后已确认投保要素流程组状态未变为4",response.body().asString()));
HashMap<String,Object> params = new HashMap<>();
......@@ -633,7 +633,7 @@ public class Phone implements Authorization {
public void 客户流程组_表格总览更新为已成单(){
sleep(2000);
Response response = network.getResponse(BasicConfig.WORK_staticChart);
int fiveStep = response.jsonPath().getInt("data[5].custNum");
int fiveStep = response.jsonPath().getInt("data[4].custNum");
Assert.assertEquals(fiveStep,Work.chart.get("fiveStep")+1,network.message(BasicConfig.WORK_staticChart,"修改已成交后流程组状态未变为5",response.body().asString()));
HashMap<String,Object> params = new HashMap<>();
......
......@@ -168,11 +168,11 @@ public class Work implements Authorization {
Response response = network.getResponse(BasicConfig.WORK_staticChart);
Object data = response.jsonPath().getJsonObject("data");
Assert.assertNotNull(data,network.message(BasicConfig.WORK_staticChart,"流程组表格数量为空",response.body().asString()));
chart.put("ondStep",response.jsonPath().getInt("data[1].custNum"));
chart.put("twoStep",response.jsonPath().getInt("data[2].custNum"));
chart.put("threeStep",response.jsonPath().getInt("data[3].custNum"));
chart.put("fourStep",response.jsonPath().getInt("data[4].custNum"));
chart.put("fiveStep",response.jsonPath().getInt("data[5].custNum"));
chart.put("ondStep",response.jsonPath().getInt("data[0].custNum"));
chart.put("twoStep",response.jsonPath().getInt("data[1].custNum"));
chart.put("threeStep",response.jsonPath().getInt("data[2].custNum"));
chart.put("fourStep",response.jsonPath().getInt("data[3].custNum"));
chart.put("fiveStep",response.jsonPath().getInt("data[4].custNum"));
}
@Test(description = "工作台_标签列表",priority = 11)
......
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