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

Merge branch 'Feature/checkChart_20230519_gxh' into 'master'

增加邀约优化的测试用例

See merge request !105
parents 6a1b745f 73d6acc9
...@@ -219,7 +219,7 @@ public class CheckTask implements Authorization { ...@@ -219,7 +219,7 @@ public class CheckTask implements Authorization {
public void 自建计划查找销售名下客户(){ public void 自建计划查找销售名下客户(){
otoTakerAuth(); otoTakerAuth();
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化测试户"); params.put("custName", "自动化测试户");
Response response = network.getResponse(params,BasicConfig.WORK_obtainCustBySellerId); Response response = network.getResponse(params,BasicConfig.WORK_obtainCustBySellerId);
int size = response.jsonPath().getInt("data.size()"); int size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size , 1,network.message(params,BasicConfig.WORK_obtainCustBySellerId,"查看销售在在库客户为空",response.body().asString())); Assert.assertEquals(size , 1,network.message(params,BasicConfig.WORK_obtainCustBySellerId,"查看销售在在库客户为空",response.body().asString()));
...@@ -371,7 +371,7 @@ public class CheckTask implements Authorization { ...@@ -371,7 +371,7 @@ public class CheckTask implements Authorization {
String inviteName = response.jsonPath().getString("data.inviteName"); String inviteName = response.jsonPath().getString("data.inviteName");
String expertName = response.jsonPath().getString("data.expertName"); String expertName = response.jsonPath().getString("data.expertName");
String sellerName = response.jsonPath().getString("data.sellerName"); String sellerName = response.jsonPath().getString("data.sellerName");
Assert.assertEquals(introducer,"自动化测试户",network.message(params,BasicConfig.WORK_header,"转介绍客户的介绍人错误",response.body().asString())); Assert.assertEquals(introducer,"自动化测试户",network.message(params,BasicConfig.WORK_header,"转介绍客户的介绍人错误",response.body().asString()));
Assert.assertNull(inviteName,network.message(params,BasicConfig.WORK_header,"转介绍客户的当前邀约与介绍人不一致",response.body().asString())); Assert.assertNull(inviteName,network.message(params,BasicConfig.WORK_header,"转介绍客户的当前邀约与介绍人不一致",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试专家",network.message(params,BasicConfig.WORK_header,"转介绍客户的当前销售与介绍人不一致",response.body().asString())); Assert.assertEquals(expertName,"勿动-自动化测试专家",network.message(params,BasicConfig.WORK_header,"转介绍客户的当前销售与介绍人不一致",response.body().asString()));
Assert.assertEquals(sellerName,"勿动-自动化测试带看",network.message(params,BasicConfig.WORK_header,"转介绍客户的当前专家与介绍人不一致",response.body().asString())); Assert.assertEquals(sellerName,"勿动-自动化测试带看",network.message(params,BasicConfig.WORK_header,"转介绍客户的当前专家与介绍人不一致",response.body().asString()));
......
...@@ -113,14 +113,14 @@ public class Invite implements Authorization { ...@@ -113,14 +113,14 @@ public class Invite implements Authorization {
params.put("custId",cust_id); params.put("custId",cust_id);
Response response =network.getResponse(params,BasicConfig.WORK_getAllSceneConfs); Response response =network.getResponse(params,BasicConfig.WORK_getAllSceneConfs);
int size = response.jsonPath().getInt("data.size()"); int size = response.jsonPath().getInt("data.size()");
int confUsableSize = response.jsonPath().getInt("data[5].findAll{it.confUsable == 1}.size()"); int confUsableSize = response.jsonPath().getInt("data[0].findAll{it.confUsable == 1}.size()");
Assert.assertEquals(size,4 ,network.message(params,BasicConfig.WORK_getAllSceneConfs,"面访场景包含场景未根据产品组关联",response.body().asString())); 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())); Assert.assertEquals(confUsableSize,3 ,network.message(params,BasicConfig.WORK_getAllSceneConfs,"面访场景包含场景未根据产品组关联",response.body().asString()));
} }
@Test(description = "修改客户面访承诺时间为今天",priority = 8) @Test(description = "修改客户面访承诺时间为今天",priority = 8)
public void 修改客户面访承诺时间为1天后(){ public void 修改客户面访承诺时间为1天后(){
updateInvite(1,now,cust_id); updateInvite(1,now+86400000,cust_id);
getHasFirstInvite(1,true); getHasFirstInvite(1,true);
getCallCustInfo(1); getCallCustInfo(1);
...@@ -161,13 +161,13 @@ public class Invite implements Authorization { ...@@ -161,13 +161,13 @@ public class Invite implements Authorization {
getCalendarlist(today+86400000*2,0,"自动化测试客户","勿动-自动化测试邀约"); getCalendarlist(today+86400000*2,0,"自动化测试客户","勿动-自动化测试邀约");
} }
@Test(description = "修改客户已约到客户状态时间明天变为已确认",priority =13) @Test(description = "修改客户已约到客户状态时间明天变为已确认",priority =13)
public void 修改客户已约到客户状态时间明天变为已确认(){ public void 修改客户已约到客户状态时间明天变为已确认(){
updateInvite(1,now + 86400000,cust_id); updateInvite(1,now + 86400000,cust_id);
getHasFirstInvite(1,true); getHasFirstInvite(1,true);
getCallCustInfo(1); getCallCustInfo(1);
getCalendarlist(today,2,"自动化测试客户","勿动-自动化测试邀约"); getCalendarlist(today+86400000,2,"自动化测试客户","勿动-自动化测试邀约");
} }
@Test(description = "查询客户的面访上传记录<1",priority = 14) @Test(description = "查询客户的面访上传记录<1",priority = 14)
......
...@@ -99,7 +99,7 @@ public class Phone implements Authorization { ...@@ -99,7 +99,7 @@ public class Phone implements Authorization {
params.put("custId", customer_id); params.put("custId", customer_id);
Response response = network.getResponse(params, BasicConfig.PHONE_listCustInterConf); Response response = network.getResponse(params, BasicConfig.PHONE_listCustInterConf);
int size = response.jsonPath().getInt("data.size()"); int size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size,2,network.message(params,BasicConfig.PHONE_listCustInterConf,"见面场景列表数量错误",response.body().asString())); Assert.assertEquals(size,5,network.message(params,BasicConfig.PHONE_listCustInterConf,"见面场景列表数量错误",response.body().asString()));
} }
...@@ -117,7 +117,7 @@ public class Phone implements Authorization { ...@@ -117,7 +117,7 @@ public class Phone implements Authorization {
params.put("custId", customer_id); params.put("custId", customer_id);
response = network.getResponse(params, BasicConfig.PHONE_listCustInterConf); response = network.getResponse(params, BasicConfig.PHONE_listCustInterConf);
int size = response.jsonPath().getInt("data.size()"); int size = response.jsonPath().getInt("data.size()");
Assert.assertEquals(size,3,network.message(params,BasicConfig.PHONE_listCustInterConf,"见面场景列表数量错误",response.body().asString())); Assert.assertEquals(size,6,network.message(params,BasicConfig.PHONE_listCustInterConf,"见面场景列表数量错误",response.body().asString()));
} }
@Test(description = "创建社区参观的面访",priority = 8) @Test(description = "创建社区参观的面访",priority = 8)
...@@ -613,14 +613,14 @@ public class Phone implements Authorization { ...@@ -613,14 +613,14 @@ public class Phone implements Authorization {
params.put("pageSize", "20"); params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.PHONE_interviewList); Response response = network.getResponse(params, BasicConfig.PHONE_interviewList);
int size = response.jsonPath().getInt("data.customerInterviewVos.size()"); int size = response.jsonPath().getInt("data.customerInterviewVos.size()");
Assert.assertEquals(size,2,network.message(params,BasicConfig.PHONE_interviewList,"专家面访列表为空",response.body().asString())); Assert.assertEquals(size,4,network.message(params,BasicConfig.PHONE_interviewList,"专家面访列表为空",response.body().asString()));
params.clear(); params.clear();
params.put("custName", "自动化测试用户"); params.put("custName", "自动化测试用户");
params.put("pageSize", "20"); params.put("pageSize", "20");
response = network.getResponse(params, BasicConfig.PHONE_customerList); response = network.getResponse(params, BasicConfig.PHONE_customerList);
int interviewNum = response.jsonPath().getInt("data.myCustomerVos[0].interviewNum"); int interviewNum = response.jsonPath().getInt("data.myCustomerVos[0].interviewNum");
Assert.assertEquals(interviewNum,2,network.message(params,BasicConfig.PHONE_customerList,"专家线下拜访次数不包含关联面访",response.body().asString())); Assert.assertEquals(interviewNum,4,network.message(params,BasicConfig.PHONE_customerList,"专家线下拜访次数不包含关联面访",response.body().asString()));
} }
@Test(description = "上传面访后完成见面计划",priority = 58) @Test(description = "上传面访后完成见面计划",priority = 58)
......
...@@ -52,7 +52,7 @@ public class Work implements Authorization { ...@@ -52,7 +52,7 @@ public class Work implements Authorization {
menuList(14); menuList(14);
otoLeaderAuth(); otoLeaderAuth();
menuList(14); menuList(19);
otoPMAuth(); otoPMAuth();
menuList(13); menuList(13);
......
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