Commit 8921fb69 authored by 龚小红's avatar 龚小红

Merge branch 'Feature/20220824-gxh' into 'master'

增加多场景固定跑master分支

See merge request !25
parents d6d17bac bafdbd07
......@@ -761,6 +761,15 @@ public class Phone implements Authorization {
data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
// for(int i = 5902;i<5966;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("custId", i);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// boolean data = response.jsonPath().getBoolean("data");
// Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
//
// }
}
@Test(description = "删除客户填写的表单记录",priority = 80)
......@@ -770,6 +779,13 @@ public class Phone implements Authorization {
Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delPubFormRecord,"删除客户表单记录失败",response.body().asString()));
// for(int i = 0;i<10;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("phoneNum", "1301121000"+i);
// Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
//
// }
}
@Test(description = "退出登录",priority = 81)
......
......@@ -103,6 +103,20 @@ public class Work implements Authorization {
response = network.postResponse(params,BasicConfig.FORM_submitQuestion);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.FORM_submitQuestion,"客户填写表单失败",response.body().asString()));
// for(int i = 0;i<10;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("formId", "Kj20ODA3");
// params.put("phoneNum", "1301121005"+i);
// params.put("urlLink", "https://kjj-static.duibatest.com.cn/cpic-home/202111261430?formId=Kj20ODA3&channel=bd&agent=x");
// params.put("username", "用户5"+i);
// params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60");
// Response response = network.postResponse(params,BasicConfig.FORM_submit);
// String recordId = response.jsonPath().getString("data.recordId");
// Assert.assertNotNull(recordId,network.message(params,BasicConfig.FORM_submit,"客户创建失败",response.body().asString()));
//
// }
}
@Test(description = "公域引流_查找客户",priority = 5)
......@@ -136,6 +150,14 @@ public class Work implements Authorization {
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.MANAGER_oto_assignSeller,"销售相同产品组分配客户失败",response.body().asString()));
// for(int i = 6028;i<6035;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("customerId",i);
// params.put("sellerId", 2);
// Response response = network.postResponse(params,BasicConfig.MANAGER_oto_assignSeller);
// boolean success = response.jsonPath().getBoolean("success");
//
// }
}
@Test(description = "工作台_销售信息",priority = 7)
......@@ -808,7 +830,7 @@ public class Work implements Authorization {
BigDecimal bg = new BigDecimal(coefficient.get("totalCoefficient") + coefficient.get("claimCustCoefficient"));
Double sum = bg.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
Double totalCoefficient = response.jsonPath().getDouble("data.totalCoefficient");
Assert.assertEquals(totalCoefficient,sum,network.message(BasicConfig.WORK_coefficient_detail,"放弃客户销售总系数变化",response.body().asString()));
Assert.assertEquals(totalCoefficient,sum,network.message(BasicConfig.WORK_coefficient_detail,"认领回收池客户后销售总系数错误",response.body().asString()));
}
@Test(description = "认领回收池客户总数更新",priority = 69)
......
......@@ -27,7 +27,7 @@ public class NetworkUtils {
//cookies中的tku
agentCookies.put("tku",AGENT_TKU);
//多场景测试标志
// agentCookies.put("_duibaServiceGroupKey","miria-3132");
agentCookies.put("_duibaServiceGroupKey","miria-3321");
//json类型的headers
agentHeaders.put("Content-Type","application/json");
//二进制文件的headers
......
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