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
79fe9d3a
Commit
79fe9d3a
authored
Dec 16, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20211215-gxh' into 'master'
Feature/20211215 gxh See merge request test-group/kejiji!193
parents
6fc34cdb
ffcdd184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
40 deletions
+40
-40
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+21
-21
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+19
-19
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
79fe9d3a
...
...
@@ -192,18 +192,18 @@ public class MyCustomer implements Authorization {
List
<
Object
>
lists
=
response
.
jsonPath
().
getList
(
"data.list"
);
Assert
.
assertTrue
(
lists
.
size
()
>=
1
,
network
.
message
(
param
,
BasicConfig
.
CUSTOMERSEARCH
,
"直接转发客户数为0"
,
response
.
body
().
asString
()));
}
//客户详情页_头部信息栏
@Test
(
description
=
"客户详情页_头部信息栏"
,
priority
=
16
)
public
void
客户详情页
_
头部信息栏
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
newUserId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTINFOHEADER
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTINFOHEADER
,
"接口请求失败"
,
response
.
body
().
asString
()));
List
<
Object
>
custOrigins
=
response
.
jsonPath
().
getList
(
"data.custOrigins"
);
Assert
.
assertEquals
(
custOrigins
.
size
(),
3
,
network
.
message
(
param
,
BasicConfig
.
CUSTINFOHEADER
,
"二度客户来源链路长度不为3"
,
response
.
body
().
asString
()));
int
cameFrom
=
response
.
jsonPath
().
getInt
(
"data.cameFrom"
);
Assert
.
assertEquals
(
cameFrom
,
2
,
network
.
message
(
param
,
BasicConfig
.
CUSTINFOHEADER
,
"访客来源不为二度访客"
,
response
.
body
().
asString
()));
}
//
//客户详情页_头部信息栏
//
@Test(description = "客户详情页_头部信息栏", priority = 16)
//
public void 客户详情页_头部信息栏() throws IOException{
//
param = new HashMap<>();
//
param.put("custUserId", newUserId);
//
response = network.getResponse(param, BasicConfig.CUSTINFOHEADER);
//
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CUSTINFOHEADER, "接口请求失败", response.body().asString()));
//
List<Object> custOrigins = response.jsonPath().getList("data.custOrigins");
//
Assert.assertEquals(custOrigins.size(), 3, network.message(param, BasicConfig.CUSTINFOHEADER, "二度客户来源链路长度不为3", response.body().asString()));
//
int cameFrom = response.jsonPath().getInt("data.cameFrom");
//
Assert.assertEquals(cameFrom, 2, network.message(param, BasicConfig.CUSTINFOHEADER, "访客来源不为二度访客", response.body().asString()));
//
}
// 客户详情页_客户信息
@Test
(
description
=
"客户详情页_客户信息"
,
priority
=
17
)
...
...
@@ -267,15 +267,15 @@ public class MyCustomer implements Authorization {
Assert
.
assertEquals
(
visitCountHere
,
ForwardAndRead
.
custClueStatistics
.
get
(
"visitCount"
)
+
1
,
network
.
message
(
param
,
BasicConfig
.
CUSTSTATISTIC
,
"用户来访次数有误"
,
response
.
body
().
asString
()));
}
//客户详情页_阅读偏好------访问重构未更新
@Test
(
description
=
"客户详情页_阅读偏好"
,
priority
=
22
)
public
void
客户详情页
_
阅读偏好
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
visitor1UserId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTREADPERFERENCE
);
List
<
Object
>
readPerferences
=
response
.
jsonPath
().
getList
(
"data"
);
Assert
.
assertTrue
(
readPerferences
.
size
()
>
0
,
network
.
message
(
param
,
BasicConfig
.
CUSTREADPERFERENCE
,
"客户无阅读偏好"
,
response
.
body
().
asString
()));
}
//
//客户详情页_阅读偏好------访问重构未更新
//
@Test(description = "客户详情页_阅读偏好", priority = 22)
//
public void 客户详情页_阅读偏好() throws IOException{
//
param = new HashMap<>();
//
param.put("custUserId", visitor1UserId);
//
response = network.getResponse(param, BasicConfig.CUSTREADPERFERENCE);
//
List<Object> readPerferences = response.jsonPath().getList("data");
//
Assert.assertTrue(readPerferences.size() > 0, network.message(param, BasicConfig.CUSTREADPERFERENCE, "客户无阅读偏好", response.body().asString()));
//
}
// 客户详情页_来访记录
@Test
(
description
=
"客户详情页_来访记录"
,
priority
=
23
)
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
79fe9d3a
...
...
@@ -829,25 +829,25 @@ public class WhoSawMe implements Authorization {
}
// 查看转发动态访问列表
@Test
(
description
=
"查看转发素材访问列表"
,
priority
=
52
)
public
void
查看转发素材访问列表
()
throws
IOException
{
// 获取首条素材列表中首条动态id
param
=
new
HashMap
<>();
param
.
put
(
"sellerId"
,
xxxSellerId
);
param
.
put
(
"pageSize"
,
20
);
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"sortType"
,
4
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
MATERIALLIST
);
Long
dynamicId
=
response
.
jsonPath
().
getLong
(
"data.list[0].id"
);
// 按照动态id查看动态访问列表
param
=
new
HashMap
<>();
param
.
put
(
"pageSize"
,
20
);
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"dynamicId"
,
dynamicId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
GETVISITLIST
);
Long
visitorUserId
=
response
.
jsonPath
().
getLong
(
"data.list[0].userId"
);
Assert
.
assertEquals
(
visitorUserId
,
xxrUserId
,
network
.
message
(
param
,
BasicConfig
.
GETVISITLIST
,
"动态访问记录错误"
,
response
.
body
().
asString
()));
}
//
@Test(description = "查看转发素材访问列表", priority = 52)
//
public void 查看转发素材访问列表() throws IOException{
//
// 获取首条素材列表中首条动态id
//
param = new HashMap<>();
//
param.put("sellerId", xxxSellerId);
//
param.put("pageSize", 20);
//
param.put("pageIndex", 1);
//
param.put("sortType", 4);
//
response = network.getResponse(param, BasicConfig.MATERIALLIST);
//
Long dynamicId = response.jsonPath().getLong("data.list[0].id");
//
// 按照动态id查看动态访问列表
//
param = new HashMap<>();
//
param.put("pageSize", 20);
//
param.put("pageIndex", 1);
//
param.put("dynamicId", dynamicId);
//
response = network.getResponse(param, BasicConfig.GETVISITLIST);
//
Long visitorUserId = response.jsonPath().getLong("data.list[0].userId");
//
Assert.assertEquals(visitorUserId, xxrUserId, network.message(param, BasicConfig.GETVISITLIST, "动态访问记录错误", response.body().asString()));
//
}
// 销售线索_新线索引导
@Test
(
description
=
"销售线索详情_新线索引导"
,
priority
=
53
)
...
...
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