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
ade84012
Commit
ade84012
authored
Nov 03, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加总监盘点的接口用例
parent
bb4ec241
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
219 additions
and
147 deletions
+219
-147
Manager.java
src/test/java/com/oto/cases/otoseller/Manager.java
+26
-0
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+36
-19
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+145
-120
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+11
-7
NetworkUtils.java
src/test/java/com/oto/utils/NetworkUtils.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/Manager.java
View file @
ade84012
...
...
@@ -867,6 +867,32 @@ public class Manager implements Authorization {
}
@Test
(
description
=
"修改客户的产品组"
,
priority
=
56
)
public
void
修改客户产品组
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custids
.
get
(
0
));
params
.
put
(
"companyIds"
,
new
int
[]{
5
,
6
});
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MANAGER_customer_update
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_customer_update
,
"修改客户的产品组失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"phoneNum"
,
"15136361302"
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_oto_customerList
);
int
companySize
=
response
.
jsonPath
().
getInt
(
"data.list[0].companyIds.size()"
);
Assert
.
assertEquals
(
companySize
,
2
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户的产品组错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询所有产品列表"
,
priority
=
57
)
public
void
查询所有产品列表
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
MANAGER_product_listAll
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
MANAGER_product_listAll
,
"查看产品列表不为空"
,
response
.
body
().
asString
()));
}
public
int
searchCustName
(
String
custName
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
ade84012
...
...
@@ -105,9 +105,9 @@ public class Phone implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
Work
.
sceneId
);
params
.
put
(
"confUsable"
,
1
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE
_updateStatus
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK
_updateStatus
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_updateStatus
,
"关闭见面场景失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK
_updateStatus
,
"关闭见面场景失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
cust_id
);
...
...
@@ -304,6 +304,12 @@ public class Phone implements Authorization {
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_invire
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_invire
,
"上传面访记录>=1"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail_v2
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.otoCustInfo4Manage.commitPlanFlag"
);
Assert
.
assertEquals
(
commitPlanFlag
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail_v2
,
"是否提交计划书非否"
,
response
.
body
().
asString
()));
//查看约面日历
otoManagerAuth
();
Work
.
getCalendarlist
(
Work
.
today
,
5
,
"自动化激活用户"
,
"勿动-自动化测试邀约"
);
...
...
@@ -346,6 +352,13 @@ public class Phone implements Authorization {
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_interviewAuditReject
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_interviewAuditReject
,
"驳回审批失败"
,
response
.
body
().
asString
()));
otoTakerAuth
();
params
.
clear
();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail_v2
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.otoCustInfo4Manage.commitPlanFlag"
);
Assert
.
assertEquals
(
commitPlanFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail_v2
,
"是否提交计划书非否"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看我的面访状态更新为已失效"
,
priority
=
26
)
...
...
@@ -443,6 +456,13 @@ public class Phone implements Authorization {
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_interviewAuditPass
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_interviewAuditPass
,
"通过审批失败"
,
response
.
body
().
asString
()));
otoTakerAuth
();
params
.
clear
();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail_v2
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.otoCustInfo4Manage.commitPlanFlag"
);
Assert
.
assertEquals
(
commitPlanFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail_v2
,
"是否提交计划书非是"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询专家列表"
,
priority
=
32
)
...
...
@@ -587,7 +607,7 @@ public class Phone implements Authorization {
otoManagerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
Work
.
sceneId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE
_delete
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK
_delete
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除见面场景失败"
,
response
.
body
().
asString
()));
}
...
...
@@ -606,9 +626,9 @@ public class Phone implements Authorization {
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_paper_getCustomers
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"
订单状态未更新为已参观
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"
日报列表客户为空
"
,
response
.
body
().
asString
()));
String
label
=
response
.
jsonPath
().
getString
(
"data.list[0].label"
);
Assert
.
assertEquals
(
label
,
"
今日联系"
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"日报提交状态非0:未提交
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
label
,
"
"
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"客户非今日见面标签
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"提交日报"
,
priority
=
50
)
...
...
@@ -639,18 +659,6 @@ public class Phone implements Authorization {
interviewdetail
(
interviewIds
.
get
(
2
),
1
,
0
,
""
,
0
,
0
,
null
);
}
@Test
(
description
=
"查询新客户详细信息"
,
priority
=
54
)
public
void
查询新客户详细信息
(){
otoTakerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.custInfo.addWxStatus"
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.custPhaseVo.commitPlanFlag"
);
Assert
.
assertEquals
(
addWxStatus
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"加微状态不为3:上报已添加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"是否提交计划书不为否"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"邀约仅能查看自己创建的面访"
,
priority
=
55
)
public
void
邀约仅能查看自己创建的面访
(){
otoInviterTku
();
...
...
@@ -662,7 +670,16 @@ public class Phone implements Authorization {
Assert
.
assertEquals
(
size
,
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewList
,
"邀约面访列表不为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"专家能查看关联自己的面访"
,
priority
=
56
)
@Test
(
description
=
"邀约查看历史备注包含面访备注"
,
priority
=
56
)
public
void
邀约查看历史备注包含面访备注
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_historyRecord
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_historyRecord
,
"邀约面访列表不为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"专家能查看关联自己的面访"
,
priority
=
57
)
public
void
专家能查看关联自己的面访
(){
otoEpertTku
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
@@ -676,7 +693,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
for
(
int
i
=
(
int
)
id
;
i
<
id
+
5
;
i
++){
for
(
int
i
=
(
int
)
id
;
i
<
id
+
6
;
i
++){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
i
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delCust
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
ade84012
...
...
@@ -112,9 +112,9 @@ public class Work implements Authorization {
@Test
(
description
=
"公域引流_分配客户"
,
priority
=
5
)
public
void
公域引流
_
分配客户
(){
assignSeller
(
custId
,
23
,
false
);
assignSeller
(
custId
,
23
,
false
,
1
);
assignSeller
(
custId
,
INVITE_ID
,
true
);
assignSeller
(
custId
,
INVITE_ID
,
true
,
1
);
// for(int i = 6104;i<6204;i++){
// assignSeller(custId,INVITE_ID,true);
...
...
@@ -169,8 +169,7 @@ public class Work implements Authorization {
public
void
全部客户列表
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"custClassifyType"
,
1
);
params
.
put
(
"pageSize"
,
50
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_customerList
);
int
customerId
=
response
.
jsonPath
().
getInt
(
"data.list[0].custId"
);
Assert
.
assertEquals
(
customerId
,
custId
,
network
.
message
(
params
,
BasicConfig
.
WORK_customerList
,
"需要联系列表中首位客户非新增客户"
,
response
.
body
().
asString
()));
...
...
@@ -214,7 +213,7 @@ public class Work implements Authorization {
int
callTimes
=
response
.
jsonPath
().
getInt
(
"data.callTimes"
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
int
custHead
=
response
.
jsonPath
().
getInt
(
"data.custHead"
);
String
custHead
=
response
.
jsonPath
().
getString
(
"data.custHead"
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.custDescription"
);
String
expertRemark
=
response
.
jsonPath
().
getString
(
"data.expertRemark"
);
Assert
.
assertEquals
(
allCallTimes
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
...
...
@@ -223,7 +222,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
custStar
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户星标不为否"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
addWxStatus
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的加微状态不是未添加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custHead
,
"https://yun.kjjcrm.com/kjy/media/file/20221018/c9c37c521ddfd949614f1b78b92a1001.png?x-oss-process=image/quality,q_80"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户头像非默认头像"
,
response
.
body
().
asString
()));
Assert
.
assert
Null
(
custDescription
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的备注不为null"
,
response
.
body
().
asString
()));
Assert
.
assert
Equals
(
custDescription
,
""
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的备注不为null"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
expertRemark
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的专家评价不为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -298,7 +297,7 @@ public class Work implements Authorization {
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
custHead
=
response
.
jsonPath
().
getInt
(
"data.custHead"
);
String
custHead
=
response
.
jsonPath
().
getString
(
"data.custHead"
);
Assert
.
assertEquals
(
custHead
,
"//yun.dui88.com/kjy/image/20221021/bd2990ed27174e0389b75c06a9bcae8c.jpg"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户头像未更新"
,
response
.
body
().
asString
()));
}
...
...
@@ -478,9 +477,9 @@ public class Work implements Authorization {
params
.
put
(
"companyIds"
,
new
int
[]{
5
});
params
.
put
(
"sceneName"
,
"勿动-自动化场景"
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE
_custConfSave
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK
_custConfSave
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_custConfSave
,
"新增见面场景失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK
_custConfSave
,
"新增见面场景失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看见面场景列表"
,
priority
=
32
)
...
...
@@ -488,13 +487,13 @@ public class Work implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE
_custConfList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK
_custConfList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
int
confUsable
=
response
.
jsonPath
().
getInt
(
"data.list[0].confUsable"
);
String
sceneName
=
response
.
jsonPath
().
getString
(
"data.list[0].sceneName"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_custConfList
,
"查看列表场景不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsable
,
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_custConfList
,
"查看见面场景非0"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sceneName
,
"勿动-自动化场景"
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_custConfList
,
"查看见面名称错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK
_custConfList
,
"查看列表场景不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsable
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK
_custConfList
,
"查看见面场景非0"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sceneName
,
"勿动-自动化场景"
,
network
.
message
(
params
,
BasicConfig
.
WORK
_custConfList
,
"查看见面名称错误"
,
response
.
body
().
asString
()));
sceneId
=
response
.
jsonPath
().
getLong
(
"data.list[0].id"
);
}
...
...
@@ -509,9 +508,9 @@ public class Work implements Authorization {
params
.
put
(
"companyIds"
,
companyIds
);
params
.
put
(
"sceneName"
,
"勿动-自动化面访场景"
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE
_custConfSave
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK
_custConfSave
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
PHONE
_custConfSave
,
"修改自动化场景失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK
_custConfSave
,
"修改自动化场景失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改客户基础信息"
,
priority
=
34
)
...
...
@@ -571,35 +570,58 @@ public class Work implements Authorization {
params
.
put
(
"addWxStatus"
,
3
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"修改客户
备注
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"修改客户
加微状态
失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.addWxStatus"
);
Assert
.
assertEquals
(
addWxStatus
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_
header
,
"客户的备注未更新
"
,
response
.
body
().
asString
()));
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.addWxStatus"
);
Assert
.
assertEquals
(
addWxStatus
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_
updateAddWxStatus
,
"修改客户加微状态失败
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"
创建转介绍客户"
,
priority
=
36
)
public
void
创建转介绍客户
(){
@Test
(
description
=
"
编辑客户姓名"
,
priority
=
37
)
public
void
编辑客户姓名
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"
addWxStatus"
,
3
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_update
AddWxStatus
);
params
.
put
(
"
custName"
,
"自动化测试用户"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_update
CustName
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"修改客户备注失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateCustName
,
"修改客户姓名失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"创建转介绍客户"
,
priority
=
38
)
public
void
创建转介绍客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"addType"
,
1
);
params
.
put
(
"introducerId"
,
custId
);
params
.
put
(
"custPhoneNum"
,
"15136361306"
);
params
.
put
(
"custName"
,
"自动化测试客户6"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_introduce_save
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_introduce_save
,
"创建转介绍客户失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
50
);
params
.
put
(
"custName"
,
"自动化测试客户6"
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_customerList
);
int
customerId
=
response
.
jsonPath
().
getInt
(
"data.list[0].custId"
);
params
.
clear
();
params
.
put
(
"custId"
,
customerId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.addWxStatus"
);
Assert
.
assertEquals
(
addWxStatus
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的备注未更新"
,
response
.
body
().
asString
()));
String
introducer
=
response
.
jsonPath
().
getString
(
"data.introducer"
);
String
inviteName
=
response
.
jsonPath
().
getString
(
"data.inviteName"
);
String
expertName
=
response
.
jsonPath
().
getString
(
"data.expertName"
);
String
sellerName
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
Assert
.
assertEquals
(
introducer
,
"自动化测试用户"
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"转介绍客户的介绍人错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
inviteName
,
"勿动-自动化测试邀约"
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"转介绍客户的当前邀约与介绍人不一致"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
expertName
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"转介绍客户的当前销售与介绍人不一致"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
sellerName
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateAddWxStatus
,
"转介绍客户的当前专家与介绍人不一致"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看客户动态"
,
priority
=
39
)
public
void
查看客户动态
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
@@ -616,7 +638,7 @@ public class Work implements Authorization {
params
.
put
(
"custName"
,
"自动化"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_fuzzyCustName
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_fuzzyCustName
,
"客户
动态条数错误
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_fuzzyCustName
,
"客户
查找结果为空
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
41
)
...
...
@@ -883,7 +905,7 @@ public class Work implements Authorization {
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticHeader
);
int
totalNum
=
response
.
jsonPath
().
getInt
(
"data.totalNum"
);
int
num
=
header
.
get
(
"totalNum"
);
Assert
.
assertEquals
(
totalNum
,
num
-
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户总数未更新"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
totalNum
,
num
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户总数未更新"
,
response
.
body
().
asString
()));
//查询销售总系数
response
=
network
.
getResponse
(
BasicConfig
.
WORK_coefficient_detail
);
...
...
@@ -942,7 +964,7 @@ public class Work implements Authorization {
Response
response
=
network
.
getResponse
(
BasicConfig
.
WORK_staticHeader
);
int
totalNum
=
response
.
jsonPath
().
getInt
(
"data.totalNum"
);
int
num
=
header
.
get
(
"totalNum"
);
Assert
.
assertEquals
(
totalNum
,
num
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户总数未更新"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
totalNum
,
num
+
1
,
network
.
message
(
BasicConfig
.
WORK_staticChart
,
"客户总数未更新"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询认领客户评价不清空"
,
priority
=
71
)
...
...
@@ -978,7 +1000,7 @@ public class Work implements Authorization {
@Test
(
description
=
"销售间客户动态取消隔离"
,
priority
=
74
)
public
void
销售间客户动态取消隔离
(){
//重新分配邀约
assignSeller
(
custId
,
320
,
true
);
assignSeller
(
custId
,
320
,
true
,
1
);
//查看客户动态
otoInviterAuth2
();
...
...
@@ -1002,7 +1024,7 @@ public class Work implements Authorization {
@Test
(
description
=
"跟进中不可重新激活"
,
priority
=
76
)
public
void
跟进中不可重新激活
(){
//还原
assignSeller
(
custId
,
INVITE_ID
,
true
);
assignSeller
(
custId
,
INVITE_ID
,
true
,
1
);
//重新填写表单
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
@@ -1190,7 +1212,44 @@ public class Work implements Authorization {
Assert
.
assertTrue
(
listSize
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_taskDetailsList
,
"待完成客户数统计错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看我的预约订单列表"
,
priority
=
90
)
@Test
(
description
=
"销售标记客户星标成功"
,
priority
=
90
)
public
void
销售标记客户星标成功
(){
otoInviterAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_star
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateExpertRemark
,
"标记客户星标失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"编辑客户专家评价"
,
priority
=
92
)
public
void
编辑客户专家评价
(){
assignSeller
(
custId
,
EXPERT_ID
,
true
,
3
);
otoExpertAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"expertRemark"
,
"专家的评价"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_updateExpertRemark
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateExpertRemark
,
"修改专家评价失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.expertRemark"
);
Assert
.
assertEquals
(
custDescription
,
"专家的评价"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看我的预约订单列表"
,
priority
=
93
)
public
void
查看我的预约订单列表
(){
agent2Tku
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
@@ -1204,39 +1263,63 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误:非待参观"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"关闭见面场景状态"
,
priority
=
94
)
public
void
关闭见面场景状态
(){
@Test
(
description
=
"提交客户盘点"
,
priority
=
94
)
public
void
提交客户盘点
(){
otoManagerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
sceneId
);
params
.
put
(
"confUsable"
,
0
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE_updateStatus
);
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论1"
);
params
.
put
(
"checkNext"
,
""
);
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_saveCheckRecord
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
PHONE_updateStatus
,
"关闭见面场景失败"
,
response
.
body
().
asString
()));
}
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_saveCheckRecord
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
params
.
put
(
"checkConclusion"
,
""
);
params
.
put
(
"checkNext"
,
"下一步干什么2"
);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_saveCheckRecord
);
@Test
(
description
=
"修改客户的产品组"
,
priority
=
95
)
public
void
修改客户产品组
(){
params
.
put
(
"checkConclusion"
,
"客户盘点后的结论"
);
params
.
put
(
"checkNext"
,
"下一步干什么"
);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_saveCheckRecord
);
}
@Test
(
description
=
"查看盘点列表"
,
priority
=
95
)
public
void
查看盘点列表
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"companyIds"
,
new
int
[]{
5
,
6
});
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MANAGER_customer_update
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_customer_update
,
"修改客户的产品组失败"
,
response
.
body
().
asString
()));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_checkList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_checkList
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
String
checkConclusion
=
response
.
jsonPath
().
getString
(
"data[0].checkConclusion"
);
String
checkNext
=
response
.
jsonPath
().
getString
(
"data[0].checkNext"
);
Assert
.
assertEquals
(
checkConclusion
,
"客户盘点后的结论"
,
network
.
message
(
params
,
BasicConfig
.
WORK_checkList
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
checkNext
,
"下一步干什么"
,
network
.
message
(
params
,
BasicConfig
.
WORK_checkList
,
"提交客户盘点失败"
,
response
.
body
().
asString
()));
}
params
.
clear
();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"phoneNum"
,
"15136361301"
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_oto_customerList
);
int
companySize
=
response
.
jsonPath
().
getInt
(
"data.list[0].companyIds.size()"
);
Assert
.
assertEquals
(
companySize
,
2
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户的产品组错误"
,
response
.
body
().
asString
()));
@Test
(
description
=
"查看盘点客户列表"
,
priority
=
96
)
public
void
查看盘点客户列表
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"todayCheck"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
50
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_checkCustList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_checkCustList
,
"今日盘点客户不包含刚刚已经盘点的客户"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"关闭见面场景状态"
,
priority
=
97
)
public
void
关闭见面场景状态
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
sceneId
);
params
.
put
(
"confUsable"
,
0
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_updateStatus
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateStatus
,
"关闭见面场景失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"放弃客户后重新激活进入预备池"
,
priority
=
9
5
)
@Test
(
description
=
"放弃客户后重新激活进入预备池"
,
priority
=
9
8
)
public
void
放弃客户后重新激活进入预备池
(){
otoInviterAuth
();
//放弃客户_没钱
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
...
...
@@ -1260,27 +1343,18 @@ public class Work implements Authorization {
int
companySize
=
response
.
jsonPath
().
getInt
(
"data.list[0].companyIds.size()"
);
int
custStatus
=
response
.
jsonPath
().
getInt
(
"data.list[0].custStatus"
);
Assert
.
assertEquals
(
custName
,
"自动化激活用户"
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户姓名与填单时错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
companySize
,
4
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户的产品组错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
companySize
,
3
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户的产品组错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custStatus
,
0
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_customerList
,
"客户的产品组错误"
,
response
.
body
().
asString
()));
//分配给邀约
ssoLogin
();
sleep
(
5000
);
assignSeller
(
custId
,
INVITE_ID
,
true
);
}
@Test
(
description
=
"查询所有产品列表"
,
priority
=
97
)
public
void
查询所有产品列表
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
MANAGER_product_listAll
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
MANAGER_product_listAll
,
"查看产品列表不为空"
,
response
.
body
().
asString
()));
assignSeller
(
custId
,
INVITE_ID
,
true
,
1
);
}
@Test
(
description
=
"CRM查询场景专家列表"
,
priority
=
99
)
public
void
CRM
查询场景专家列表
(){
oto
Invit
erAuth
();
oto
Manag
erAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"recordId"
,
recordItem
.
recordId
);
params
.
put
(
"expertFlag"
,
true
);
...
...
@@ -1301,6 +1375,7 @@ public class Work implements Authorization {
@Test
(
description
=
"预分配客户"
,
priority
=
101
)
public
void
预分配客户
(){
otoInviterAuth
();
coefficient
.
put
(
"totalCoefficient"
,
getSellertotalCoefficient
());
otoTakerAuth
();
...
...
@@ -1388,56 +1463,6 @@ public class Work implements Authorization {
takerCoefficient
=
leadertotalCoefficient
;
}
@Test
(
description
=
"销售标记客户星标成功"
,
priority
=
105
)
public
void
销售标记客户星标成功
(){
otoTakerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_star
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateExpertRemark
,
"标记客户星标失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"销售取消客户星标失败"
,
priority
=
105
)
public
void
销售取消客户星标失败
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_star
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertFalse
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateExpertRemark
,
"销售取消客户星标成功"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"编辑客户专家评价"
,
priority
=
107
)
public
void
编辑客户专家评价
(){
otoExpertAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"expertRemark"
,
"专家的评价"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_updateExpertRemark
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateExpertRemark
,
"修改专家评价失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.custDescription"
);
Assert
.
assertEquals
(
custDescription
,
"客户的备注"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
//修改客户的约面情况
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
...
...
@@ -1571,10 +1596,10 @@ public class Work implements Authorization {
return
totalCoefficient
;
}
public
void
assignSeller
(
int
customerId
,
int
sellerId
,
boolean
result
)
{
public
void
assignSeller
(
int
customerId
,
int
sellerId
,
boolean
result
,
int
assignType
)
{
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"customerId"
,
customerId
);
params
.
put
(
"assignType"
,
1
);
params
.
put
(
"assignType"
,
assignType
);
params
.
put
(
"sellerId"
,
sellerId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MANAGER_oto_assignSeller
);
if
(
result
){
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
ade84012
...
...
@@ -43,8 +43,8 @@ public class BasicConfig {
/*******OTO销售工作台*********/
public
static
final
String
OTO_INVITER_TKU
=
"4yrzAfNog7WE527NKCNmqBqph48N7mWR9J49QYysZmKYC3DF97hQFap7RphynF3GFXLhp7GFZ35mc"
;
public
static
final
String
OTO_TAKER_TKU
=
"7Fcuh7FWTsTHSqd2
BcxmPv9SXECJUK6FddtgLSE1ugtvw4pYHcyHV7StcfozfnfchPdCkpFErSUP3kgVyF58YPpp9B8BdrksYwChC8mBXn6pQ8GxCb5AJpZreWsh8wxX6phe6zHs2RvsKvd3jnq1kyQA
"
;
public
static
final
String
OTO_EXPERT_TKU
=
"7Fcuh7FWTsTHSqd2
BcxmPuvuvvAePiLgYnPp2yhMkiydMAt2nVg96imnjRqrqVAH3cmNGvDJURv32AVK2yLe2x7Lf6AHBynU8eM24vGtyweFzdxys5K12eHXDwbkxrb2kvT1n4iw91cxjxXqpVSRffbo
"
;
public
static
final
String
OTO_TAKER_TKU
=
"7Fcuh7FWTsTHSqd2
be68YiRKvNhscfrWwNHFvuMwkumtuhF4AotfJLRbsAVpjxzt4G9E5r6M2nvgrcqiP5xBvQDLDQjT5eB9rqBVB1eonEqkmd1gjktdoWV8GLPAK8S3nk7yaHUevCWZWaZhJ8YkQV6M
"
;
public
static
final
String
OTO_EXPERT_TKU
=
"7Fcuh7FWTsTHSqd2
be68YiSEoRqh5beyhXNsJahtdNENwqw57Q8TPPkJkUoE8pP57iQhpfhq2LnsJVpBfdtSt2j969eSDnpxUd7WGNhyZDL8gSFA6ecKSbZSYh29SPrUQXhHQihrbPNDfLzrDbku1AM4
"
;
// *************** 客集集域名 ***************
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
public
static
final
String
SSO_HOST
=
"https://sso.duibatest.com.cn"
;
...
...
@@ -156,7 +156,6 @@ public class BasicConfig {
public
static
final
String
WORK_tag
=
WORK_HOST
+
"/kjy/oto/manager/customer/tag"
;
public
static
final
String
WORK_order
=
WORK_HOST
+
"/kjy/oto/manager/customer/order"
;
public
static
final
String
WORK_feedback
=
WORK_HOST
+
"/kjy/oto/manager/customer/feedback"
;
public
static
final
String
WORK_edit
=
WORK_HOST
+
"/kjy/oto/manager/customer/edit"
;
public
static
final
String
WORK_operation
=
WORK_HOST
+
"/kjy/oto/manager/customer/log/operation"
;
public
static
final
String
WORK_fuzzyCustName
=
WORK_HOST
+
"/kjy/oto/manager/customer/fuzzy/custName"
;
public
static
final
String
WORK_call
=
WORK_HOST
+
"/kjy/oto/manager/customer/call"
;
...
...
@@ -202,6 +201,15 @@ public class BasicConfig {
public
static
final
String
WORK_updateExpertRemark
=
WORK_HOST
+
"/kjy/oto/manager/customer/updateExpertRemark"
;
public
static
final
String
WORK_updateAddWxStatus
=
WORK_HOST
+
"/kjy/oto/manager/customer/updateAddWxStatus"
;
public
static
final
String
WORK_introduce_save
=
WORK_HOST
+
"/kjy/oto/manager/customer/introduce/save"
;
public
static
final
String
WORK_updateCustName
=
WORK_HOST
+
"/kjy/oto/manager/customer/updateCustName"
;
public
static
final
String
WORK_custConfSave
=
WORK_HOST
+
"/kjy/oto/manager/custconf/save"
;
public
static
final
String
WORK_custConfList
=
WORK_HOST
+
"/kjy/oto/manager/custconf/list"
;
public
static
final
String
WORK_updateStatus
=
WORK_HOST
+
"/kjy/oto/manager/custconf/updateStatus"
;
public
static
final
String
WORK_delete
=
WORK_HOST
+
"/kjy/oto/manager/custconf/delete"
;
public
static
final
String
WORK_saveCheckRecord
=
WORK_HOST
+
"/kjy/oto/manager/customer/saveCheckRecord"
;
public
static
final
String
WORK_checkCustList
=
WORK_HOST
+
"/kjy/oto/manager/customer/check/custList"
;
public
static
final
String
WORK_checkList
=
WORK_HOST
+
"/kjy/oto/manager/customer/check/list"
;
public
static
final
String
WORK_historyRecord
=
WORK_HOST
+
"/kjy/oto/manager/customer/log/historyRecord"
;
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
@@ -210,12 +218,8 @@ public class BasicConfig {
public
static
final
String
WX_confirm
=
HOST
+
"/kjy/mp/oto/risk/invLetter/confirm"
;
//***********************销售工作台手机端**********************
public
static
final
String
PHONE_custConfSave
=
WORK_HOST
+
"/kjy/oto/manager/custconf/save"
;
public
static
final
String
PHONE_custConfList
=
WORK_HOST
+
"/kjy/oto/manager/custconf/list"
;
public
static
final
String
PHONE_updateStatus
=
WORK_HOST
+
"/kjy/oto/manager/custconf/updateStatus"
;
public
static
final
String
PHONE_getCustPhase
=
WORK_HOST
+
"/kjy/oto/manager/customer/getCustPhase"
;
public
static
final
String
PHONE_updateCustPhase
=
WORK_HOST
+
"/kjy/oto/manager/customer/updateCustPhase"
;
public
static
final
String
PHONE_delete
=
WORK_HOST
+
"/kjy/oto/manager/custconf/delete"
;
public
static
final
String
PHONE_customerList
=
PHONE_HOST
+
"/kjy/oto/manager/customer/list"
;
public
static
final
String
PHONE_customerSave
=
PHONE_HOST
+
"/kjy/oto/manager/customer/introduce/save"
;
public
static
final
String
PHONE_appointmentDetail
=
PHONE_HOST
+
"/kjy/oto/interview/appointment/detail"
;
...
...
src/test/java/com/oto/utils/NetworkUtils.java
View file @
ade84012
...
...
@@ -27,7 +27,7 @@ public class NetworkUtils {
//cookies中的tku
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
//多场景测试标志
agentCookies
.
put
(
"_duibaServiceGroupKey"
,
"miria-3
40
1"
);
agentCookies
.
put
(
"_duibaServiceGroupKey"
,
"miria-3
32
1"
);
//json类型的headers
agentHeaders
.
put
(
"Content-Type"
,
"application/json"
);
//二进制文件的headers
...
...
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