Commit 916d2e63 authored by 龚小红's avatar 龚小红

增加半天计划优化的测试用例

parent d0a2d695
......@@ -707,6 +707,35 @@ public class Phone implements Authorization {
Assert.assertEquals(sceneConfDesc,1,network.message(params,BasicConfig.WORK_header,"客户的场景标签数量错误",response.body().asString()));
}
@Test(description = "重新分配销售不显示该客户计划",priority = 60)
public void 重新分配销售不显示该客户计划(){
Long id = IdMakeUtil.decodingId(cust_id);
assignSeller(Math.toIntExact(id),457,true,2);
otoLeaderAuth();
HashMap<String,Object> params = new HashMap<>();
params.put("beginTime", beginTime);
Response response = network.postResponse(params,BasicConfig.WORK_getDirectorPlanCalendarList);
int size = response.jsonPath().getInt("data.size()");
int flag = 0;
for(int i =0;i<size;i++){
if(response.jsonPath().getString("data["+i+"].sellerName").equals("勿动-自动化测试带看")){
flag = 1;
int plans = response.jsonPath().getInt("data["+i+"].vos.size()");
Assert.assertEquals(plans,0,network.message(params,BasicConfig.WORK_getDirectorPlanCalendarList,"销售的当前计划包含不在库客户",response.body().asString()));
}
}
if (flag== 0){
Assert.fail(network.message(params,BasicConfig.WORK_getDirectorPlanCalendarList,"团队计划中不包含总监名下销售",response.body().asString()));
}
otoTakerAuth();
response = network.postResponse(params,BasicConfig.WORK_getSellerPlanCalendarList);
size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size,0,network.message(params,BasicConfig.WORK_getDirectorPlanCalendarList,"销售的当前计划包含不在库客户",response.body().asString()));
}
@Test(description = "删除客户",priority = 79)
public void 删除客户(){
long id= IdMakeUtil.decodingId(cust_id);
......
......@@ -1648,7 +1648,7 @@ public class Work implements Authorization {
params.put("name", "自动化");
Response response = network.postResponse(params,BasicConfig.WORK_sellerList);
int size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size,5,network.message(params,BasicConfig.WORK_sellerList,"当前跟进人模糊搜索数量错误",response.body().asString()));
Assert.assertEquals(size,6,network.message(params,BasicConfig.WORK_sellerList,"当前跟进人模糊搜索数量错误",response.body().asString()));
}
@Test(description = "修改重点跟进人",priority = 114)
......
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