Commit 6634942e authored by 龚小红's avatar 龚小红

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

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