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
fb17a2e8
Commit
fb17a2e8
authored
Nov 22, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20221114-mixed' into 'master'
增加修改重点跟进人的用例 See merge request
!50
parents
48bf1ce5
182a8e9e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+17
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
fb17a2e8
...
@@ -216,6 +216,7 @@ public class Work implements Authorization {
...
@@ -216,6 +216,7 @@ public class Work implements Authorization {
int
callTimes
=
response
.
jsonPath
().
getInt
(
"data.callTimes"
);
int
callTimes
=
response
.
jsonPath
().
getInt
(
"data.callTimes"
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
int
custStar
=
response
.
jsonPath
().
getInt
(
"data.custStar"
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.addWxStatus"
);
int
addWxStatus
=
response
.
jsonPath
().
getInt
(
"data.addWxStatus"
);
int
followUp
=
response
.
jsonPath
().
getInt
(
"data.followUp"
);
int
bindWxWorkFlag
=
response
.
jsonPath
().
getInt
(
"data.wxCustInfo.bindWxWorkFlag"
);
int
bindWxWorkFlag
=
response
.
jsonPath
().
getInt
(
"data.wxCustInfo.bindWxWorkFlag"
);
String
custHead
=
response
.
jsonPath
().
getString
(
"data.custHead"
);
String
custHead
=
response
.
jsonPath
().
getString
(
"data.custHead"
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.custDescription"
);
String
custDescription
=
response
.
jsonPath
().
getString
(
"data.custDescription"
);
...
@@ -225,6 +226,7 @@ public class Work implements Authorization {
...
@@ -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
(
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
(
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
(
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
(
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
(
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
()));
Assert
.
assertEquals
(
custDescription
,
""
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"新客户的备注不为null"
,
response
.
body
().
asString
()));
...
@@ -1631,6 +1633,21 @@ public class Work implements Authorization {
...
@@ -1631,6 +1633,21 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
size
,
5
,
network
.
message
(
params
,
BasicConfig
.
WORK_sellerList
,
"当前跟进人模糊搜索数量错误"
,
response
.
body
().
asString
()));
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
){
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
fb17a2e8
...
@@ -219,6 +219,7 @@ public class BasicConfig {
...
@@ -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_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_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_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"
;
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