Commit 872d7b46 authored by xiamengchen's avatar xiamengchen

更新 谁看过我+我的客户

parent d34ad305
...@@ -592,8 +592,24 @@ public class MyCustomer implements Authorization { ...@@ -592,8 +592,24 @@ public class MyCustomer implements Authorization {
Assert.assertEquals(list.size(), 0, network.message(param, BasicConfig.GETREMINDINFOS, "待提醒事件未全部删除", response.body().asString())); Assert.assertEquals(list.size(), 0, network.message(param, BasicConfig.GETREMINDINFOS, "待提醒事件未全部删除", response.body().asString()));
} }
// 客户信息_客户管理_查询已提醒事件列表
@Test(description = "客户信息_客户管理_查询已提醒事件列表", priority = 35)
public void 客户信息_客户管理_查询已提醒事件列表() throws IOException{
param = new HashMap<>();
param.put("pageIndex", 1);
param.put("pageSize", 20);
param.put("userId", visitor1UserId);
param.put("remindStatus", 1);
response = network.getResponse(param, BasicConfig.GETREMINDINFOS);
List<RemindInfo> remindInfos = JsonUtil.parseResponseToPageBean(response, RemindInfo.class);
String remindContent = remindInfos.get(0).getRemindContent();
int remindStatus = remindInfos.get(0).getRemindStatus();
Assert.assertEquals(remindContent, "吃饭", network.message(param, BasicConfig.GETREMINDINFOS, "筛选结果事件内容不正确", response.body().asString()));
Assert.assertEquals(remindStatus, 1, network.message(param, BasicConfig.GETREMINDINFOS, "筛选结果状态非已提醒", response.body().asString()));
}
// 客户信息_客户管理_生日提醒 // 客户信息_客户管理_生日提醒
@Test(description = "客户信息_客户管理_生日提醒", priority = 35) @Test(description = "客户信息_客户管理_生日提醒", priority = 36)
public void 客户信息_客户管理_生日提醒() throws IOException{ public void 客户信息_客户管理_生日提醒() throws IOException{
String userId = String.valueOf(visitor1UserId); String userId = String.valueOf(visitor1UserId);
// 开启生日提醒 // 开启生日提醒
...@@ -629,7 +645,7 @@ public class MyCustomer implements Authorization { ...@@ -629,7 +645,7 @@ public class MyCustomer implements Authorization {
} }
// 客户信息_客户管理_节日提醒 // 客户信息_客户管理_节日提醒
@Test(description = "客户信息_客户管理_节日提醒", priority = 36) @Test(description = "客户信息_客户管理_节日提醒", priority = 37)
public void 客户信息_客户管理_节日提醒() throws IOException{ public void 客户信息_客户管理_节日提醒() throws IOException{
String userId = String.valueOf(visitor1UserId); String userId = String.valueOf(visitor1UserId);
// 开启节日提醒 // 开启节日提醒
...@@ -662,7 +678,7 @@ public class MyCustomer implements Authorization { ...@@ -662,7 +678,7 @@ public class MyCustomer implements Authorization {
} }
// 客户信息_客户关系链_统计信息 // 客户信息_客户关系链_统计信息
@Test(description = "客户信息_客户关系链_统计信息", priority = 37) @Test(description = "客户信息_客户关系链_统计信息", priority = 38)
public void 客户信息_客户关系链_统计信息() throws IOException{ public void 客户信息_客户关系链_统计信息() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", far.decodeTku(BasicConfig.AGENT_TKU).get("userId")); param.put("custUserId", far.decodeTku(BasicConfig.AGENT_TKU).get("userId"));
...@@ -672,7 +688,7 @@ public class MyCustomer implements Authorization { ...@@ -672,7 +688,7 @@ public class MyCustomer implements Authorization {
} }
// 客户信息_客户关系链_人脉列表 // 客户信息_客户关系链_人脉列表
@Test(description = "客户信息_客户关系链_人脉列表", priority = 38) @Test(description = "客户信息_客户关系链_人脉列表", priority = 39)
public void 客户信息_客户关系链_人脉列表() throws IOException{ public void 客户信息_客户关系链_人脉列表() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", far.decodeTku(BasicConfig.AGENT_TKU).get("userId")); param.put("custUserId", far.decodeTku(BasicConfig.AGENT_TKU).get("userId"));
...@@ -685,7 +701,7 @@ public class MyCustomer implements Authorization { ...@@ -685,7 +701,7 @@ public class MyCustomer implements Authorization {
} }
// 客户信息_客户关系链_邀请排行 // 客户信息_客户关系链_邀请排行
@Test(description = "客户信息_客户关系链_邀请排行", priority = 39) @Test(description = "客户信息_客户关系链_邀请排行", priority = 40)
public void 客户信息_客户关系链_邀请排行() throws IOException{ public void 客户信息_客户关系链_邀请排行() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("type", 2); param.put("type", 2);
...@@ -697,7 +713,7 @@ public class MyCustomer implements Authorization { ...@@ -697,7 +713,7 @@ public class MyCustomer implements Authorization {
} }
//客户信息_更多资料 //客户信息_更多资料
@Test(description = "客户信息_更多资料", priority = 40) @Test(description = "客户信息_更多资料", priority = 41)
public void 客户信息_更多资料() throws IOException{ public void 客户信息_更多资料() throws IOException{
// 更新资料信息 // 更新资料信息
List<Object> baseMaterial = new ArrayList<>(); List<Object> baseMaterial = new ArrayList<>();
...@@ -739,7 +755,7 @@ public class MyCustomer implements Authorization { ...@@ -739,7 +755,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_留言 // 客户详情页_留言
@Test(description = "客户详情页_留言", priority = 41) @Test(description = "客户详情页_留言", priority = 42)
public void 客户详情页_留言() throws IOException{ public void 客户详情页_留言() throws IOException{
// 判断销售员是否首次访问新功能(留言) // 判断销售员是否首次访问新功能(留言)
param = new HashMap<>(); param = new HashMap<>();
...@@ -750,7 +766,7 @@ public class MyCustomer implements Authorization { ...@@ -750,7 +766,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_留言_发送消息 // 客户详情页_留言_发送消息
@Test(description = "客户详情页_留言_发送消息", priority = 42) @Test(description = "客户详情页_留言_发送消息", priority = 43)
public void 客户详情页_留言_发送消息() throws IOException{ public void 客户详情页_留言_发送消息() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("content", "Hello"); param.put("content", "Hello");
...@@ -761,7 +777,7 @@ public class MyCustomer implements Authorization { ...@@ -761,7 +777,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_留言_聊天内容 // 客户详情页_留言_聊天内容
@Test(description = "客户详情页_留言_聊天内容", priority = 43) @Test(description = "客户详情页_留言_聊天内容", priority = 44)
public void 客户详情页_留言_聊天内容() throws IOException{ public void 客户详情页_留言_聊天内容() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("pageSize", 30); param.put("pageSize", 30);
...@@ -783,7 +799,7 @@ public class MyCustomer implements Authorization { ...@@ -783,7 +799,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_留言_留言对象是否关注公众号 // 客户详情页_留言_留言对象是否关注公众号
@Test(description = "客户详情页_留言_留言对象是否关注公众号", priority = 44) @Test(description = "客户详情页_留言_留言对象是否关注公众号", priority = 45)
public void 客户详情页_留言_留言对象是否关注公众号() throws IOException{ public void 客户详情页_留言_留言对象是否关注公众号() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("targetSid", far.decodeTku(BasicConfig.VISITOR2_TKU).get("sellerId")); param.put("targetSid", far.decodeTku(BasicConfig.VISITOR2_TKU).get("sellerId"));
......
...@@ -311,6 +311,19 @@ public class WhoSawMe implements Authorization { ...@@ -311,6 +311,19 @@ public class WhoSawMe implements Authorization {
Assert.assertEquals(identity, 1, network.message(param, BasicConfig.TEAMSTRUCTURE_IDENTITY, "当前代理人身份判断错误", response.body().asString())); Assert.assertEquals(identity, 1, network.message(param, BasicConfig.TEAMSTRUCTURE_IDENTITY, "当前代理人身份判断错误", response.body().asString()));
} }
// 团队架构_搜索成员
@Test(description = "团队架构_搜索成员", priority = 22)
public void 团队架构_搜索成员() throws IOException{
jjSellerId = far.decodeTku(BasicConfig.AGENT_TKU).get("sellerId");
param = new HashMap<>();
param.put("sellerName", "吉吉");
param.put("superiorSid", String.valueOf(xxxSellerId));
System.out.println();
response = network.getResponse(param, BasicConfig.MEMBERSEARCH);
String sellerId = response.jsonPath().getString("data[0].sellerId");
Assert.assertEquals(sellerId, far.encodeId(jjSellerId), network.message(param, BasicConfig.MEMBERSEARCH, "搜索结果错误", response.body().asString()));
}
// 团队架构_删除团队成员 // 团队架构_删除团队成员
@Test(description = "团队架构_删除团队成员", priority = 100) @Test(description = "团队架构_删除团队成员", priority = 100)
public void 团队架构_删除团队成员() throws IOException{ public void 团队架构_删除团队成员() throws IOException{
...@@ -372,7 +385,6 @@ public class WhoSawMe implements Authorization { ...@@ -372,7 +385,6 @@ public class WhoSawMe implements Authorization {
// 新建任务_可推送成员 // 新建任务_可推送成员
@Test(description = "新建任务_可推送成员", priority = 26) @Test(description = "新建任务_可推送成员", priority = 26)
public void 新建任务_可推送成员() throws IOException{ public void 新建任务_可推送成员() throws IOException{
jjSellerId = far.decodeTku(BasicConfig.AGENT_TKU).get("sellerId");
param = new HashMap<>(); param = new HashMap<>();
param.put("pageIndex", 1); param.put("pageIndex", 1);
param.put("pageSize", 20); param.put("pageSize", 20);
......
...@@ -844,11 +844,12 @@ public class BasicConfig { ...@@ -844,11 +844,12 @@ public class BasicConfig {
public static final String TEAMDATA = HOST + "/kjy/mp/seller/team/data"; public static final String TEAMDATA = HOST + "/kjy/mp/seller/team/data";
public static final String TEAMMEMBERNUM = HOST + "/kjy/mp/seller/team/memberNumber"; public static final String TEAMMEMBERNUM = HOST + "/kjy/mp/seller/team/memberNumber";
public static final String TEAMRANKINGLIST = HOST + "/kjy/mp/seller/team/rankingList"; public static final String TEAMRANKINGLIST = HOST + "/kjy/mp/seller/team/rankingList";
// 团队任务 // 团队管理
public static final String FINDPAGEBYCONTENTTYPE = HOST + "/kjy/mp/exclusiveItem/findPageByContentType"; public static final String FINDPAGEBYCONTENTTYPE = HOST + "/kjy/mp/exclusiveItem/findPageByContentType";
public static final String TEAMMEMBER = HOST + "/kjy/mp/seller/team/member"; public static final String TEAMMEMBER = HOST + "/kjy/mp/seller/team/member";
public static final String TEAMSTRUCTURE_IDENTITY = HOST + "/kjy/mp/seller/team/member/identity"; public static final String TEAMSTRUCTURE_IDENTITY = HOST + "/kjy/mp/seller/team/member/identity";
public static final String MEMBERREMOVE = HOST + "/kjy/mp/seller/team/member/remove"; public static final String MEMBERREMOVE = HOST + "/kjy/mp/seller/team/member/remove";
public static final String MEMBERSEARCH = HOST + "/kjy/mp/seller/team/member/search";
......
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