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
182a8e9e
Commit
182a8e9e
authored
Nov 22, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加修改重点跟进人的用例
parent
6b7c0c46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+17
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+3
-2
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
182a8e9e
...
...
@@ -216,6 +216,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.addWxStatus"
);
int
followUp
=
response
.
jsonPath
().
getInt
(
"data.followUp"
);
int
bindWxWorkFlag
=
response
.
jsonPath
().
getInt
(
"data.wxCustInfo.bindWxWorkFlag"
);
String
custHead
=
response
.
jsonPath
().
getString
(
"data.custHead"
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.custDescription"
);
...
...
@@ -225,6 +226,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
callTimes
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户总通话次数非0"
,
response
.
body
().
asString
()));
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
(
followUp
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的重点跟进人不是空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
bindWxWorkFlag
,
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
.
assertEquals
(
custDescription
,
""
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的备注不为null"
,
response
.
body
().
asString
()));
...
...
@@ -1631,6 +1633,21 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
size
,
5
,
network
.
message
(
params
,
BasicConfig
.
WORK_sellerList
,
"当前跟进人模糊搜索数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改重点跟进人"
,
priority
=
113
)
public
void
修改重点跟进人
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"followUp"
,
4
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_updateFollowUp
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateFollowUp
,
"修改重点跟进人失败"
,
response
.
body
().
asString
()));
params
.
put
(
"type"
,
2
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
followUp
=
response
.
jsonPath
().
getInt
(
"data.followUp"
);
Assert
.
assertEquals
(
followUp
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户重点跟进人错误"
,
response
.
body
().
asString
()));
}
//修改客户的约面情况
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
182a8e9e
...
...
@@ -43,8 +43,8 @@ public class BasicConfig {
/*******OTO销售工作台*********/
public
static
final
String
OTO_INVITER_TKU
=
"4yrzAfNog7WE527NKCNmqBqph48N7mWR9J49QYysZmKYC3DF97hQFap7RphynF3GFXLhp7GFZ35mc"
;
public
static
final
String
OTO_TAKER_TKU
=
"7Fcuh7FWTsTHSqd
2be68YiRKvNhscfrWwNHFvuMwkumtuhF4AotfJLRbsAVpjxzt4G9E5r6M2nvgrcqiP5xBvQDLDQjT5eB9rqBVB1eonEqkmd1gjktdoWV8GLPAK8S3nk7yaHUevCWZWaZhJ8YkQV6M
"
;
public
static
final
String
OTO_EXPERT_TKU
=
"7Fcuh7FWTsTHSqd
2be68YiSEoRqh5beyhXNsJahtdNENwqw57Q8TPPkJkUoE8pP57iQhpfhq2LnsJVpBfdtSt2j969eSDnpxUd7WGNhyZDL8gSFA6ecKSbZSYh29SPrUQXhHQihrbPNDfLzrDbku1AM4
"
;
public
static
final
String
OTO_TAKER_TKU
=
"7Fcuh7FWTsTHSqd
GLMp5tQfPxhLUvJPui5b8gHP2ZkyDFqVEhZ7NLbZB2cpohNSKYScBin4vQrgDVDhxxBdmPr9937m1bY3LTXzDdQ6y8fGrF8r66CSzHbM69FPTYxJLGHG71NittSC1J1Hi86Vu4kFR
"
;
public
static
final
String
OTO_EXPERT_TKU
=
"7Fcuh7FWTsTHSqd
GLMp5tQsHHyH8oTHwYpSo8uHUiYABxYw3KBuY2gfxur5mFo5wiLKNtMZbgNo969ULyi8W7CrWzvXgQCuqchPXa9qfmvNJnyFWjH7wtSifZFYoM9rMN8CeT9iMC4FbhHtEpdVuFmzP
"
;
// *************** 客集集域名 ***************
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
public
static
final
String
SSO_HOST
=
"https://sso.duibatest.com.cn"
;
...
...
@@ -219,6 +219,7 @@ public class BasicConfig {
public
static
final
String
WORK_sellerList
=
WORK_HOST
+
"/kjy/oto/manager/customer/role/sellerList"
;
public
static
final
String
WORK_getWxCustByName
=
WORK_HOST
+
"/kjy/oto/manager/customer/getWxCustByName"
;
public
static
final
String
WORK_bindWxCust
=
WORK_HOST
+
"/kjy/oto/manager/customer/bindWxCust"
;
public
static
final
String
WORK_updateFollowUp
=
WORK_HOST
+
"/kjy/oto/manager/customer/updateFollowUp"
;
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
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