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
b500cd25
Commit
b500cd25
authored
Jun 07, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加客户告知书管理的自动化测试接口
parent
b223e9a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+4
-4
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+5
-5
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
b500cd25
...
@@ -486,8 +486,8 @@ public class Phone implements Authorization {
...
@@ -486,8 +486,8 @@ public class Phone implements Authorization {
public
void
客户流程组
_
表格总览
(){
public
void
客户流程组
_
表格总览
(){
otosellerAuth
();
otosellerAuth
();
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
int
ondStep
=
response
.
jsonPath
().
getInt
(
"data[
1
].custNum"
);
int
ondStep
=
response
.
jsonPath
().
getInt
(
"data[
0
].custNum"
);
int
twoStep
=
response
.
jsonPath
().
getInt
(
"data[
2
].custNum"
);
int
twoStep
=
response
.
jsonPath
().
getInt
(
"data[
1
].custNum"
);
Assert
.
assertEquals
(
ondStep
,
Work
.
chart
.
get
(
"ondStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"创建的转介绍和缘故客户的流程组非1"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
ondStep
,
Work
.
chart
.
get
(
"ondStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"创建的转介绍和缘故客户的流程组非1"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
twoStep
,
Work
.
chart
.
get
(
"twoStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户社区参观后未提交计划书流程组状态未变为2"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
twoStep
,
Work
.
chart
.
get
(
"twoStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户社区参观后未提交计划书流程组状态未变为2"
,
response
.
body
().
asString
()));
}
}
...
@@ -587,7 +587,7 @@ public class Phone implements Authorization {
...
@@ -587,7 +587,7 @@ public class Phone implements Authorization {
otosellerAuth
();
otosellerAuth
();
sleep
(
2000
);
sleep
(
2000
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
int
fourStep
=
response
.
jsonPath
().
getInt
(
"data[
4
].custNum"
);
int
fourStep
=
response
.
jsonPath
().
getInt
(
"data[
3
].custNum"
);
Assert
.
assertEquals
(
fourStep
,
Work
.
chart
.
get
(
"fourStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户社区参观后已确认投保要素流程组状态未变为4"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
fourStep
,
Work
.
chart
.
get
(
"fourStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户社区参观后已确认投保要素流程组状态未变为4"
,
response
.
body
().
asString
()));
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
@@ -633,7 +633,7 @@ public class Phone implements Authorization {
...
@@ -633,7 +633,7 @@ public class Phone implements Authorization {
public
void
客户流程组
_
表格总览更新为已成单
(){
public
void
客户流程组
_
表格总览更新为已成单
(){
sleep
(
2000
);
sleep
(
2000
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
int
fiveStep
=
response
.
jsonPath
().
getInt
(
"data[
5
].custNum"
);
int
fiveStep
=
response
.
jsonPath
().
getInt
(
"data[
4
].custNum"
);
Assert
.
assertEquals
(
fiveStep
,
Work
.
chart
.
get
(
"fiveStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"修改已成交后流程组状态未变为5"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
fiveStep
,
Work
.
chart
.
get
(
"fiveStep"
)+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"修改已成交后流程组状态未变为5"
,
response
.
body
().
asString
()));
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
b500cd25
...
@@ -168,11 +168,11 @@ public class Work implements Authorization {
...
@@ -168,11 +168,11 @@ public class Work implements Authorization {
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticChart
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"流程组表格数量为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"流程组表格数量为空"
,
response
.
body
().
asString
()));
chart
.
put
(
"ondStep"
,
response
.
jsonPath
().
getInt
(
"data[
1
].custNum"
));
chart
.
put
(
"ondStep"
,
response
.
jsonPath
().
getInt
(
"data[
0
].custNum"
));
chart
.
put
(
"twoStep"
,
response
.
jsonPath
().
getInt
(
"data[
2
].custNum"
));
chart
.
put
(
"twoStep"
,
response
.
jsonPath
().
getInt
(
"data[
1
].custNum"
));
chart
.
put
(
"threeStep"
,
response
.
jsonPath
().
getInt
(
"data[
3
].custNum"
));
chart
.
put
(
"threeStep"
,
response
.
jsonPath
().
getInt
(
"data[
2
].custNum"
));
chart
.
put
(
"fourStep"
,
response
.
jsonPath
().
getInt
(
"data[
4
].custNum"
));
chart
.
put
(
"fourStep"
,
response
.
jsonPath
().
getInt
(
"data[
3
].custNum"
));
chart
.
put
(
"fiveStep"
,
response
.
jsonPath
().
getInt
(
"data[
5
].custNum"
));
chart
.
put
(
"fiveStep"
,
response
.
jsonPath
().
getInt
(
"data[
4
].custNum"
));
}
}
@Test
(
description
=
"工作台_标签列表"
,
priority
=
11
)
@Test
(
description
=
"工作台_标签列表"
,
priority
=
11
)
...
...
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