Commit 5512cb0b authored by 龚小红's avatar 龚小红

将新用户与邀请返现结合

parent e18de8fa
......@@ -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)
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="集客助手" verbose="1" thread-count="3">
<test preserve-order="true" name="支付">
<classes>
<class name="com.kjj.cases.assistant.pay.Pay"/>
</classes>
</test>
<!-- <test preserve-order="true" name="支付">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.pay.Pay"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="邀请返现">
<classes>
<class name="com.kjj.cases.assistant.pay.Cashback"/>
</classes>
</test>
<test preserve-order="true" name = "新手引导">
<classes>
<class name="com.kjj.cases.assistant.menu.NoviceGuidance"/>
</classes>
</test>
<test preserve-order="true" name = "首页">
<classes>
<class name="com.kjj.cases.assistant.homePage.HomePage"/>
</classes>
</test>
<test preserve-order="true" name="我的名片">
<classes>
<class name="com.kjj.cases.assistant.card.PersonCard"/>
</classes>
</test>
<test preserve-order="true" name="文章中个人名片">
<classes>
<class name="com.kjj.cases.assistant.card.ArticalPersonCard"/>
</classes>
</test>
<test preserve-order="true" name = "种草素材">
<classes>
<class name="com.kjj.cases.assistant.homePage.RecommendMaterial"/>
</classes>
</test>
<test preserve-order="true" name = "今日早报">
<classes>
<class name="com.kjj.cases.assistant.homePage.DailyPaper"/>
</classes>
</test>
<test preserve-order="true" name = "上传链接">
<classes>
<class name="com.kjj.cases.assistant.homePage.Upload"/>
</classes>
</test>
<!-- <test preserve-order="true" name = "新手引导">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.menu.NoviceGuidance"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "首页">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.homePage.HomePage"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name="我的名片">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.card.PersonCard"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name="文章中个人名片">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.card.ArticalPersonCard"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "种草素材">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.homePage.RecommendMaterial"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "今日早报">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.homePage.DailyPaper"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "上传链接">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.homePage.Upload"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name = "获取访客">
<classes>
<class name="com.kjj.cases.assistant.whoSawMe.ForwardAndRead"/>
......@@ -66,41 +66,41 @@
<class name="com.kjj.cases.assistant.whoSawMe.MyCustomer"/>
</classes>
</test>
<test preserve-order="true" name = "贺卡">
<classes>
<class name="com.kjj.cases.assistant.markettools.GreetingCrad"/>
</classes>
</test>
<test preserve-order="true" name = "抽奖转盘">
<classes>
<class name="com.kjj.cases.assistant.markettools.GameLottery"/>
</classes>
</test>
<test preserve-order="true" name = "邀请函">
<classes>
<class name="com.kjj.cases.assistant.markettools.InvitationLetter"/>
</classes>
</test>
<test preserve-order="true" name = "使用攻略和设置中心">
<classes>
<class name="com.kjj.cases.assistant.menu.PersonalCenter"/>
</classes>
</test>
<test preserve-order="true" name = "企业后台">
<classes>
<class name="com.kjj.cases.assistant.enterprise.Enterprise"/>
</classes>
</test>
<test preserve-order="true" name = "管理后台-企业后台">
<classes>
<class name="com.kjj.cases.assistant.management.Management"/>
</classes>
</test>
<test preserve-order="true" name = "企业后台代理人端">
<classes>
<class name="com.kjj.cases.assistant.enterpriseAgent.EnterpriseAgent"/>
</classes>
</test>
<!-- <test preserve-order="true" name = "贺卡">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.markettools.GreetingCrad"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "抽奖转盘">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.markettools.GameLottery"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "邀请函">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.markettools.InvitationLetter"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "使用攻略和设置中心">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.menu.PersonalCenter"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "企业后台">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.enterprise.Enterprise"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "管理后台-企业后台">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.management.Management"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name = "企业后台代理人端">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.assistant.enterpriseAgent.EnterpriseAgent"/>-->
<!-- </classes>-->
<!-- </test>-->
</suite>
<!-- Suite -->
......
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