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
fc104167
Commit
fc104167
authored
Nov 09, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约任务的接口用例
parent
093b723d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+16
-2
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
fc104167
...
@@ -1496,7 +1496,21 @@ public class Work implements Authorization {
...
@@ -1496,7 +1496,21 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
finishCustNum
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_taskList
,
"已完成数量记录错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
finishCustNum
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_taskList
,
"已完成数量记录错误"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"校验邀约的通话信息"
,
priority
=
14
)
@Test
(
description
=
"校验通话后显示回填弹窗"
,
priority
=
106
)
public
void
校验通话后显示回填弹窗
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_showFeedback
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_showFeedback
,
"电话表单回填状态错误:为不需要回填"
,
response
.
body
().
asString
()));
params
.
put
(
"custId"
,
custId
+
2
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_showFeedback
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_showFeedback
,
"电话表单回填状态错误:为不需要回填"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"校验邀约的通话信息"
,
priority
=
107
)
public
void
校验邀约的通话信息
(){
public
void
校验邀约的通话信息
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"custId"
,
custId
);
...
@@ -1511,7 +1525,7 @@ public class Work implements Authorization {
...
@@ -1511,7 +1525,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
callTimes
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
callTimes
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
lastCallTime
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
lastCallTime
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"custId"
,
custId
+
2
);
params
.
put
(
"type"
,
1
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
allCallTimes
=
response
.
jsonPath
().
getInt
(
"data.allCallTimes"
);
allCallTimes
=
response
.
jsonPath
().
getInt
(
"data.allCallTimes"
);
...
...
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