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

增加邀约优化的测试用例

parent e4765a9c
......@@ -113,14 +113,14 @@ public class Invite implements Authorization {
params.put("custId",cust_id);
Response response =network.getResponse(params,BasicConfig.WORK_getAllSceneConfs);
int size = response.jsonPath().getInt("data.size()");
int confUsableSize = response.jsonPath().getInt("data.findAll{it.confUsable == 1}.size()");
int confUsableSize = response.jsonPath().getInt("data[5].findAll{it.confUsable == 1}.size()");
Assert.assertEquals(size,4 ,network.message(params,BasicConfig.WORK_getAllSceneConfs,"面访场景包含场景未根据产品组关联",response.body().asString()));
Assert.assertEquals(confUsableSize,3 ,network.message(params,BasicConfig.WORK_getAllSceneConfs,"面访场景包含场景未根据产品组关联",response.body().asString()));
}
@Test(description = "修改客户面访承诺时间为1天后",priority = 8)
@Test(description = "修改客户面访承诺时间为今天",priority = 8)
public void 修改客户面访承诺时间为1天后(){
updateInvite(1,now+86400000,cust_id);
updateInvite(1,now,cust_id);
getHasFirstInvite(1,true);
getCallCustInfo(1);
......@@ -149,7 +149,7 @@ public class Invite implements Authorization {
getCallCustInfo(1);
getCalendarlist(today+86400000,0,"自动化测试用户","勿动-自动化测试邀约");
getCalendarlist(today+86400000*2,1,"自动化测试用户","勿动-自动化测试邀约");
headerDeatil(1,"inviteStatus","5");
headerDeatil(1,"inviteStatus","1");
}
@Test(description = "修改客户未约到客户删除邀约记录",priority = 12)
......@@ -161,9 +161,9 @@ public class Invite implements Authorization {
getCalendarlist(today+86400000*2,0,"自动化测试用户","勿动-自动化测试邀约");
}
@Test(description = "修改客户已约到客户状态时间天后变为已确认",priority =13)
public void 修改客户已约到客户状态时间天后变为已确认(){
updateInvite(1,now + 3600000,cust_id);
@Test(description = "修改客户已约到客户状态时间天后变为已确认",priority =13)
public void 修改客户已约到客户状态时间天后变为已确认(){
updateInvite(1,now + 86400000,cust_id);
getHasFirstInvite(1,true);
getCallCustInfo(1);
......@@ -328,7 +328,6 @@ public class Invite implements Authorization {
@Test(description = "立即分配邀约客户",priority = 25)
public void 立即分配邀约客户(){
updateInvite(0,now + 3600000,cust_id);
updateInvite(1,now + 3600000,cust_id);
getCalendarlist(today,2,"自动化测试用户","勿动-自动化测试邀约");
......
......@@ -46,13 +46,13 @@ public class Work implements Authorization {
menuList(3);
otoExpertAuth();
menuList(3);
menuList(4);
otoAssistAuth();
menuList(13);
menuList(14);
otoLeaderAuth();
menuList(18);
menuList(14);
otoPMAuth();
menuList(13);
......@@ -64,7 +64,7 @@ public class Work implements Authorization {
menuList(3);
otoManagerAuth();
menuList(23);
menuList(24);
}
@Test(description = "工作台_标签列表",priority = 5)
......
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