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
80339e5e
Commit
80339e5e
authored
Jul 03, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约优化的测试用例
parent
6c71443e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
CheckTask.java
src/test/java/com/oto/cases/otoseller/CheckTask.java
+24
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+6
-1
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+3
-0
No files found.
src/test/java/com/oto/cases/otoseller/CheckTask.java
View file @
80339e5e
...
@@ -382,6 +382,7 @@ public class CheckTask implements Authorization {
...
@@ -382,6 +382,7 @@ public class CheckTask implements Authorization {
@Test
(
description
=
"提交客户盘点"
,
priority
=
30
)
@Test
(
description
=
"提交客户盘点"
,
priority
=
30
)
public
void
提交客户盘点
(){
public
void
提交客户盘点
(){
otoManagerAuth
();
otoManagerAuth
();
//盘管客户页盘点
Calendar
calendar
=
new
GregorianCalendar
();
Calendar
calendar
=
new
GregorianCalendar
();
calendar
.
setTime
(
new
Date
());
calendar
.
setTime
(
new
Date
());
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
...
@@ -389,6 +390,7 @@ public class CheckTask implements Authorization {
...
@@ -389,6 +390,7 @@ public class CheckTask implements Authorization {
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论1"
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论1"
);
params
.
put
(
"strategyId"
,
strategyId
);
params
.
put
(
"strategyId"
,
strategyId
);
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"from"
,
1
);
calendar
.
add
(
calendar
.
DATE
,
2
);
calendar
.
add
(
calendar
.
DATE
,
2
);
ArrayList
<
Plan
>
plans
=
new
ArrayList
<>();
ArrayList
<
Plan
>
plans
=
new
ArrayList
<>();
plans
.
add
(
new
Plan
(
"phone"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"pm"
,
6
,
null
));
//创建后日计划
plans
.
add
(
new
Plan
(
"phone"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"pm"
,
6
,
null
));
//创建后日计划
...
@@ -398,11 +400,13 @@ public class CheckTask implements Authorization {
...
@@ -398,11 +400,13 @@ public class CheckTask implements Authorization {
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_saveCheckRecord
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_saveCheckRecord
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
//快速盘点
plans
.
clear
();
plans
.
clear
();
sleep
(
2000
);
sleep
(
2000
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论2"
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论2"
);
params
.
put
(
"strategyId"
,
strategyId
);
params
.
put
(
"strategyId"
,
strategyId
);
calendar
.
add
(
calendar
.
DATE
,-
1
);
calendar
.
add
(
calendar
.
DATE
,-
1
);
params
.
put
(
"from"
,
2
);
plans
.
add
(
new
Plan
(
"phone"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"pm"
,
6
,
null
));
//创建明日计划
plans
.
add
(
new
Plan
(
"phone"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"pm"
,
6
,
null
));
//创建明日计划
plans
.
add
(
new
Plan
(
"meet"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"am"
,
6
,
(
int
)
sceneId
));
plans
.
add
(
new
Plan
(
"meet"
,
simpleDateFormat
.
format
(
calendar
.
getTime
()),
"am"
,
6
,
(
int
)
sceneId
));
params
.
put
(
"plans"
,
plans
);
params
.
put
(
"plans"
,
plans
);
...
@@ -410,6 +414,7 @@ public class CheckTask implements Authorization {
...
@@ -410,6 +414,7 @@ public class CheckTask implements Authorization {
plans
.
clear
();
plans
.
clear
();
sleep
(
2000
);
sleep
(
2000
);
params
.
put
(
"from"
,
2
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论"
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论"
);
params
.
put
(
"strategyId"
,
strategyId
);
params
.
put
(
"strategyId"
,
strategyId
);
params
.
put
(
"plans"
,
plans
);
params
.
put
(
"plans"
,
plans
);
...
@@ -730,6 +735,25 @@ public class CheckTask implements Authorization {
...
@@ -730,6 +735,25 @@ public class CheckTask implements Authorization {
checChart
(
6
,
0
,
0
);
checChart
(
6
,
0
,
0
);
}
}
@Test
(
description
=
"获取客户类型的枚举值"
,
priority
=
71
)
public
void
获取客户类型的枚举值
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_check_custTypeList
);
String
size
=
response
.
jsonPath
().
getString
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
6
,
network
.
message
(
BasicConfig
.
WORK_check_custTypeList
,
"客户分类枚举值错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"导出盘点列表客户"
,
priority
=
72
)
public
void
导出盘点列表客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化"
);
params
.
put
(
"todayCheck"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
50
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_check_export
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_check_export
,
"导出客户失败"
,
response
.
body
().
asString
()));
}
//获取销售个人工作计划
//获取销售个人工作计划
public
static
void
getSellerPlan
(
int
amFinish
,
int
amTotal
,
int
pmFinish
,
int
pmTotal
,
int
pStatus
,
int
unFinishTypes
){
public
static
void
getSellerPlan
(
int
amFinish
,
int
amTotal
,
int
pmFinish
,
int
pmTotal
,
int
pStatus
,
int
unFinishTypes
){
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
80339e5e
...
@@ -941,7 +941,12 @@ public class Work implements Authorization {
...
@@ -941,7 +941,12 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
fromAssignTypes
,
2
,
network
.
message
(
BasicConfig
.
WORK_warnList
,
"即将被改派原因非2个"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
fromAssignTypes
,
2
,
network
.
message
(
BasicConfig
.
WORK_warnList
,
"即将被改派原因非2个"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查看异常面访告警客户"
,
priority
=
73
)
public
void
查看异常面访告警客户
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_notifyWarning
);
int
data
=
response
.
jsonPath
().
getInt
(
"data"
);
Assert
.
assertTrue
(
data
>
0
,
network
.
message
(
BasicConfig
.
WORK_notifyWarning
,
"即将被改派客户不为1"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
88
)
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
88
)
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
80339e5e
...
@@ -237,6 +237,7 @@ public class BasicConfig {
...
@@ -237,6 +237,7 @@ public class BasicConfig {
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_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_calendarExport
=
WORK_HOST
+
"/kjy/oto/manager/cust/calendar/export"
;
public
static
final
String
WORK_abnormalNum
=
WORK_HOST
+
"/kjy/oto/manager/customer/custCheck/interview/abnormal/num"
;
//*************************客户报告审批*******************************
//*************************客户报告审批*******************************
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"
;
...
@@ -275,6 +276,8 @@ public class BasicConfig {
...
@@ -275,6 +276,8 @@ public class BasicConfig {
public
static
final
String
WORK_scheme_savePlanFile
=
WORK_HOST
+
"/kjy/oto/manager/customer/planFile/save"
;
public
static
final
String
WORK_scheme_savePlanFile
=
WORK_HOST
+
"/kjy/oto/manager/customer/planFile/save"
;
public
static
final
String
WORK_scheme_saveKyc
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/save"
;
public
static
final
String
WORK_scheme_saveKyc
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/save"
;
public
static
final
String
WORK_check_custChart
=
WORK_HOST
+
"/kjy/oto/manager/customer/custCheck/custChart"
;
public
static
final
String
WORK_check_custChart
=
WORK_HOST
+
"/kjy/oto/manager/customer/custCheck/custChart"
;
public
static
final
String
WORK_check_custTypeList
=
WORK_HOST
+
"/kjy/oto/manager/customer/custCheck/custTypeList"
;
public
static
final
String
WORK_check_export
=
WORK_HOST
+
"/kjy/oto/manager/customer/custCheck/export"
;
//*************************会话管理***************************
//*************************会话管理***************************
public
static
final
String
WORK_wxList
=
WORK_HOST
+
"/kjy/oto/manager/wx/conversation/list"
;
public
static
final
String
WORK_wxList
=
WORK_HOST
+
"/kjy/oto/manager/wx/conversation/list"
;
...
...
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