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
7bcea929
Commit
7bcea929
authored
Aug 23, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改访客线索校验-fix
parent
da1f6f2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+11
-7
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
7bcea929
...
...
@@ -21,7 +21,6 @@ public class MyCustomer implements Authorization {
private
String
createTagId
;
private
long
visitor1UserId
;
private
String
sessionId
;
private
int
visitCount
;
// 二度访客来访次数
private
String
id
;
// 自定义提醒事项id
private
long
lastMessageId
;
...
...
@@ -138,8 +137,6 @@ public class MyCustomer implements Authorization {
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTOMERSEARCH
,
"接口请求失败"
,
response
.
body
().
asString
()));
long
userId
=
response
.
jsonPath
().
getLong
(
"data.list[0].userId"
);
Assert
.
assertEquals
(
userId
,
visitor1UserId
,
network
.
message
(
param
,
BasicConfig
.
CUSTOMERSEARCH
,
"最新访问记录首位用户userId错误"
,
response
.
body
().
asString
()));
visitCount
=
response
.
jsonPath
().
getInt
(
"data.list[0].visitCount"
);
}
// 我的客户首页_获取全部客户列表_按照访问次数排列
...
...
@@ -377,7 +374,7 @@ public class MyCustomer implements Authorization {
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTSTATISTIC
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTSTATISTIC
,
"接口请求失败"
,
response
.
body
().
asString
()));
int
visitCountHere
=
response
.
jsonPath
().
getInt
(
"data.visitCount"
);
Assert
.
assertEquals
(
visitCountHere
,
visitCount
,
network
.
message
(
param
,
BasicConfig
.
CUSTSTATISTIC
,
"用户来访次数有误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
visitCountHere
,
ForwardAndRead
.
custClueStatistics
.
get
(
"visitCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CUSTSTATISTIC
,
"用户来访次数有误"
,
response
.
body
().
asString
()));
}
// 客户详情页_阅读偏好
...
...
@@ -446,10 +443,17 @@ public class MyCustomer implements Authorization {
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
visitor1UserId
);
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"pa
h
eSize"
,
30
);
param
.
put
(
"pa
g
eSize"
,
30
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CONTENTVISITRECORD
);
int
totalCount
=
response
.
jsonPath
().
getInt
(
"data.custVisitList.totalCount"
);
Assert
.
assertEquals
(
totalCount
,
visitCount
,
network
.
message
(
param
,
BasicConfig
.
CONTENTVISITRECORD
,
"访问记录总数与来访次数不符"
,
response
.
body
().
asString
()));
String
contentId
;
try
{
contentId
=
response
.
jsonPath
().
getString
(
"data.custVisitList.list[0].contentId"
);
}
catch
(
NullPointerException
e
){
System
.
out
.
println
(
response
.
body
().
asString
());
e
.
printStackTrace
();
return
;
}
Assert
.
assertEquals
(
contentId
,
BasicConfig
.
ARTICLE_CONTENTID
,
network
.
message
(
param
,
BasicConfig
.
CONTENTVISITRECORD
,
"最新访问记录素材ID错误"
,
response
.
body
().
asString
()));
}
// 客户详情页_关键线索_提交资料
...
...
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