Commit 9003940d authored by xiamengchen's avatar xiamengchen

更新我的客户用例

parent 5b175a1f
...@@ -8,7 +8,6 @@ import io.restassured.response.Response; ...@@ -8,7 +8,6 @@ import io.restassured.response.Response;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import org.w3c.dom.events.UIEvent;
import java.io.IOException; import java.io.IOException;
import java.util.*; import java.util.*;
...@@ -242,41 +241,6 @@ public class ForwardAndRead implements Authorization { ...@@ -242,41 +241,6 @@ public class ForwardAndRead implements Authorization {
ThreadSleepUtils.sleep(10000); ThreadSleepUtils.sleep(10000);
} }
@Test(description = "获取文章测评", priority = 14)
public void 获取文章测评() throws IOException{
// 获取测评contentId
param.clear();
param.put("scid", articleScId);
response = network.getResponse(param, BasicConfig.SELLERCARD_RECOMMENDLISTV3);
Map<String, Object> clueActivityDisplayVo = response.jsonPath().getMap("data.clueActivityDisplayVo");
riskTestContentId = (String) clueActivityDisplayVo.get("contentId");
// 获取测评scid
String sid = encodeId(sellerId);
param.clear();
param.put("contentId", riskTestContentId);
param.put("sid", sid);
System.out.println(param);
response = network.getResponse(param, BasicConfig.GETSCID);
riskTestScId = response.jsonPath().getString("data");
Assert.assertNotNull(riskTestScId, network.message(param, BasicConfig.GETSCID, "获取测评scid失败", response.body().asString()));
}
@Test(description = "领取测评报告", priority = 15)
public void 领取测评报告() throws IOException{
param.clear();
param.put("completed", 1);
param.put("originScId", articleScId);
param.put("riskTestOperateType", 2);
param.put("scid", riskTestScId);
param.put("sourceId", articleScId);
param.put("sourceType", 1);
param.put("visitExtra", "{\"性别\":\"男\",\"年龄\":\"85后\",\"家庭成员构成\":\"2个子女\",\"不良生活习惯\":\"运动少\",\"出行习惯\":\"骑行\",\"月收入\":\"5000-10000\",\"负债水平\":\"无\"}");
response = network.postResponse(param, BasicConfig.RISKTEST_SENDINFO);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(param, BasicConfig.RISKTEST_SENDINFO, "点击领取测评报告失败", response.body().asString()));
}
// 通过素材contentId获取线索员文章scId // 通过素材contentId获取线索员文章scId
public String getContentScId(String contentId){ public String getContentScId(String contentId){
param = new HashMap<>(); param = new HashMap<>();
......
...@@ -414,8 +414,19 @@ public class MyCustomer implements Authorization { ...@@ -414,8 +414,19 @@ public class MyCustomer implements Authorization {
Assert.assertEquals(clueType, 31, network.message(param, BasicConfig.CUSTVISITLIST, "访问记录详情有误", response.body().asString())); Assert.assertEquals(clueType, 31, network.message(param, BasicConfig.CUSTVISITLIST, "访问记录详情有误", response.body().asString()));
} }
// 客户线索跟进
@Test(description = "客户线索跟进_风险评测", priority = 24)
public void 客户线索跟进_风险评测() throws IOException{
// 跟进建议
param.clear();
param.put("userId", visitor1UserId);
response = network.getResponse(param, BasicConfig.FOLLOWADVICE);
Object data = response.jsonPath().getJsonObject("data");
Assert.assertNotNull(data, network.message(param, BasicConfig.FOLLOWADVICE, "接口响应数据为空", response.body().asString()));
}
// 客户详情页_任务蒙层 // 客户详情页_任务蒙层
@Test(description = "客户详情页_任务蒙层", priority = 24) @Test(description = "客户详情页_任务蒙层", priority = 25)
public void 客户详情页_任务蒙层() throws IOException{ public void 客户详情页_任务蒙层() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("sceneCode", "noviceTask_visitorsCustomerInfoComplete"); param.put("sceneCode", "noviceTask_visitorsCustomerInfoComplete");
...@@ -425,7 +436,7 @@ public class MyCustomer implements Authorization { ...@@ -425,7 +436,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_特别关注弹层 // 客户详情页_特别关注弹层
@Test(description = "客户详情页_特别关注弹层", priority = 25) @Test(description = "客户详情页_特别关注弹层", priority = 26)
public void 客户详情页_特别关注弹层() throws IOException{ public void 客户详情页_特别关注弹层() throws IOException{
response = network.getResponse(BasicConfig.ISDISPLAYSPECIAL); response = network.getResponse(BasicConfig.ISDISPLAYSPECIAL);
Object data = response.jsonPath().getJsonObject("data"); Object data = response.jsonPath().getJsonObject("data");
...@@ -433,7 +444,7 @@ public class MyCustomer implements Authorization { ...@@ -433,7 +444,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_素材访问记录 // 客户详情页_素材访问记录
@Test(description = "客户详情页_素材访问记录", priority = 26) @Test(description = "客户详情页_素材访问记录", priority = 27)
public void 客户详情页_素材访问记录() throws IOException{ public void 客户详情页_素材访问记录() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", visitor1UserId); param.put("custUserId", visitor1UserId);
...@@ -445,7 +456,7 @@ public class MyCustomer implements Authorization { ...@@ -445,7 +456,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_关键线索_提交资料 // 客户详情页_关键线索_提交资料
@Test(description = "客户详情页_资料信息", priority = 27) @Test(description = "客户详情页_资料信息", priority = 28)
public void 关键线索_提交资料() throws IOException{ public void 关键线索_提交资料() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", visitor1UserId); param.put("custUserId", visitor1UserId);
...@@ -454,7 +465,7 @@ public class MyCustomer implements Authorization { ...@@ -454,7 +465,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_关键线索_中奖记录 // 客户详情页_关键线索_中奖记录
@Test(description = "客户详情页_关键信息_中奖记录",priority = 28) @Test(description = "客户详情页_关键信息_中奖记录",priority = 29)
public void 关键线索_中奖记录() throws IOException{ public void 关键线索_中奖记录() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", visitor1UserId); param.put("custUserId", visitor1UserId);
...@@ -463,7 +474,7 @@ public class MyCustomer implements Authorization { ...@@ -463,7 +474,7 @@ public class MyCustomer implements Authorization {
} }
// 客户详情页_关键信息_喜欢的内容 // 客户详情页_关键信息_喜欢的内容
@Test(description = "关键信息_喜欢的内容", priority = 29) @Test(description = "关键信息_喜欢的内容", priority = 30)
public void 关键信息_喜欢的内容() throws IOException{ public void 关键信息_喜欢的内容() throws IOException{
param = new HashMap<>(); param = new HashMap<>();
param.put("custUserId", visitor1UserId); param.put("custUserId", visitor1UserId);
...@@ -477,7 +488,7 @@ public class MyCustomer implements Authorization { ...@@ -477,7 +488,7 @@ public class MyCustomer implements Authorization {
} }
// 客户信息_客户管理_备注和标签 // 客户信息_客户管理_备注和标签
@Test(description = "备注和标签", priority = 30) @Test(description = "备注和标签", priority = 31)
public void 客户信息_客户管理_备注和标签() throws IOException{ public void 客户信息_客户管理_备注和标签() throws IOException{
List<String> tagIds = new ArrayList<>(); List<String> tagIds = new ArrayList<>();
tagIds.add(createTagId); tagIds.add(createTagId);
......
...@@ -735,6 +735,7 @@ public class BasicConfig { ...@@ -735,6 +735,7 @@ public class BasicConfig {
public static final String DYNAMIC_ADDVISIT = HOST + "/kjy/mp/seller/dynamic/addVisit"; public static final String DYNAMIC_ADDVISIT = HOST + "/kjy/mp/seller/dynamic/addVisit";
public static final String CLUEINFO = HOST + "/kjy/mp/whoSawMe/clue/info"; public static final String CLUEINFO = HOST + "/kjy/mp/whoSawMe/clue/info";
public static final String CLUEADVISE = HOST + "/kjy/mp/whoSawMe/clue/info/advise"; public static final String CLUEADVISE = HOST + "/kjy/mp/whoSawMe/clue/info/advise";
public static final String FOLLOWADVICE = HOST + "/kjy/mp/whoSawMe/clue/followAdvice";
// *************** 运营周报 *************** // *************** 运营周报 ***************
public static final String WEEKLY_INDEXINFO = HOST + "/kjy/mp/weekly/getWeeklyIndexInfo"; public static final String WEEKLY_INDEXINFO = HOST + "/kjy/mp/weekly/getWeeklyIndexInfo";
......
...@@ -6,87 +6,87 @@ ...@@ -6,87 +6,87 @@
<class name="com.kjj.cases.assistant.menu.NoviceGuidance"/> <class name="com.kjj.cases.assistant.menu.NoviceGuidance"/>
</classes> </classes>
</test> </test>
<!-- <test preserve-order="true" name="支付">--> <test preserve-order="true" name="支付">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.pay.Pay"/>--> <class name="com.kjj.cases.assistant.pay.Pay"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name="邀请返现">--> <test preserve-order="true" name="邀请返现">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.pay.Cashback"/>--> <class name="com.kjj.cases.assistant.pay.Cashback"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "首页">--> <test preserve-order="true" name = "首页">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.homePage.HomePage"/>--> <class name="com.kjj.cases.assistant.homePage.HomePage"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name="我的名片">--> <test preserve-order="true" name="我的名片">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.card.PersonCard"/>--> <class name="com.kjj.cases.assistant.card.PersonCard"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name="文章中个人名片">--> <test preserve-order="true" name="文章中个人名片">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.card.ArticalPersonCard"/>--> <class name="com.kjj.cases.assistant.card.ArticalPersonCard"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "种草素材">--> <test preserve-order="true" name = "种草素材">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.homePage.RecommendMaterial"/>--> <class name="com.kjj.cases.assistant.homePage.RecommendMaterial"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "今日早报">--> <test preserve-order="true" name = "今日早报">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.homePage.DailyPaper"/>--> <class name="com.kjj.cases.assistant.homePage.DailyPaper"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "上传链接">--> <test preserve-order="true" name = "上传链接">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.homePage.Upload"/>--> <class name="com.kjj.cases.assistant.homePage.Upload"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<test preserve-order="true" name = "获取访客"> <test preserve-order="true" name = "获取访客">
<classes> <classes>
<class name="com.kjj.cases.assistant.whoSawMe.ForwardAndRead"/> <class name="com.kjj.cases.assistant.whoSawMe.ForwardAndRead"/>
</classes> </classes>
</test> </test>
<!-- <test preserve-order="true" name = "谁看过我">--> <test preserve-order="true" name = "谁看过我">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/>--> <class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "我的转发">--> <test preserve-order="true" name = "我的转发">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.whoSawMe.MyForward"/>--> <class name="com.kjj.cases.assistant.whoSawMe.MyForward"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "我的客户">--> <test preserve-order="true" name = "我的客户">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.whoSawMe.MyCustomer"/>--> <class name="com.kjj.cases.assistant.whoSawMe.MyCustomer"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "贺卡">--> <test preserve-order="true" name = "贺卡">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.markettools.GreetingCrad"/>--> <class name="com.kjj.cases.assistant.markettools.GreetingCrad"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "抽奖转盘">--> <test preserve-order="true" name = "抽奖转盘">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.markettools.GameLottery"/>--> <class name="com.kjj.cases.assistant.markettools.GameLottery"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "邀请函和趣味测评">--> <test preserve-order="true" name = "邀请函和趣味测评">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.markettools.InvitationLetter"/>--> <class name="com.kjj.cases.assistant.markettools.InvitationLetter"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
<!-- <test preserve-order="true" name = "使用攻略和设置中心">--> <test preserve-order="true" name = "使用攻略和设置中心">
<!-- <classes>--> <classes>
<!-- <class name="com.kjj.cases.assistant.menu.PersonalCenter"/>--> <class name="com.kjj.cases.assistant.menu.PersonalCenter"/>
<!-- </classes>--> </classes>
<!-- </test>--> </test>
</suite> </suite>
<!-- 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