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
916d2e63
Commit
916d2e63
authored
Feb 07, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加半天计划优化的测试用例
parent
d0a2d695
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+29
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
916d2e63
...
...
@@ -707,6 +707,35 @@ public class Phone implements Authorization {
Assert
.
assertEquals
(
sceneConfDesc
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的场景标签数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"重新分配销售不显示该客户计划"
,
priority
=
60
)
public
void
重新分配销售不显示该客户计划
(){
Long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
assignSeller
(
Math
.
toIntExact
(
id
),
457
,
true
,
2
);
otoLeaderAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"beginTime"
,
beginTime
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_getDirectorPlanCalendarList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
int
flag
=
0
;
for
(
int
i
=
0
;
i
<
size
;
i
++){
if
(
response
.
jsonPath
().
getString
(
"data["
+
i
+
"].sellerName"
).
equals
(
"勿动-自动化测试带看"
)){
flag
=
1
;
int
plans
=
response
.
jsonPath
().
getInt
(
"data["
+
i
+
"].vos.size()"
);
Assert
.
assertEquals
(
plans
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_getDirectorPlanCalendarList
,
"销售的当前计划包含不在库客户"
,
response
.
body
().
asString
()));
}
}
if
(
flag
==
0
){
Assert
.
fail
(
network
.
message
(
params
,
BasicConfig
.
WORK_getDirectorPlanCalendarList
,
"团队计划中不包含总监名下销售"
,
response
.
body
().
asString
()));
}
otoTakerAuth
();
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_getSellerPlanCalendarList
);
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_getDirectorPlanCalendarList
,
"销售的当前计划包含不在库客户"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
916d2e63
...
...
@@ -1648,7 +1648,7 @@ public class Work implements Authorization {
params
.
put
(
"name"
,
"自动化"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_sellerList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
5
,
network
.
message
(
params
,
BasicConfig
.
WORK_sellerList
,
"当前跟进人模糊搜索数量错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
6
,
network
.
message
(
params
,
BasicConfig
.
WORK_sellerList
,
"当前跟进人模糊搜索数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改重点跟进人"
,
priority
=
114
)
...
...
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