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
bc65052a
Commit
bc65052a
authored
Oct 10, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20221009-gxh' into 'master'
增加1对多销售拆分 See merge request
!34
parents
67d5b964
750fbc44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+7
-4
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
bc65052a
...
...
@@ -755,15 +755,18 @@ public class Phone implements Authorization {
int
giveProspectusFlag
=
response
.
jsonPath
().
getInt
(
"data.giveProspectusFlag"
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.commitPlanFlag"
);
String
expertName
=
response
.
jsonPath
().
getString
(
"data.expertName"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.unusualTypes.size()"
);
String
unusualExplain
=
response
.
jsonPath
().
getString
(
"data.unusualExplain"
);
Assert
.
assertEquals
(
followWeight
,
weight
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"关注度显示错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
giveProspectusFlag
,
giveProspectus
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"关注度显示错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
commitPlan
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"关注度显示错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
expertName
,
expert
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"关注度显示错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
unusualExplain
,
explain
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"异常情况说明显示错误"
,
response
.
body
().
asString
()));;
if
(
unusualTypes
>
0
)
{
int
size
=
response
.
jsonPath
().
getInt
(
"data.unusualTypes.size()"
);
Assert
.
assertEquals
(
size
,
unusualTypes
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"面访异常类型显示错误"
,
response
.
body
().
asString
()));
if
(
size
>
0
)
{
Assert
.
assertEquals
(
unusualExplain
,
explain
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"异常情况说明显示错误"
,
response
.
body
().
asString
()));
}
else
{
Object
size
=
response
.
jsonPath
().
getJsonObject
(
"data.unusualTypes"
);
Assert
.
assertNull
(
size
,
network
.
message
(
params
,
BasicConfig
.
PHONE_feedbackDetail
,
"面访异常类型显示错误"
,
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