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
23f15135
Commit
23f15135
authored
May 26, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/checkChart_20230519_gxh' into 'master'
增加导出到场客户和即将改派告警的测试用例 See merge request
!101
parents
b96ccc06
76d84885
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+10
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+20
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+2
-0
No files found.
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
23f15135
...
@@ -374,6 +374,16 @@ public class Invite implements Authorization {
...
@@ -374,6 +374,16 @@ public class Invite implements Authorization {
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"未回显部门id"
,
""
));
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"未回显部门id"
,
""
));
}
}
@Test
(
description
=
"导出确认到场客户"
,
priority
=
27
)
public
void
导出确认到场客户
(){
SimpleDateFormat
sdt
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"date"
,
sdt
.
format
(
today
));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_calendarExport
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendarExport
,
"导出客户失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"邀约记录未到场盘点详情不可重新分配专家"
,
priority
=
30
)
@Test
(
description
=
"邀约记录未到场盘点详情不可重新分配专家"
,
priority
=
30
)
public
void
邀约记录未到场盘点详情不可重新分配专家
(){
public
void
邀约记录未到场盘点详情不可重新分配专家
(){
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
23f15135
...
@@ -953,6 +953,25 @@ public class Work implements Authorization {
...
@@ -953,6 +953,25 @@ public class Work implements Authorization {
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_SellerCustList
,
"总监的团队客户为空"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_SellerCustList
,
"总监的团队客户为空"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查看即将改派告警客户"
,
priority
=
71
)
public
void
查看即将改派告警客户
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_notifyWarning
);
int
assignWarnNum
=
response
.
jsonPath
().
getInt
(
"data.assignWarnNum"
);
Assert
.
assertEquals
(
assignWarnNum
,
1
,
network
.
message
(
BasicConfig
.
WORK_notifyWarning
,
"即将被改派客户不为1"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看即将改派客户列表"
,
priority
=
72
)
public
void
查看即将改派客户列表
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_warnList
);
int
assignWarnNum
=
response
.
jsonPath
().
getInt
(
"data.assignWarnNum"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.vos.size()"
);
int
fromAssignTypes
=
response
.
jsonPath
().
getInt
(
"data.vos[0].fromAssignTypes.size()"
);
Assert
.
assertEquals
(
assignWarnNum
,
1
,
network
.
message
(
BasicConfig
.
WORK_warnList
,
"即将被改派客户不为1"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
WORK_warnList
,
"即将被改派客户列表不为1"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
fromAssignTypes
,
2
,
network
.
message
(
BasicConfig
.
WORK_warnList
,
"即将被改派原因非2个"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
88
)
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
88
)
...
@@ -988,6 +1007,7 @@ public class Work implements Authorization {
...
@@ -988,6 +1007,7 @@ public class Work implements Authorization {
public
static
void
callling
(
String
sellerPhone
,
String
custPhone
,
int
length
,
String
callState
){
public
static
void
callling
(
String
sellerPhone
,
String
custPhone
,
int
length
,
String
callState
){
//通话回传
//通话回传
String
CALL_URL
=
CALL_BACK_1
+
sellerPhone
+
"&CalledNo="
+
custPhone
+
CALL_BACK_2
+
length
+
"&State="
+
callState
+
CALL_BACK_3
;
String
CALL_URL
=
CALL_BACK_1
+
sellerPhone
+
"&CalledNo="
+
custPhone
+
CALL_BACK_2
+
length
+
"&State="
+
callState
+
CALL_BACK_3
;
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
23f15135
...
@@ -235,6 +235,8 @@ public class BasicConfig {
...
@@ -235,6 +235,8 @@ public class BasicConfig {
public
static
final
String
WORK_liveDynamic
=
WORK_HOST
+
"/kjy/oto/manager/customer/liveDynamic"
;
public
static
final
String
WORK_liveDynamic
=
WORK_HOST
+
"/kjy/oto/manager/customer/liveDynamic"
;
public
static
final
String
WORK_updateInfo
=
WORK_HOST
+
"/kjy/oto/manager/customer/info/update"
;
public
static
final
String
WORK_updateInfo
=
WORK_HOST
+
"/kjy/oto/manager/customer/info/update"
;
public
static
final
String
WORK_notifyWarning
=
WORK_HOST
+
"/kjy/oto/manager/customer/notify/total"
;
public
static
final
String
WORK_notifyWarning
=
WORK_HOST
+
"/kjy/oto/manager/customer/notify/total"
;
public
static
final
String
WORK_warnList
=
WORK_HOST
+
"/kjy/oto/manager/customer/assign/warn/list"
;
public
static
final
String
WORK_calendarExport
=
WORK_HOST
+
"/kjy/oto/manager/cust/calendar/export"
;
//*************************客户报告审批*******************************
//*************************客户报告审批*******************************
public
static
final
String
WORK_OA_submit
=
WORK_HOST
+
"/kjy/oto/manager/report/oa/submit"
;
public
static
final
String
WORK_OA_submit
=
WORK_HOST
+
"/kjy/oto/manager/report/oa/submit"
;
...
...
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