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
cf573c84
Commit
cf573c84
authored
Mar 08, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加方案进度
parent
d0f2bf24
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
227 additions
and
51 deletions
+227
-51
Authorization.java
src/test/java/com/oto/cases/admin/Authorization.java
+9
-9
CheckTask.java
src/test/java/com/oto/cases/otoseller/CheckTask.java
+162
-30
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+10
-6
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+10
-4
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+30
-2
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+6
-0
No files found.
src/test/java/com/oto/cases/admin/Authorization.java
View file @
cf573c84
...
...
@@ -15,47 +15,47 @@ public interface Authorization {
//oto销售工作台-邀约
default
void
otoInviterAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
DuCNeQkrq11MV7YDzQetPhb7yMBLLCD5FKnzJQEZzX7jf
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
GwruawqbVaPTWaSvzVXDhEbtDMVg6Y73PgyWCoRqEbAVW
"
);
}
//oto销售工作台-总监
default
void
otoLeaderAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
DuCNeQeNWCTY6pbw6dgTowRdyB9yx2vH9Ms1s2ZytDfvx
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
GwruawqbUrhodscqs9qejuqga4ou2yMiXFZGdWrLVc3Mw
"
);
}
//oto销售工作台-管理员
default
void
otoManagerAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
DuCNeQoDwhdxY78o9v7UciHLhaX3DFVMwLQ4Uf2qhY43R
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"2vXGWopQHdBw2ifGx4KaGu3o
GwruawqbUgv4FHxyLwXK7faKmz1mfC2L9P9ygTdYt4nf7
"
);
}
//oto销售工作台-备用邀约
default
void
otoInviterAuth2
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
Vjwh6sB2NhFTCLqa73T6ydgm2vDRuM3giYDdvUr21HgWYq
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
UjY4j3PVp7AUefDS6XLWZkTgnAcFKES52c6S2yEjUBnB3A
"
);
}
//oto销售工作台-带看销售
default
void
otoTakerAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwv
EnnavAmCTRjviosF96LJpxnM56edCVyxitFFHA3dGsMCRba
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwv
NUjY4j3yTUdzNq7jona9UPk2YKpGAEorzUNzkuJzg5e67mU
"
);
}
//oto销售工作台-专家
default
void
otoExpertAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwv
EnnavAmn1XJJP5h7NK6dZxn7af14AMnwtdM7XYhZYmJQjoB
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwv
NUjY4j3yvHhYdQzSRouz7mdzwUGKurBup1t66zc9HCnNnoV
"
);
}
//oto销售工作台-内勤
default
void
otoAssistAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
VjQg7ddk4UAPJduNEEUBStfPsn3BPxEccQaD8WUiVzNx3y
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
UjY4j3PQBzFLHr5xKiF5vn787yqGVtpnUo4yWayLgSj8AE
"
);
}
//oto销售工作台-区域总
default
void
otoAreaAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
VjQg7ddmpT5XefzaPg6vb8wgK44s4orSoDKaA23DggJTVf
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
UjY4j3PUL8QvscAYKpFE3LbMY7HBz8KdmcPKZ7G8XebPFR
"
);
}
//oto销售工作台-PM
default
void
otoPMAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
VjQg7ddoq9MJVFKvYaVp1z9n134RNirRVwZYqTQL6PLSVv
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRwvN
UjY4j3cVdcpuYrJL6cAszqvnhjut1r1J2h5fBPPiVwGygx
"
);
}
//久久保管理员-正常权限模式
default
void
jjbManagerAuth
()
{
...
...
src/test/java/com/oto/cases/otoseller/CheckTask.java
View file @
cf573c84
...
...
@@ -21,8 +21,9 @@ import static com.oto.utils.ThreadSleepUtils.sleep;
public
class
CheckTask
implements
Authorization
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
public
String
wxUserKey
;
//外部联系人ID
策略
public
String
wxUserKey
;
//外部联系人ID
public
static
String
planIds
;
//计划ids
public
static
int
kycId
;
//kycID
public
static
String
beginTime
;
//周一日期
public
static
int
tomorrowWeek
;
//明日周几
public
int
strategyId
;
//盘点策略ID
...
...
@@ -112,35 +113,6 @@ public class CheckTask implements Authorization {
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"标记客户星标失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上传KYC"
,
priority
=
7
)
public
void
上传
KYC
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"kycImages"
,
new
String
[]{
"//yun.dui88.com/kjy/image/20230113/523669708b5043f5bb4641252e125cb5.jpg"
,
"//yun.dui88.com/kjy/image/20230113/edd2e950a8aa4fb2a15ae7400b768fed.jpg"
});
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_kycUpload
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_kycUpload
,
"上传KYC失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上传客户方案"
,
priority
=
8
)
public
void
上传客户方案
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"planFiles"
,
new
String
[]{
"//yun.dui88.com/kjy/media/file/20230113/20230113145555/1.doc"
,
"//yun.dui88.com/kjy/media/file/20230131/20230131111229/4.ppt"
}
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_planFileUpload
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_planFileUpload
,
"上传客户方案失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"type"
,
2
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
kycImages
=
response
.
jsonPath
().
getInt
(
"data.kycImages.size()"
);
int
planFiles
=
response
.
jsonPath
().
getInt
(
"data.planFiles.size()"
);
Assert
.
assertEquals
(
kycImages
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"上传KYC为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
planFiles
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"上传客户方案为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"特定销售可见团队"
,
priority
=
9
)
public
void
特定销售可见团队
(){
otoManagerAuth
();
...
...
@@ -604,6 +576,106 @@ public class CheckTask implements Authorization {
Assert
.
assertEquals
(
size
,
5
,
network
.
message
(
params
,
BasicConfig
.
WORK_getPlanList
,
"总计划数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看新客户的方案进展模块"
,
priority
=
50
)
public
void
查看新客户的方案进展模块
(){
getSchemeNum
(
0
,
0
,
0
,
null
);
}
@Test
(
description
=
"上传KYC"
,
priority
=
51
)
public
void
上传
KYC
(){
//仅管理员/PM/内勤可上传kyc
otoManagerAuth
();
saveKyc
(
true
);
otoPMAuth
();
saveKyc
(
true
);
otoAssistAuth
();
saveKyc
(
true
);
//其他角色不可上传kyc
otoInviterAuth
();
saveKyc
(
false
);
otoTakerAuth
();
saveKyc
(
false
);
otoExpertAuth
();
saveKyc
(
false
);
otoLeaderAuth
();
saveKyc
(
false
);
otoAreaAuth
();
saveKyc
(
false
);
sleep
(
1000
);
getSchemeNum
(
3
,
0
,
0
,
null
);
}
@Test
(
description
=
"上传客户方案"
,
priority
=
51
)
public
void
上传客户方案
(){
//仅管理员/PM可上传方案
otoManagerAuth
();
savePlanFile
(
true
);
otoPMAuth
();
savePlanFile
(
true
);
//其他角色不可上传方案
otoAssistAuth
();
savePlanFile
(
false
);
otoInviterAuth
();
savePlanFile
(
false
);
otoTakerAuth
();
savePlanFile
(
false
);
otoExpertAuth
();
savePlanFile
(
false
);
otoLeaderAuth
();
savePlanFile
(
false
);
otoAreaAuth
();
savePlanFile
(
false
);
sleep
(
1000
);
getSchemeNum
(
3
,
3
,
0
,
null
);
}
@Test
(
description
=
"查看kyc和方案上传历史列表"
,
priority
=
40
)
public
void
查看
kyc
和方案上传历史列表
(){
//查看kys上传历史
getSchemeList
(
1
,
3
,
null
);
//查看方案上传历史
getSchemeList
(
2
,
2
,
null
);
//查看方案讲解历史
getSchemeList
(
3
,
0
,
null
);
}
@Test
(
description
=
"标记KYC合格状态"
,
priority
=
50
)
public
void
标记
KYC
合格状态
(){
//仅管理员/PM可标记kyc
otoManagerAuth
();
qualifiedKyc
(
1
,
true
);
sleep
(
1000
);
getSchemeNum
(
3
,
3
,
0
,
1
);
getSchemeList
(
1
,
3
,
1
);
otoPMAuth
();
qualifiedKyc
(
0
,
true
);
sleep
(
1000
);
getSchemeNum
(
3
,
3
,
0
,
0
);
getSchemeList
(
1
,
3
,
0
);
//其他角色不可标记kyc
otoAssistAuth
();
qualifiedKyc
(
1
,
false
);
otoInviterAuth
();
qualifiedKyc
(
1
,
false
);
otoTakerAuth
();
qualifiedKyc
(
1
,
false
);
otoExpertAuth
();
qualifiedKyc
(
1
,
false
);
otoLeaderAuth
();
qualifiedKyc
(
1
,
false
);
otoAreaAuth
();
qualifiedKyc
(
1
,
false
);
}
//获取销售个人工作计划
public
static
void
getSellerPlan
(
int
amFinish
,
int
amTotal
,
int
pmFinish
,
int
pmTotal
,
int
pStatus
,
int
unFinishTypes
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
@@ -636,4 +708,64 @@ public class CheckTask implements Authorization {
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
count
,
network
.
message
(
params
,
BasicConfig
.
WORK_check_sellerList
,
"结果列表错误"
,
response
.
body
().
asString
()));
}
public
void
saveKyc
(
boolean
result
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"kycImages"
,
new
String
[]{
"//yun.dui88.com/kjy/image/20230113/523669708b5043f5bb4641252e125cb5.jpg"
,
"//yun.dui88.com/kjy/image/20230113/edd2e950a8aa4fb2a15ae7400b768fed.jpg"
});
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_scheme_saveKyc
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertEquals
(
data
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_saveKyc
,
"上传KYC结果非"
+
result
,
response
.
body
().
asString
()));
}
public
void
savePlanFile
(
boolean
result
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"planFiles"
,
new
String
[]{
"//yun.dui88.com/kjy/media/file/20230113/20230113145555/1.doc"
,
"//yun.dui88.com/kjy/media/file/20230131/20230131111229/4.ppt"
}
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_scheme_savePlanFile
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertEquals
(
data
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_savePlanFile
,
"上传方案结果非"
+
result
,
response
.
body
().
asString
()));
}
public
void
qualifiedKyc
(
int
isQualified
,
boolean
result
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
kycId
);
params
.
put
(
"isQualified"
,
isQualified
);
// 0不合格 1合格
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_scheme_qualified
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertEquals
(
data
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_qualified
,
"标记KYC结果非"
+
result
,
response
.
body
().
asString
()));
}
public
static
void
getSchemeNum
(
int
kycNum
,
int
schemeNum
,
int
commitPlanNum
,
Integer
hasQualifiedKyc
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_scheme_getNum
);
int
kyc
=
response
.
jsonPath
().
getInt
(
"data.kycNum"
);
int
scheme
=
response
.
jsonPath
().
getInt
(
"data.schemeNum"
);
int
commitPlan
=
response
.
jsonPath
().
getInt
(
"data.commitPlanNum"
);
Integer
QualifiedKyc
=
response
.
jsonPath
().
getInt
(
"data.hasQualifiedKyc"
);
Assert
.
assertEquals
(
kyc
,
kycNum
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_getNum
,
"上传KYC次数非"
+
kycNum
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
scheme
,
schemeNum
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_getNum
,
"上传方案次数非"
+
schemeNum
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlan
,
commitPlanNum
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_getNum
,
"讲解方案次数非"
+
commitPlanNum
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
QualifiedKyc
,
hasQualifiedKyc
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_getNum
,
"KYC合格状态非"
+
hasQualifiedKyc
,
response
.
body
().
asString
()));
}
public
static
void
getSchemeList
(
int
type
,
int
count
,
Integer
kycStatus
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"type"
,
type
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
999
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_scheme_list
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertEquals
(
size
,
count
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_list
,
"列表数量非"
+
count
,
response
.
body
().
asString
()));
if
(
type
==
1
){
//1-kyc上传历史,2-方案上传历史,3-方案讲解历史
kycId
=
response
.
jsonPath
().
getInt
(
"data.list[0].id"
);
//1表示合格,0表示不合格,null表示未评价
Integer
isQualified
=
response
.
jsonPath
().
getInt
(
"data.list[0].isQualified"
);
Assert
.
assertEquals
(
isQualified
,
kycStatus
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_list
,
"最新上传的kyc合格状态非"
+
count
,
response
.
body
().
asString
()));
}
}
}
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
cf573c84
...
...
@@ -19,8 +19,7 @@ import java.util.Map;
import
static
com
.
oto
.
cases
.
otoseller
.
Manager
.
cust_id
;
import
static
com
.
oto
.
cases
.
otoseller
.
Work
.
assignSeller
;
import
static
com
.
oto
.
config
.
BasicConfig
.
INVITE_ID
;
import
static
com
.
oto
.
config
.
BasicConfig
.
WX_confirm
;
import
static
com
.
oto
.
config
.
BasicConfig
.*;
import
static
com
.
oto
.
utils
.
ThreadSleepUtils
.
sleep
;
public
class
Invite
implements
Authorization
{
...
...
@@ -277,8 +276,8 @@ public class Invite implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
otoInviterAuth
();
params
.
put
(
"recordId"
,
recordItem
.
recordId
);
params
.
put
(
"takeLookId"
,
290
);
params
.
put
(
"expertId"
,
284
);
params
.
put
(
"takeLookId"
,
SELLER_ID
);
params
.
put
(
"expertId"
,
EXPERT_ID
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_calendar_preAssign
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_preAssign
,
"预分配失败"
,
response
.
body
().
asString
()));
...
...
@@ -334,8 +333,8 @@ public class Invite implements Authorization {
//立即分配
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"recordId"
,
recordItem
.
recordId
);
params
.
put
(
"takeLookId"
,
290
);
params
.
put
(
"expertId"
,
284
);
params
.
put
(
"takeLookId"
,
SELLER_ID
);
params
.
put
(
"expertId"
,
EXPERT_ID
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_calendar_nowAssign
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_nowAssign
,
"立即分配失败"
,
response
.
body
().
asString
()));
...
...
@@ -358,6 +357,11 @@ public class Invite implements Authorization {
takerCoefficient
=
leadertotalCoefficient
;
}
@Test
(
description
=
"邀约记录未到场盘点详情不可重新分配专家"
,
priority
=
26
)
public
void
邀约记录未到场盘点详情不可重新分配专家
(){
assignSeller
(
cust_id
,
479
,
false
,
3
,
"check"
);
}
//获取销售系数
public
Double
getSellertotalCoefficient
(){
sleep
(
1000
);
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
cf573c84
...
...
@@ -277,7 +277,6 @@ public class Phone implements Authorization {
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
3
);
params
.
put
(
"expertId"
,
IdMakeUtil
.
encodingId
(
43L
));
params
.
put
(
"giveProspectusFlag"
,
1
);
params
.
put
(
"commitPlanFlag"
,
1
);
params
.
put
(
"prospectusAmount"
,
"计划书金额20W"
);
params
.
put
(
"prospectusDesc"
,
"计划书确认情况良好"
);
...
...
@@ -428,8 +427,9 @@ public class Phone implements Authorization {
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
2
);
params
.
put
(
"expertId"
,
IdMakeUtil
.
encodingId
(
284L
));
params
.
put
(
"giveProspectusFlag"
,
1
);
params
.
put
(
"commitPlanFlag"
,
0
);
params
.
put
(
"prospectusAmount"
,
"方案金额"
);
params
.
put
(
"prospectusDesc"
,
"方案确认情况"
);
params
.
put
(
"commitPlanFlag"
,
1
);
params
.
put
(
"isNormal"
,
false
);
params
.
put
(
"unusualTypes"
,
unusualTypes
);
params
.
put
(
"unusualExplain"
,
"手机号不一致的情况说明"
);
...
...
@@ -571,7 +571,7 @@ public class Phone implements Authorization {
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
1
);
params
.
put
(
"
giveProspectus
Flag"
,
0
);
params
.
put
(
"
commitPlan
Flag"
,
0
);
params
.
put
(
"isNormal"
,
true
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE_interviewFeedback
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
...
...
@@ -727,6 +727,12 @@ public class Phone implements Authorization {
}
@Test
(
description
=
"方案讲解历史更新"
,
priority
=
67
)
public
void
方案讲解历史更新
(){
getSchemeNum
(
3
,
3
,
2
,
0
);
getSchemeList
(
3
,
2
,
0
);
}
@Test
(
description
=
"查看我的日报为未提交"
,
priority
=
75
)
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
cf573c84
...
...
@@ -441,6 +441,33 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
label
,
"今日查看微信"
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"日报提交状态非0:未提交"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改客户个人信息"
,
priority
=
31
)
public
void
修改客户个人信息
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
long
birthday
=
System
.
currentTimeMillis
()-
86400000
;
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"birthdayTime"
,
System
.
currentTimeMillis
()-
86400000
);
params
.
put
(
"custAddress"
,
"老的客户住址"
);
params
.
put
(
"custGender"
,
1
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_liveDynamic
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.liveDynamicListVoList.size()"
);
Assert
.
assertEquals
(
size
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_liveDynamic
,
"直播动态错误"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"type"
,
1
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
long
birthdayTime
=
response
.
jsonPath
().
getLong
(
"data.birthdayTime"
);
String
custAddress
=
response
.
jsonPath
().
getString
(
"data.custAddress"
);
int
age
=
response
.
jsonPath
().
getInt
(
"data.age"
);
int
custGender
=
response
.
jsonPath
().
getInt
(
"data.custGender"
);
Assert
.
assertEquals
(
birthdayTime
,
birthday
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"出生年月日更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
age
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"年纪更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custAddress
,
"老的客户住址"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"家庭住址更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custGender
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"性别更新失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改客户基础信息"
,
priority
=
34
)
public
void
修改客户基础信息
(){
otoInviterAuth
();
...
...
@@ -448,7 +475,6 @@ public class Work implements Authorization {
ArrayList
<
Integer
>
array
=
new
ArrayList
<>();
params
.
put
(
"custId"
,
cust_id
);
Customer
custInfo
=
customer
;
custInfo
.
otoCustInfo4Base
.
put
(
"age"
,
65
);
custInfo
.
otoCustInfo4Base
.
put
(
"custAddress"
,
"客户的家庭住址"
);
custInfo
.
otoCustInfo4Base
.
put
(
"considerAgedForWho"
,
"为谁考虑养老"
);
custInfo
.
otoCustInfo4Base
.
put
(
"attentionOldCommunity"
,
"客户最关注养老社区什么"
);
...
...
@@ -462,7 +488,7 @@ public class Work implements Authorization {
params
.
clear
();
params
.
put
(
"custId"
,
cust_id
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail_v2
);
response
=
network
.
getResponse
(
params
,
WORK_header
);
String
age
=
response
.
jsonPath
().
getString
(
"data.otoCustInfo4Base.age"
);
String
custAddress
=
response
.
jsonPath
().
getString
(
"data.otoCustInfo4Base.custAddress"
);
String
considerAgedForWho
=
response
.
jsonPath
().
getString
(
"data.otoCustInfo4Base.considerAgedForWho"
);
...
...
@@ -952,6 +978,8 @@ public class Work implements Authorization {
}
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
88
)
public
void
公域引流
_
删除标签
(){
ssoLogin
();
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
cf573c84
...
...
@@ -228,6 +228,7 @@ public class BasicConfig {
public
static
final
String
WORK_assignSeller
=
WORK_HOST
+
"/kjy/oto/manager/customer/assignSeller"
;
public
static
final
String
WORK_liveDynamic
=
WORK_HOST
+
"/kjy/oto/manager/customer/liveDynamic"
;
public
static
final
String
WORK_minimumDept
=
WORK_HOST
+
"/kjy/oto/manager/customer/minimum/dept/list"
;
public
static
final
String
WORK_updateInfo
=
WORK_HOST
+
"/kjy/oto/manager/customer/info/update"
;
//*************************我的审批****************************
public
static
final
String
WORK_findMySellerByFuzzyName
=
WORK_HOST
+
"/kjy/oto/manager/audit/findMySellerByFuzzyName"
;
...
...
@@ -239,6 +240,11 @@ public class BasicConfig {
public
static
final
String
WORK_liveSearch
=
WORK_HOST
+
"/kjy/oto/manager/customer/liveSearch"
;
public
static
final
String
WORK_roleSellerList
=
WORK_HOST
+
"/kjy/oto/manager/customer/roleSellerList"
;
public
static
final
String
WORK_check_sellerList
=
WORK_HOST
+
"/kjy/oto/manager/customer/check/sellerList"
;
public
static
final
String
WORK_scheme_getNum
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/scheme/num/get"
;
public
static
final
String
WORK_scheme_list
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/scheme/list"
;
public
static
final
String
WORK_scheme_qualified
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/qualified/update"
;
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_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