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
8882b3eb
Commit
8882b3eb
authored
Aug 22, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20220817-gxh' into 'master'
修改每日任务配置的测试用例 See merge request
!22
parents
13130830
0448dfff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+6
-9
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
8882b3eb
...
...
@@ -1000,11 +1000,8 @@ public class Work implements Authorization {
@Test
(
description
=
"修改任务配置"
,
priority
=
85
)
public
void
修改任务配置
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
List
list
=
new
ArrayList
();
list
.
add
(
3
);
list
.
add
(
4
);
list
.
add
(
2
);
params
.
put
(
"custSourceList"
,
list
);
//客户来源:1:缘故客户 2:转介绍客户 3:投放客户 4.直播客户 5.助手客户
String
list
[]
=
{
"01"
,
"02"
,
"03"
,
"04"
};
params
.
put
(
"custSourceList"
,
list
);
//客户来源
params
.
put
(
"custType"
,
1
);
//1:全部客户;2:新客户;3:老客户
params
.
put
(
"id"
,
4
);
params
.
put
(
"limitGoalFlag"
,
0
);
...
...
@@ -1016,14 +1013,14 @@ public class Work implements Authorization {
//获取任务列表验证修改是否成功
Response
listRes
=
network
.
getResponse
(
BasicConfig
.
WORK_taskConfList
);
int
custType
=
listRes
.
jsonPath
().
getInt
(
"data[0].custType"
);
int
custSourceList
=
listRes
.
jsonPath
().
getInt
(
"data[0].custSourceList.size()"
);
Assert
.
assertEquals
(
custType
,
1
,
network
.
message
(
BasicConfig
.
WORK_taskConfList
,
"修改任务配置失败"
,
listRes
.
body
().
asString
()));
Assert
.
assertEquals
(
custSourceList
,
4
,
network
.
message
(
BasicConfig
.
WORK_taskConfList
,
"修改任务配置失败"
,
listRes
.
body
().
asString
()));
//恢复默认配置
params
.
clear
();
List
acqList
=
new
ArrayList
();
acqList
.
add
(
3
);
acqList
.
add
(
4
);
params
.
put
(
"custSourceList"
,
list
);
//客户来源:1:缘故客户 2:转介绍客户 3:投放客户 4.直播客户 5.助手客户
String
acqList
[]
=
{
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
};
params
.
put
(
"custSourceList"
,
acqList
);
//客户来源:
params
.
put
(
"custType"
,
2
);
//1:全部客户;2:新客户;3:老客户
params
.
put
(
"id"
,
4
);
params
.
put
(
"limitGoalFlag"
,
0
);
...
...
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