Commit 6b5824ad authored by xiamengchen's avatar xiamengchen

代码存档

parent 5e6a7d12
package com.kjj.bean.assistant;
package com.kjj.bean.whoSawMe;
import lombok.Data;
......
package com.kjj.bean.whoSawMe;
import lombok.Data;
@Data
public class CustFavorite {
private String contentId;
private String userActionTypeEnum;
}
package com.kjj.bean.assistant;
package com.kjj.bean.whoSawMe;
import lombok.Data;
......
package com.kjj.cases.assistant.whoSawMe;
import com.kjj.bean.whoSawMe.CustFavorite;
import com.kjj.cases.admin.Authorization;
import com.kjj.config.BasicConfig;
import com.kjj.utils.BaseUtils;
......@@ -434,9 +435,37 @@ public class MyCustomer implements Authorization {
Assert.assertEquals(totalCount, visitCount, network.message(param, BasicConfig.CONTENTVISITRECORD, "访问记录总数与来访次数不符", response.body().asString()));
}
// 客户详情页_资料信息
// 客户详情页_关键线索_提交资料
@Test(description = "客户详情页_资料信息", priority = 27)
public void 客户详情页_资料信息() throws IOException{
public void 关键线索_提交资料() throws IOException{
param = new HashMap<>();
param.put("custUserId", visitor1UserId);
response = network.getResponse(param, BasicConfig.CUSTMATERIALS);
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CUSTMATERIALS, "接口请求失败", response.body().asString()));
}
// 客户详情页_关键线索_中奖记录
@Test(description = "客户详情页_关键信息_中奖记录",priority = 28)
public void 关键线索_中奖记录() throws IOException{
param = new HashMap<>();
param.put("custUserId", visitor1UserId);
response = network.getResponse(param, BasicConfig.CUSTLOTTERIES);
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CUSTLOTTERIES, "接口请求失败", response.body().asString()));
}
// 客户详情页_关键信息_喜欢的内容
@Test(description = "关键信息_喜欢的内容", priority = 29)
public void 关键信息_喜欢的内容() throws IOException{
param = new HashMap<>();
param.put("custUserId", visitor1UserId);
response = network.getResponse(param, BasicConfig.CUSTFAVORITE);
List<CustFavorite> custFavorites = JsonUtil.parseResponseToListBean(response, CustFavorite.class);
Assert.assertTrue(custFavorites.size() >= 1, network.message(param, BasicConfig.CUSTFAVORITE, "数据记录数有误", response.body().asString()));
String userActionTypeEnum = custFavorites.get(0).getUserActionTypeEnum();
String contentId = custFavorites.get(0).getContentId();
Assert.assertEquals(userActionTypeEnum, "FORWARD", network.message(param, BasicConfig.CUSTFAVORITE, "用户动作类型记录有误", response.body().asString()));
Assert.assertEquals(contentId, BasicConfig.ARTICLE_CONTENTID, network.message(param, BasicConfig.CUSTFAVORITE, "用户产生动作的素材ID有误", response.body().asString()));
}
}
package com.kjj.cases.assistant.whoSawMe;
import com.beust.jcommander.internal.Lists;
import com.kjj.bean.assistant.ArticlePage;
import com.kjj.bean.assistant.RankingList;
import com.kjj.bean.whoSawMe.ArticlePage;
import com.kjj.bean.whoSawMe.RankingList;
import com.kjj.cases.admin.Authorization;
import com.kjj.config.BasicConfig;
import com.kjj.utils.BaseUtils;
......
......@@ -723,6 +723,9 @@ public class BasicConfig {
public static final String UPDATEREMARKNAME = HOST + "/kjy/mp/seller/customer/updateRemarkName";
public static final String GETCUSTAGANDMEMO = HOST + "/kjy/mp/seller/getCustomerTagAndMemoInfo";
public static final String UPDATETAGANDMEMO = HOST + "/kjy/mp/seller/updateTagAndMemoInfo";
public static final String CUSTMATERIALS = HOST + "/kjy/mp/whoSawMe/materials";
public static final String CUSTLOTTERIES = HOST + "/kjy/mp/whoSawMe/lotteries";
public static final String CUSTFAVORITE = HOST + "/kjy/mp/whoSawMe/custFavorite";
// *************** 标签管理 ***************
public static final String TAG_ADDORUPDATE = HOST + "/kjy/mp/sellerTag/addOrUpdateTag";
public static final String TAG_GETLIST = HOST + "/kjy/mp/sellerTag/getTagList";
......
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