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
485d503b
Commit
485d503b
authored
Mar 07, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20220305-gxh' into 'master'
fix See merge request test-group/kejiji!229
parents
ebd18137
8c4fe00d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Manager.java
src/test/java/com/kjj/cases/otoseller/Manager.java
+4
-3
No files found.
src/test/java/com/kjj/cases/otoseller/Manager.java
View file @
485d503b
...
...
@@ -24,10 +24,13 @@ public class Manager {
public
void
分页查看销售列表
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
"1"
);
params
.
put
(
"pageSize"
,
"
1
0"
);
params
.
put
(
"pageSize"
,
"
2
0"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_oto_sellerList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_sellerList
,
"销售列表为空"
,
response
.
body
().
asString
()));
int
workStatus
=
response
.
jsonPath
().
getInt
(
"data.list.find{it.id == "
+
35
+
"}.workStatus"
);
Assert
.
assertEquals
(
workStatus
,
1
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_searchSeller
,
"工作状态错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"通过销售名称查找销售"
,
priority
=
2
)
...
...
@@ -37,8 +40,6 @@ public class Manager {
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_oto_searchSeller
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_searchSeller
,
"查找结果为空"
,
response
.
body
().
asString
()));
int
workStatus
=
response
.
jsonPath
().
getInt
(
"data[0].workStatus"
);
Assert
.
assertEquals
(
workStatus
,
1
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_searchSeller
,
"查找结果为空"
,
response
.
body
().
asString
()));
sellerId
=
response
.
jsonPath
().
getInt
(
"data[0].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