Commit 16e37d73 authored by 张艳玲's avatar 张艳玲

Merge branch 'feature/20210730-xmc' into 'master'

解决'客户详情页_来访记录'执行报错

See merge request test-group/kejiji!88
parents 10b96bcd 6e5dcc1d
package com.kjj.bean.whoSawMe;
import lombok.Data;
import java.util.List;
@Data
public class VisitRecords {
private List<recordsList> records;
@Data
public static class recordsList{
private String clueId;
private int clueType;
private String contentId;
private String contentType;
private String scid;
}
}
package com.kjj.cases.assistant.whoSawMe;
import com.kjj.cases.admin.Authorization;
import com.kjj.config.BasicConfig;
import com.kjj.utils.BaseUtils;
......
package com.kjj.cases.assistant.whoSawMe;
import com.kjj.bean.whoSawMe.ChatList;
import com.kjj.bean.whoSawMe.CustFavorite;
import com.kjj.bean.whoSawMe.LinkList;
import com.kjj.bean.whoSawMe.RemindInfo;
import com.kjj.bean.whoSawMe.*;
import com.kjj.cases.admin.Authorization;
import com.kjj.config.BasicConfig;
import com.kjj.utils.BaseUtils;
......@@ -402,8 +399,13 @@ public class MyCustomer implements Authorization {
param.put("timeOrderType", 2);
response = network.getResponse(param, BasicConfig.CUSTVISITLIST);
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.CUSTVISITLIST, "接口请求失败", response.body().asString()));
List<Object> visitLists = response.jsonPath().getList("data.list");
Assert.assertEquals(visitLists.size(), visitCount, network.message(param, BasicConfig.CUSTVISITLIST, "访客来访记录数目与来访次数不符", response.body().asString()));
List<VisitRecords> visitRecords = JsonUtil.parseResponseToPageBean(response, VisitRecords.class);
VisitRecords.recordsList recordsOfContent = visitRecords.get(0).getRecords().get(0);
VisitRecords.recordsList recordsOfClue = visitRecords.get(0).getRecords().get(1);
String contentId = recordsOfContent.getContentId();
int clueType = recordsOfClue.getClueType();
Assert.assertEquals(contentId, BasicConfig.ARTICLE_CONTENTID, network.message(param ,BasicConfig.CUSTVISITLIST, "访问记录详情有误", response.body().asString()));
Assert.assertEquals(clueType, 31, network.message(param, BasicConfig.CUSTVISITLIST, "访问记录详情有误", response.body().asString()));
}
// 客户详情页_任务蒙层
......
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