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
caadc8a5
Commit
caadc8a5
authored
Jul 04, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化面访用例
parent
906df06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+2
-2
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
caadc8a5
...
...
@@ -136,8 +136,8 @@ public class Phone implements Authorization {
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_customerList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.myCustomerVos.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_customerList
,
"客户列表为空"
,
response
.
body
().
asString
()));
int
custFlow
=
response
.
jsonPath
().
getInt
(
"data.myCustomerVos
[3]
.custFlow"
);
boolean
interviewStatus
=
response
.
jsonPath
().
getBoolean
(
"data.myCustomerVos
[3]
.interviewStatus"
);
int
custFlow
=
response
.
jsonPath
().
getInt
(
"data.myCustomerVos
.find{it.custName == '自动化测试用户'}
.custFlow"
);
boolean
interviewStatus
=
response
.
jsonPath
().
getBoolean
(
"data.myCustomerVos
.find{it.custName == '自动化测试用户'}
.interviewStatus"
);
Assert
.
assertEquals
(
custFlow
,
1
,
network
.
message
(
params
,
BasicConfig
.
PHONE_customerList
,
"客户阶段错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
interviewStatus
,
network
.
message
(
params
,
BasicConfig
.
PHONE_customerList
,
"客户面访状态错误:非面访中"
,
response
.
body
().
asString
()));
}
...
...
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