Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
龚小红
oto
Commits
6634942e
Commit
6634942e
authored
Mar 11, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除总监不可修改为销售的用例,接口未做限制
parent
dec2e803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
Manager.java
src/test/java/com/kjj/cases/otoseller/Manager.java
+16
-15
No files found.
src/test/java/com/kjj/cases/otoseller/Manager.java
View file @
6634942e
...
@@ -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
不可新增同名公司
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment