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
b0ee8e0e
Commit
b0ee8e0e
authored
Nov 14, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加绑定企微、导入外部客户、全部客户列表的接口用例
parent
44fd5c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+3
-4
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
b0ee8e0e
...
@@ -608,7 +608,7 @@ public class Work implements Authorization {
...
@@ -608,7 +608,7 @@ public class Work implements Authorization {
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
50
);
params
.
put
(
"pageSize"
,
50
);
params
.
put
(
"custName"
,
"自动化测试客户6"
);
params
.
put
(
"custName"
,
"自动化测试客户6"
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_
customer
List
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_
inviterCust
List
);
int
customerId
=
response
.
jsonPath
().
getInt
(
"data.list[0].custId"
);
int
customerId
=
response
.
jsonPath
().
getInt
(
"data.list[0].custId"
);
params
.
clear
();
params
.
clear
();
...
@@ -701,10 +701,9 @@ public class Work implements Authorization {
...
@@ -701,10 +701,9 @@ public class Work implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"custClassifyType"
,
1
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_inviterCustList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_customerList
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertFalse
(
success
,
network
.
message
(
params
,
BasicConfig
.
WORK_
customer
List
,
"关闭销售权限后访问成功"
,
response
.
body
().
asString
()));
Assert
.
assertFalse
(
success
,
network
.
message
(
params
,
BasicConfig
.
WORK_
inviterCust
List
,
"关闭销售权限后访问成功"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
clear
();
params
.
put
(
"id"
,
INVITE_ID
);
params
.
put
(
"id"
,
INVITE_ID
);
...
...
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