Commit 79fe9d3a authored by 龚小红's avatar 龚小红

Merge branch 'Feature/20211215-gxh' into 'master'

Feature/20211215 gxh

See merge request test-group/kejiji!193
parents 6fc34cdb ffcdd184
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment