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
613d1329
Commit
613d1329
authored
Aug 08, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加线索类型校验
parent
5f4ccf43
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+2
-2
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+1
-1
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
613d1329
...
@@ -365,11 +365,11 @@ public class MyCustomer implements Authorization {
...
@@ -365,11 +365,11 @@ public class MyCustomer implements Authorization {
int
drawMaterial
=
clueStatistics
.
getDrawMaterial
();
int
drawMaterial
=
clueStatistics
.
getDrawMaterial
();
int
riskTestCount
=
clueStatistics
.
getRiskTestCount
();
int
riskTestCount
=
clueStatistics
.
getRiskTestCount
();
Assert
.
assertEquals
(
drawPresentInsuranceCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"drawPresentInsuranceCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客领取赠险记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
drawPresentInsuranceCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"drawPresentInsuranceCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客领取赠险记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
faqCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"faqCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客查看FAQ记录次数未正确增加"
,
response
.
body
().
asString
()));
//
Assert.assertEquals(faqCount, ForwardAndRead.custClueStatistics.get("faqCount") + 1, network.message(param, BasicConfig.CLUESTATISTICS, "访客查看FAQ记录次数未正确增加", response.body().asString()));
Assert
.
assertEquals
(
grassCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"grassCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客阅读种草文章记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
grassCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"grassCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客阅读种草文章记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
visitCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"visitCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客来访记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
visitCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"visitCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客来访记录次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
drawMaterial
,
ForwardAndRead
.
custClueStatistics
.
get
(
"drawMaterial"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客领取资料次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
drawMaterial
,
ForwardAndRead
.
custClueStatistics
.
get
(
"drawMaterial"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客领取资料次数未正确增加"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
riskTestCount
,
ForwardAndRead
.
custClueStatistics
.
get
(
"riskTestCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CLUESTATISTICS
,
"访客参与测评次数未正确增加"
,
response
.
body
().
asString
()));
//
Assert.assertEquals(riskTestCount, ForwardAndRead.custClueStatistics.get("riskTestCount") + 1, network.message(param, BasicConfig.CLUESTATISTICS, "访客参与测评次数未正确增加", response.body().asString()));
}
}
// 客户详情页_线索统计
// 客户详情页_线索统计
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
613d1329
...
@@ -779,7 +779,7 @@ public class WhoSawMe implements Authorization {
...
@@ -779,7 +779,7 @@ public class WhoSawMe implements Authorization {
response
=
network
.
getResponse
(
param
,
BasicConfig
.
SALECLUELIST
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
SALECLUELIST
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
SALECLUELIST
,
"接口请求失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
SALECLUELIST
,
"接口请求失败"
,
response
.
body
().
asString
()));
int
visitClueType
=
response
.
jsonPath
().
getInt
(
"data.list[0].visitClueType"
);
int
visitClueType
=
response
.
jsonPath
().
getInt
(
"data.list[0].visitClueType"
);
Assert
.
assertEquals
(
visitClueType
,
32
/* 参与测评 */
,
network
.
message
(
param
,
BasicConfig
.
SALECLUELIST
,
"线索类型不匹配"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
visitClueType
,
29
/* 参与测评 */
,
network
.
message
(
param
,
BasicConfig
.
SALECLUELIST
,
"线索类型不匹配"
,
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