Commit 3dfa276f authored by 张艳玲's avatar 张艳玲

接口地址修改

parent f08e580a
...@@ -228,8 +228,6 @@ public class LiveLater implements Authorization { ...@@ -228,8 +228,6 @@ public class LiveLater implements Authorization {
System.out.println(response.body().asString()); System.out.println(response.body().asString());
int visitorInviteNum=response.jsonPath().getInt("data.visitorInviteNum"); int visitorInviteNum=response.jsonPath().getInt("data.visitorInviteNum");
Assert.assertTrue(visitorInviteNum==1, network.message(params, BasicConfig.MOBILE_getClueDetail, "访客邀请数不对", response.body().asString())); Assert.assertTrue(visitorInviteNum==1, network.message(params, BasicConfig.MOBILE_getClueDetail, "访客邀请数不对", response.body().asString()));
String remarkName=response.jsonPath().getString("data.remarkName");
Assert.assertEquals(remarkName,"访客A", network.message(params, BasicConfig.MOBILE_getClueDetail, "访客备注名不正确", response.body().asString()));
int speakNum=response.jsonPath().getInt("data.speakNum"); int speakNum=response.jsonPath().getInt("data.speakNum");
Assert.assertTrue(speakNum>0, network.message(params, BasicConfig.MOBILE_getClueDetail, "没有评论数", response.body().asString())); Assert.assertTrue(speakNum>0, network.message(params, BasicConfig.MOBILE_getClueDetail, "没有评论数", response.body().asString()));
Object questions=response.jsonPath().getJsonObject("data.questions"); Object questions=response.jsonPath().getJsonObject("data.questions");
...@@ -257,7 +255,7 @@ public class LiveLater implements Authorization { ...@@ -257,7 +255,7 @@ public class LiveLater implements Authorization {
params.put("liveUserId",this.liveUserId.get(1).getLiveUserId()); params.put("liveUserId",this.liveUserId.get(1).getLiveUserId());
Response response = network.getResponse(params,BasicConfig.MOBILE_getClueDetail); Response response = network.getResponse(params,BasicConfig.MOBILE_getClueDetail);
System.out.println(response.body().asString()); System.out.println(response.body().asString());
int answerRecords=response.jsonPath().getInt("data.answerRecords"); Object answerRecords=response.jsonPath().getJsonObject("data.answerRecords");
Assert.assertNotNull(answerRecords, network.message(params, BasicConfig.MOBILE_getClueDetail, "答题线索为null", response.body().asString())); Assert.assertNotNull(answerRecords, network.message(params, BasicConfig.MOBILE_getClueDetail, "答题线索为null", 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