Commit d6c2f770 authored by 龚小红's avatar 龚小红

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

线索重构,删除客户列表和部分接口,替换部分接口

See merge request test-group/kejiji!207
parents aa1c6550 6e60b08f
...@@ -210,29 +210,6 @@ public class MyCustomer implements Authorization { ...@@ -210,29 +210,6 @@ public class MyCustomer implements Authorization {
String remarkName = response.jsonPath().getString("data.remarkName"); String remarkName = response.jsonPath().getString("data.remarkName");
Assert.assertEquals(remarkName, "备注名", network.message(param, BasicConfig.CUSTINFOHEADER, "用户备注名与预期不符", response.body().asString())); 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) @Test(description = "客户详情页_线索统计", priority = 21)
......
...@@ -201,7 +201,8 @@ public class MyForward implements Authorization { ...@@ -201,7 +201,8 @@ public class MyForward implements Authorization {
param.put("pageSize", 20); param.put("pageSize", 20);
param.put("type", 2); param.put("type", 2);
response = network.getResponse(param, BasicConfig.FORWARD_VISITRECORD); 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"); List<Object> custLists = response.jsonPath().getList("data.list");
for(int i = 0; i < custLists.size(); i++){ for(int i = 0; i < custLists.size(); i++){
boolean areClued = response.jsonPath().getBoolean("data.list["+i+"].clued"); boolean areClued = response.jsonPath().getBoolean("data.list["+i+"].clued");
......
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