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

Merge branch 'Feature/signDetailAndExpert_20220424' into 'master'

增加服务专家的测试用例

See merge request !93
parents a86a53a6 53bfac46
......@@ -318,7 +318,7 @@ public class Activity implements Authorization {
public void 添加非签到活动和其他见面客户并提报(){
HashMap<String,Object> params = new HashMap<>();
ArrayList list = new ArrayList();
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+3),"am", 226 ,0));
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+3),"pm", 226 ,0));
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+4),"am", 17,2));
params.put("date", today);
params.put("params", list);
......@@ -480,7 +480,7 @@ public class Activity implements Authorization {
WXCustomerTku3();
Response response = network.postResponse(BasicConfig.WX_serviceExpert_detail);
int showType = response.jsonPath().getInt("data.showType");
String expertConfigUrl = response.jsonPath().getString("data.expertConfigUrl");
Object expertConfigUrl = response.jsonPath().getString("data.configVo.expertConfigUrl");
Assert.assertEquals(showType,3,network.message(BasicConfig.WX_serviceExpert_detail,"展示页面非【专家页】",response.body().asString()));
Assert.assertNotNull(expertConfigUrl,network.message(BasicConfig.WX_serviceExpert_detail,"专家配置页为空",response.body().asString()));
}
......@@ -525,7 +525,7 @@ public class Activity implements Authorization {
response = network.getResponse(params, BasicConfig.WX_sign_list);
int notSignNum = response.jsonPath().getInt("data.notSignNum");
int isSign = response.jsonPath().getInt("data.vos.find{it.custName.equals(\"自动化测试用户2\")}.isSign");
int isSign = response.jsonPath().getInt("data.vos.find{it.name.equals(\"自动化测试用户2\")}.isSign");
Assert.assertEquals(notSignNum,0,network.message(params,BasicConfig.WX_sign_list,"未签到人数错误",response.body().asString()));
Assert.assertEquals(isSign,1,network.message(params,BasicConfig.WX_sign_list,"已分配客户的签到非【是】",response.body().asString()));
}
......
......@@ -128,7 +128,6 @@ public class Invite implements Authorization {
@Test(description = "查看约面日历为已确认",priority = 9)
public void 查看约面日历为已确认(){
getCalendarlist(today+86400000,2,"自动化激活用户","勿动-自动化测试邀约");
Assert.assertEquals(recordItem.deptId, 47,network.message(BasicConfig.WORK_getAllSceneConfs,"未回显部门id",""));
}
......@@ -360,7 +359,23 @@ public class Invite implements Authorization {
takerCoefficient = leadertotalCoefficient;
}
@Test(description = "邀约记录未到场盘点详情不可重新分配专家",priority = 26)
@Test(description = "PM分配团队",priority = 26)
public void PM分配团队(){
otoPMAuth();
HashMap<String,Object> params = new HashMap<>();
params.put("recordId", recordItem.recordId);
params.put("deptId", 47);
params.put("pageSource", 1);
Response response = network.postResponse(params, BasicConfig.WORK_MNG_team);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(params, BasicConfig.WORK_MNG_team, "客户分配团队失败", response.body().asString()));
getCalendarlist(today,4,"自动化激活用户","勿动-自动化测试邀约");
Assert.assertEquals(recordItem.deptId, 47,network.message(BasicConfig.WORK_getAllSceneConfs,"未回显部门id",""));
}
@Test(description = "邀约记录未到场盘点详情不可重新分配专家",priority = 30)
public void 邀约记录未到场盘点详情不可重新分配专家(){
assignSeller(cust_id,479,false,3,"check");
}
......
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