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

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

删除总监不可修改为销售的用例,接口未做限制

See merge request test-group/kejiji!236
parents b3b19acb 6634942e
......@@ -107,21 +107,22 @@ public class Manager {
Assert.assertFalse(success,network.message(params,BasicConfig.MANAGER_oto_saveSeller,"新增同一手机号销售成功",response.body().asString()));
}
@Test(description = "不可修改总监为普通",priority = 6)
public void 不可修改总监为普通(){
HashMap<String,Object> params = new HashMap<>();
params.put("id", LEADER_ID);
params.put("sellerName", "勿动-自动化测试销售");
params.put("phoneNumber", "18852895892");
params.put("roleType", 3);
params.put("callPermission", 1);
params.put("sellerStatus", 1);
params.put("companyId", 3);
params.put("sellerLevel", 1);
Response response = network.postResponse(params, BasicConfig.MANAGER_oto_updateSeller);
boolean success = response.jsonPath().getBoolean("success");
Assert.assertFalse(success,network.message(params,BasicConfig.MANAGER_oto_updateSeller,"修改总监为普通销售成功",response.body().asString()));
}
//接口对此场景做校验,仅前端做了限制
// @Test(description = "不可修改总监为普通",priority = 6)
// public void 不可修改总监为普通(){
// HashMap<String,Object> params = new HashMap<>();
// params.put("id", LEADER_ID);
// params.put("sellerName", "勿动-自动化测试总监");
// params.put("phoneNumber", "18248405155");
// params.put("roleType", 1);
// params.put("callPermission", 1);
// params.put("sellerStatus", 1);
// params.put("companyId", 3);
// params.put("sellerLevel", 1);
// Response response = network.postResponse(params, BasicConfig.MANAGER_oto_updateSeller);
// boolean success = response.jsonPath().getBoolean("success");
// Assert.assertFalse(success,network.message(params,BasicConfig.MANAGER_oto_updateSeller,"修改总监为普通销售成功",response.body().asString()));
// }
@Test(description = "不可新增同名公司",priority = 7)
public void 不可新增同名公司(){
......
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