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
a28b35a5
Commit
a28b35a5
authored
Aug 24, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20220824-gxh' into 'master'
更新系数继承的测试用例 See merge request
!23
parents
8882b3eb
ec8504ff
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
31 deletions
+101
-31
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+6
-6
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+95
-25
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
a28b35a5
...
...
@@ -75,7 +75,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"姓名搜索客户"
,
priority
=
4
)
public
void
姓名搜索客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化
测试
用户"
);
params
.
put
(
"custName"
,
"自动化
激活
用户"
);
params
.
put
(
"pageSize"
,
"20"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_customerList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.myCustomerVos.size()"
);
...
...
@@ -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.find{it.custName == '自动化
测试
用户'}.custFlow"
);
boolean
interviewStatus
=
response
.
jsonPath
().
getBoolean
(
"data.myCustomerVos.find{it.custName == '自动化
测试
用户'}.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
()));
}
...
...
@@ -324,7 +324,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"查看我的面访状态更新为审批中"
,
priority
=
23
)
public
void
查看我的面访状态更新为审批中
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化
测试
用户"
);
params
.
put
(
"custName"
,
"自动化
激活
用户"
);
params
.
put
(
"pageSize"
,
"20"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_interviewList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.customerInterviewVos.size()"
);
...
...
@@ -386,7 +386,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"查看我的面访状态更新为已失效"
,
priority
=
27
)
public
void
查看我的面访状态更新为已失效
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化
测试
用户"
);
params
.
put
(
"custName"
,
"自动化
激活
用户"
);
params
.
put
(
"pageSize"
,
"20"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_interviewList
);
int
interviewStatus
=
response
.
jsonPath
().
getInt
(
"data.customerInterviewVos.find{it.id == '"
+
interviewIds
.
get
(
0
)
+
"'}.interviewStatus"
);
...
...
@@ -484,7 +484,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"查看我的面访状态更新为已完成"
,
priority
=
33
)
public
void
查看我的面访状态更新为已完成
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化
测试
用户"
);
params
.
put
(
"custName"
,
"自动化
激活
用户"
);
params
.
put
(
"pageSize"
,
"20"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_interviewList
);
int
interviewStatus
=
response
.
jsonPath
().
getInt
(
"data.customerInterviewVos.find{it.id == '"
+
interviewIds
.
get
(
0
)
+
"'}.interviewStatus"
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
a28b35a5
This diff is collapsed.
Click to expand it.
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