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
d6c2f770
Commit
d6c2f770
authored
Jan 07, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20211230-gxh' into 'master'
线索重构,删除客户列表和部分接口,替换部分接口 See merge request test-group/kejiji!207
parents
aa1c6550
6e60b08f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
24 deletions
+2
-24
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+0
-23
MyForward.java
...test/java/com/kjj/cases/assistant/whoSawMe/MyForward.java
+2
-1
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
d6c2f770
...
...
@@ -210,29 +210,6 @@ public class MyCustomer implements Authorization {
String
remarkName
=
response
.
jsonPath
().
getString
(
"data.remarkName"
);
Assert
.
assertEquals
(
remarkName
,
"备注名"
,
network
.
message
(
param
,
BasicConfig
.
CUSTINFOHEADER
,
"用户备注名与预期不符"
,
response
.
body
().
asString
()));
}
//
// // 客户详情页_意向详情
// @Test(description = "客户详情页_意向详情", priority = 19)
// public void 客户详情页_意向详情() throws IOException{
// param = new HashMap<>();
// param.put("userId", visitor1UserId);
// response = network.getResponse(param, BasicConfig.CLUESTATISTICS);
// Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CLUESTATISTICS, "接口请求失败", response.body().asString()));
// ClueStatistics clueStatistics = JsonUtil.parseResponseToBean(response, ClueStatistics.class);
// int grassCount = clueStatistics.getGrassCount();
// int visitCount = clueStatistics.getVisitCount();
// int drawMaterial = clueStatistics.getDrawMaterial();
// int faqCount = clueStatistics.getFaqCount();
// int riskTestCount = clueStatistics.getRiskTestCount();
// int drawPresentInsuranceCount = clueStatistics.getDrawPresentInsuranceCount();
// 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(drawMaterial, ForwardAndRead.custClueStatistics.get("drawMaterial") + 1, network.message(param, BasicConfig.CLUESTATISTICS, "访客领取资料次数未正确增加", response.body().asString()));
// Assert.assertEquals(faqCount, ForwardAndRead.custClueStatistics.get("faqCount") + 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(drawPresentInsuranceCount, ForwardAndRead.custClueStatistics.get("drawPresentInsuranceCount") + 1, network.message(param, BasicConfig.CLUESTATISTICS, "访客领取资料次数未正确增加", response.body().asString()));
// }
// 客户详情页_线索统计
@Test
(
description
=
"客户详情页_线索统计"
,
priority
=
21
)
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/MyForward.java
View file @
d6c2f770
...
...
@@ -201,7 +201,8 @@ public class MyForward implements Authorization {
param
.
put
(
"pageSize"
,
20
);
param
.
put
(
"type"
,
2
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
FORWARD_VISITRECORD
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
FORWARD_VISITRECORD
,
"接口请求失败"
,
response
.
body
().
asString
()));
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
param
,
BasicConfig
.
FORWARD_VISITRECORD
,
"接口请求失败"
,
response
.
body
().
asString
()));
List
<
Object
>
custLists
=
response
.
jsonPath
().
getList
(
"data.list"
);
for
(
int
i
=
0
;
i
<
custLists
.
size
();
i
++){
boolean
areClued
=
response
.
jsonPath
().
getBoolean
(
"data.list["
+
i
+
"].clued"
);
...
...
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