Commit 390d6a1a authored by 张艳玲's avatar 张艳玲

翻牌集字提交

parent 76faf9e9
......@@ -93,16 +93,7 @@ public class WhoSawMe implements Authorization {
Assert.assertEquals(userVersion, "2", network.message(BasicConfig.USING_VERSION, "代理人当前使用版本错误,实际为2.保险专业版", response.body().asString()));
}
// 判断是否今日首次进入
@Test(description = "判断是否今日首次进入", priority = 5)
public void 判断是否今日首次进入() throws IOException {
// 判断是否今日首次进入
response = network.getResponse(BasicConfig.DAILY_FIRST);
Object data = response.jsonPath().getJsonObject("data");
Boolean needShow = response.jsonPath().getBoolean("data.needShow");
Assert.assertNotNull(data, network.message(BasicConfig.DAILY_FIRST, "判断是否今日首次进入失败,data字段为空", response.body().asString()));
Assert.assertNotNull(needShow, network.message(BasicConfig.DAILY_FIRST, "判断是否今日首次进入失败,data.needShow字段为空", response.body().asString()));
}
// 判断是否展示续费弹窗
@Test(description = "判断是否展示续费弹窗", priority = 6)
......
......@@ -127,7 +127,7 @@ public class LiveLater implements Authorization {
Object data = response.jsonPath().getJsonObject("data");
System.out.println(data);
long totalCount =response.jsonPath().getLong("data.totalCount");
Assert.assertTrue(totalCount==3, network.message(params, BasicConfig.MOBILE_ClueList, "直接邀请线索数量不对", response.body().asString()));
Assert.assertTrue(totalCount>0, network.message(params, BasicConfig.MOBILE_ClueList, "直接邀请线索数量不对", response.body().asString()));
}
......@@ -161,7 +161,7 @@ public class LiveLater implements Authorization {
Object data = response.jsonPath().getJsonObject("data");
System.out.println(data);
long totalCount =response.jsonPath().getLong("data.totalCount");
Assert.assertTrue(totalCount==7, network.message(params, BasicConfig.MOBILE_ClueList, "中奖线索数量不对", response.body().asString()));
Assert.assertTrue(totalCount>0, network.message(params, BasicConfig.MOBILE_ClueList, "中奖线索数量不对", response.body().asString()));
......@@ -225,7 +225,6 @@ public class LiveLater implements Authorization {
// params.put("liveId","Kj21MzYyNjM");
params.put("liveUserId",this.liveUserId.get(0).getLiveUserId());
Response response = network.getResponse(params,BasicConfig.MOBILE_getClueDetail);
Object data = response.jsonPath().getJsonObject("data");
System.out.println(response.body().asString());
int visitorInviteNum=response.jsonPath().getInt("data.visitorInviteNum");
Assert.assertTrue(visitorInviteNum==1, network.message(params, BasicConfig.MOBILE_getClueDetail, "访客邀请数不对", response.body().asString()));
......@@ -250,7 +249,22 @@ public class LiveLater implements Authorization {
}
@Test(description="获取回复建议",priority = 13)
@Test(description="查看客户B答题线索详情",priority = 13)
public void 查看客户B答题线索详情() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
// params.put("liveId","Kj21MzYyNjM");
params.put("liveUserId",this.liveUserId.get(1).getLiveUserId());
Response response = network.getResponse(params,BasicConfig.MOBILE_getClueDetail);
System.out.println(response.body().asString());
int answerRecords=response.jsonPath().getInt("data.answerRecords");
Assert.assertNotNull(answerRecords, network.message(params, BasicConfig.MOBILE_getClueDetail, "答题线索为null", response.body().asString()));
}
@Test(description="获取回复建议",priority = 14)
public void 获取回复建议() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
......@@ -264,7 +278,7 @@ public class LiveLater implements Authorization {
}
//需要校验返回结果
@Test(description="访客邀请列表",priority = 14)
@Test(description="访客邀请列表",priority = 15)
public void
访客邀请列表() {
Map<String, Object> params = new HashMap<String, Object>();
......@@ -281,7 +295,7 @@ public class LiveLater implements Authorization {
}
@Test(description="备注客户姓名",priority = 15)
@Test(description="备注客户姓名",priority = 16)
public void 备注客户姓名() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("remarkName","访客A");
......@@ -296,7 +310,7 @@ public class LiveLater implements Authorization {
//代理人首页已结束直播,查询待跟进线索数
@Test(description="查询待跟进线索数",priority = 16)
@Test(description="查询待跟进线索数",priority = 17)
public void 查询待跟进线索数() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
......
......@@ -7,29 +7,9 @@
<class name="com.kjj.cases.basics.Pay"/>
</classes>
</test>
<test preserve-order="true" name="上传">
<classes>
<class name="com.kjj.cases.basics.Upload"/>
</classes>
</test>
<test preserve-order="true" name="发圈">
<classes>
<class name="com.kjj.cases.basics.CircleFriends"/>
</classes>
</test>
<test preserve-order="true" name="boss看板">
<classes>
<class name="com.kjj.cases.basics.Boss"/>
</classes>
</test>
<test preserve-order="true" name="boss看板演示版">
<classes>
<class name="com.kjj.cases.basics.BossTest"/>
</classes>
</test>
<test preserve-order="true" name="贺卡">
<test preserve-order="true" name = "首页">
<classes>
<class name="com.kjj.cases.basics.GreetingCard"/>
<class name="com.kjj.cases.assistant.homePage"/>
</classes>
</test>
<test preserve-order="true" name="我的名片">
......@@ -52,11 +32,12 @@
<class name="com.kjj.cases.assistant.DailyPaper"/>
</classes>
</test>
<test preserve-order="true" name = "首页">
<test preserve-order="true" name = "谁看过我_团队看板">
<classes>
<class name="com.kjj.cases.assistant.homePage"/>
<class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/>
</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