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

修改上传方案和分配角色用例

parent a5a4bb8a
......@@ -258,7 +258,7 @@ public class Phone implements Authorization {
Assert.assertNotNull(interviewAddress,network.message(params,BasicConfig.PHONE_custExtDetail,"客户地址回显为空",response.body().asString()));
Assert.assertNull(giveProspectusFlag,network.message(params,BasicConfig.PHONE_custExtDetail,"是否可送计划书回显不为空",response.body().asString()));
Assert.assertEquals(commitPlanFlag,0,network.message(params,BasicConfig.PHONE_custExtDetail,"是否已送计划书回显不为否",response.body().asString()));
Assert.assertNull(expertName,network.message(params,BasicConfig.PHONE_custExtDetail,"专家回显不为空",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试专家",network.message(params,BasicConfig.PHONE_custExtDetail,"专家回显不为空",response.body().asString()));
}
@Test(description = "上传第一次社区参观面访详情",priority = 21)
......@@ -324,7 +324,7 @@ public class Phone implements Authorization {
response = network.getResponse(selectParams,BasicConfig.MANAGER_oto_customerList);
String sellerName = response.jsonPath().getString("data.list[0].sellerVo.sellerName");
String expertName = response.jsonPath().getString("data.list[0].expertVo.sellerName");
Assert.assertEquals(expertName,"勿动-自动化测试总监" ,network.message(params, BasicConfig.MANAGER_oto_customerList, "修改客户标签失败", response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试专家" ,network.message(params, BasicConfig.MANAGER_oto_customerList, "修改客户标签失败", response.body().asString()));
Assert.assertEquals(sellerName,"勿动-自动化测试带看" ,network.message(params, BasicConfig.MANAGER_oto_customerList, "修改客户标签失败", response.body().asString()));
}
......@@ -408,7 +408,7 @@ public class Phone implements Authorization {
Assert.assertNull(followWeight,network.message(params,BasicConfig.PHONE_custExtDetail,"客户等级回显不为1",response.body().asString()));
Assert.assertNull(giveProspectusFlag,network.message(params,BasicConfig.PHONE_custExtDetail,"是否可送计划书不为空",response.body().asString()));
Assert.assertEquals(commitPlanFlag,0,network.message(params,BasicConfig.PHONE_custExtDetail,"是否已送计划书不为否",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试总监",network.message(params,BasicConfig.PHONE_custExtDetail,"专家回显错误,非【勿动-自动化测试专家】",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试专家",network.message(params,BasicConfig.PHONE_custExtDetail,"专家回显错误,非【勿动-自动化测试专家】",response.body().asString()));
}
@Test(description = "上传社区参观面访详情",priority = 30)
......@@ -510,7 +510,7 @@ public class Phone implements Authorization {
String expertName = response.jsonPath().getString("data.expertName");
Assert.assertEquals(giveProspectusFlag,1,network.message(params,BasicConfig.PHONE_custExtDetail,"是否可送计划书不为空",response.body().asString()));
Assert.assertEquals(commitPlanFlag,0,network.message(params,BasicConfig.PHONE_custExtDetail,"是否已送计划书不为否",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试总监",network.message(params,BasicConfig.PHONE_custExtDetail,"是否已送计划书不为否",response.body().asString()));
Assert.assertEquals(expertName,"勿动-自动化测试专家",network.message(params,BasicConfig.PHONE_custExtDetail,"是否已送计划书不为否",response.body().asString()));
}
......@@ -668,9 +668,6 @@ public class Phone implements Authorization {
public void 专家能查看关联自己的面访(){
otoEpertTku();
long id= IdMakeUtil.decodingId(cust_id);
assignSeller((int)id,EXPERT_ID,true,3);//分配给专家
HashMap<String,Object> params = new HashMap<>();
params.put("custName", "自动化激活用户");
params.put("pageSize", "20");
......
......@@ -126,8 +126,10 @@ public class Work implements Authorization {
public void 公域引流_分配客户(){
assignSeller(custId,23,false,1);
sleep(1000);
assignSeller(custId,INVITE_ID,true,1);
sleep(1000);
assignSeller(custId+3,320,true,1);
// for(int i = 6104;i<6204;i++){
......@@ -951,16 +953,18 @@ public class Work implements Authorization {
@Test(description = "查看回收池客户列表",priority = 67)
public void 查看回收池客户列表(){
otoManagerAuth();
HashMap<String,Object> params = new HashMap<>();
params.put("pageIndex", 1);
params.put("pageSize", 20);
Response response = network.getResponse(params,BasicConfig.WORK_recycleList);
int size = response.jsonPath().getInt("data.list.size()");
Assert.assertTrue(size>0,network.message(params,BasicConfig.WORK_recycleList,"查看回收池客户列表为空",response.body().asString()));
Assert.assertEquals(size,0,network.message(params,BasicConfig.WORK_recycleList,"查看回收池客户列表为空",response.body().asString()));
}
@Test(description = "认领回收池客户",priority = 68)
public void 认领回收池客户(){
otoInviterAuth();
sleep(2000);
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
......@@ -1828,7 +1832,7 @@ public class Work implements Authorization {
boolean hasFollowFlag = response.jsonPath().getBoolean("data.hasFollowFlag");
int size = response.jsonPath().getInt("data.roleTypes.size()");
Assert.assertTrue(hasFollowFlag,network.message(params,BasicConfig.WORK_getFollowInfo,"客户没有销售或专家跟进",response.body().asString()));
Assert.assertEquals(size,1,network.message(params,BasicConfig.WORK_getFollowInfo,"客户的跟进角色错误",response.body().asString()));
Assert.assertEquals(size,2,network.message(params,BasicConfig.WORK_getFollowInfo,"客户的跟进角色错误",response.body().asString()));
}
......@@ -1961,11 +1965,12 @@ public class Work implements Authorization {
public void 上传客户方案(){
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
params.put("planFile","//yun.dui88.com/kjy/media/file/20230113/20230113145555/1.doc");
params.put("planFiles",new String[]{"//yun.dui88.com/kjy/media/file/20230113/20230113145555/1.doc","//yun.dui88.com/kjy/media/file/20230131/20230131111229/4.ppt"} );
Response response = network.postResponse(params,BasicConfig.WORK_planFileUpload);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_planFileUpload,"上传客户方案失败",response.body().asString()));
params.clear();
params.put("custId", custId);
params.put("type", 2);
response = network.getResponse(params,BasicConfig.WORK_header);
......
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