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
fd56f23c
Commit
fd56f23c
authored
Nov 09, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约任务的接口用例
parent
a8de16dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
22 deletions
+30
-22
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+1
-16
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+26
-4
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+3
-2
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
fd56f23c
...
@@ -578,19 +578,6 @@ public class Phone implements Authorization {
...
@@ -578,19 +578,6 @@ public class Phone implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewFeedback
,
"上传面访失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewFeedback
,
"上传面访失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"销售任务_销售完成任务"
,
priority
=
45
)
public
void
销售任务
_
销售完成任务
(){
otoTakerAuth
();
//销售完成面访,跟进时间更新,联系新客户任务完成
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"taskConfId"
,
4
);
//任务配置id,4:联系未跟进的客户,5:复拨未接通的客户,6:超过N天未跟进的客户
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_taskList
);
int
finishCustNum
=
response
.
jsonPath
().
getInt
(
"data.finishCustNum"
);
Assert
.
assertTrue
(
finishCustNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_taskList
,
"已完成数量记录错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看我的预约订单列表"
,
priority
=
46
)
@Test
(
description
=
"查看我的预约订单列表"
,
priority
=
46
)
public
void
查看我的预约订单列表
(){
public
void
查看我的预约订单列表
(){
agent2Tku
();
agent2Tku
();
...
@@ -699,12 +686,10 @@ public class Phone implements Authorization {
...
@@ -699,12 +686,10 @@ public class Phone implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
}
}
// for(int i =
6549;i<6560
;i++){
// for(int i =
4559;i<4984
;i++){
// HashMap<String,Object> params = new HashMap<>();
// HashMap<String,Object> params = new HashMap<>();
// params.put("custId", i);
// params.put("custId", i);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// boolean data = response.jsonPath().getBoolean("data");
// Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
//
//
// }
// }
}
}
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
fd56f23c
...
@@ -1419,9 +1419,7 @@ public class Work implements Authorization {
...
@@ -1419,9 +1419,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
leadertotalCoefficient
,
takerCoefficient
,
network
.
message
(
params
,
BasicConfig
.
WORK_coefficient_detail
,
"邀约人系数未增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
leadertotalCoefficient
,
takerCoefficient
,
network
.
message
(
params
,
BasicConfig
.
WORK_coefficient_detail
,
"邀约人系数未增加"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"退回邀约组"
,
priority
=
102
)
@Test
(
description
=
"退回邀约组"
,
priority
=
103
)
public
void
退回邀约组
(){
public
void
退回邀约组
(){
//退回邀约组
//退回邀约组
otoManagerAuth
();
otoManagerAuth
();
...
@@ -1444,7 +1442,7 @@ public class Work implements Authorization {
...
@@ -1444,7 +1442,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
sellertotalCoefficient
,
coefficient
.
get
(
"totalCoefficient"
),
network
.
message
(
params
,
BasicConfig
.
WORK_coefficient_detail
,
"邀约人系数变化"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sellertotalCoefficient
,
coefficient
.
get
(
"totalCoefficient"
),
network
.
message
(
params
,
BasicConfig
.
WORK_coefficient_detail
,
"邀约人系数变化"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"立即分配邀约客户"
,
priority
=
10
4
)
@Test
(
description
=
"立即分配邀约客户"
,
priority
=
10
3
)
public
void
立即分配邀约客户
(){
public
void
立即分配邀约客户
(){
updateInvite
(
0
,
now
+
3600000
);
updateInvite
(
0
,
now
+
3600000
);
updateInvite
(
1
,
now
+
3600000
);
updateInvite
(
1
,
now
+
3600000
);
...
@@ -1480,6 +1478,24 @@ public class Work implements Authorization {
...
@@ -1480,6 +1478,24 @@ public class Work implements Authorization {
}
}
@Test
(
description
=
"邀约完成任务"
,
priority
=
105
)
public
void
邀约完成任务
(){
otoInviterAuth
();
//notDeal -未接通,dealing-已接通
callling
(
"15136361301"
,
"notDeal"
);
callling
(
"15136361301"
,
"notDeal"
);
callling
(
"15136361302"
,
"notDeal"
);
callling
(
"15136361303"
,
"dealing"
);
//销售完成面访,跟进时间更新,联系新客户任务完成
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"taskConfId"
,
7
);
//任务配置id,4:联系未跟进的客户,5:复拨未接通的客户,6:超过N天未跟进的客户
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_taskList
);
int
finishCustNum
=
response
.
jsonPath
().
getInt
(
"data.finishCustNum"
);
Assert
.
assertEquals
(
finishCustNum
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_taskList
,
"已完成数量记录错误"
,
response
.
body
().
asString
()));
}
//修改客户的约面情况
//修改客户的约面情况
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
@@ -1646,4 +1662,10 @@ public class Work implements Authorization {
...
@@ -1646,4 +1662,10 @@ public class Work implements Authorization {
}
}
}
}
public
void
callling
(
String
custPhone
,
String
callState
){
//销售完成面访,跟进时间更新,联系新客户任务完成
String
CALL_URL
=
CALL_BACK_1
+
custPhone
+
CALL_BACK_2
+
callState
+
CALL_BACK_3
;
Response
response
=
network
.
getResponse
(
CALL_URL
);
}
}
}
src/test/java/com/oto/config/BasicConfig.java
View file @
fd56f23c
...
@@ -255,8 +255,9 @@ public class BasicConfig {
...
@@ -255,8 +255,9 @@ public class BasicConfig {
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_delCust
=
WORK_HOST
+
"/kjy/oto/auto/test/delCust"
;
public
static
final
String
WORK_delCust
=
WORK_HOST
+
"/kjy/oto/auto/test/delCust"
;
public
static
final
String
WORK_delPubFormRecord
=
WORK_HOST
+
"/kjy/oto/auto/test/delPubFormRecord"
;
public
static
final
String
WORK_delPubFormRecord
=
WORK_HOST
+
"/kjy/oto/auto/test/delPubFormRecord"
;
public
static
final
String
CALL_BACK_1
=
"https://kjj-work.duibatest.com.cn/kjy/oto/notify/record?CallSheetID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallType=normal&CallNo="
;
public
static
final
String
CALL_BACK_1
=
WORK_HOST
+
"/kjy/oto/notify/record?CallSheetID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallType=dialout&CallNo=18248405155&CalledNo="
;
public
static
final
String
CALL_BACK_2
=
"&CalledNo=18248405155&Ring=2022-11-07%2013:57:06&RingingTime=&Begin=2022-11-07%2013:57:14&End=2022-11-07%2013:57:28&CallTimeLength=0&State=notDeal&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07%2013:57:06"
;
public
static
final
String
CALL_BACK_2
=
"&Ring=2022-11-07%2013:57:06&RingingTime=&Begin=2022-11-07%2013:57:14&End=2022-11-07%2013:57:28&CallTimeLength=0&State="
;
public
static
final
String
CALL_BACK_3
=
"&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07%2013:57:06"
;
//*************** 人管系统 ***************
//*************** 人管系统 ***************
public
static
final
String
JiuJiuBao_login
=
JiuJiuBao_HOST
+
"/oto/manager/login"
;
public
static
final
String
JiuJiuBao_login
=
JiuJiuBao_HOST
+
"/oto/manager/login"
;
...
...
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