Commit 85678d97 authored by 龚小红's avatar 龚小红

线索重构,删除客户列表和部分接口,替换部分接口

parent 6e60b08f
...@@ -127,7 +127,7 @@ public class MyForward implements Authorization { ...@@ -127,7 +127,7 @@ public class MyForward implements Authorization {
param.put("visitType", 2); param.put("visitType", 2);
response = network.postResponse(param, BasicConfig.FORWARD_LIST); response = network.postResponse(param, BasicConfig.FORWARD_LIST);
Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.FORWARD_LIST, "接口调用失败", response.body().asString())); Assert.assertTrue(response.jsonPath().getBoolean("success"), network.message(param, BasicConfig.FORWARD_LIST, "接口调用失败", response.body().asString()));
String contentId = response.jsonPath().getString("data.list[0].contentVo.contentId"); String contentId = response.jsonPath().getString("data.list[1].contentVo.contentId");
Assert.assertEquals(contentId, ARTICLE_CONTENTID, network.message(param, FORWARD_LIST, "筛选结果contentId与预期不符", response.body().asString())); Assert.assertEquals(contentId, ARTICLE_CONTENTID, network.message(param, FORWARD_LIST, "筛选结果contentId与预期不符", response.body().asString()));
} }
......
...@@ -48,6 +48,7 @@ public class Comment implements Authorization { ...@@ -48,6 +48,7 @@ public class Comment implements Authorization {
@Test(description = "访客A发表评论", priority = 2) @Test(description = "访客A发表评论", priority = 2)
public void 访客A发表评论() { public void 访客A发表评论() {
visitorAuth1(); visitorAuth1();
sleep(500);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("msg", "希望能好运"); Params.put("msg", "希望能好运");
...@@ -59,6 +60,7 @@ public class Comment implements Authorization { ...@@ -59,6 +60,7 @@ public class Comment implements Authorization {
@Test(description = "访客B回复访客A的评论", priority = 3) @Test(description = "访客B回复访客A的评论", priority = 3)
public void 访客B回复访客A的评论() { public void 访客B回复访客A的评论() {
visitorAuth2(); visitorAuth2();
sleep(500);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("msg", "你一定会好运"); Params.put("msg", "你一定会好运");
...@@ -71,6 +73,7 @@ public class Comment implements Authorization { ...@@ -71,6 +73,7 @@ public class Comment implements Authorization {
@Test(description = "访客C回复访客B的回复", priority = 4) @Test(description = "访客C回复访客B的回复", priority = 4)
public void 访客C回复访客B的回复() { public void 访客C回复访客B的回复() {
visitorAuth3(); visitorAuth3();
sleep(500);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("msg", "你也会好运的!"); Params.put("msg", "你也会好运的!");
...@@ -110,6 +113,7 @@ public class Comment implements Authorization { ...@@ -110,6 +113,7 @@ public class Comment implements Authorization {
@Test(description = "访客C回复小马甲", priority = 7) @Test(description = "访客C回复小马甲", priority = 7)
public void 访客C回复小马甲() { public void 访客C回复小马甲() {
visitorAuth3(); visitorAuth3();
sleep(500);
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Params.put("msg", "猜猜我是谁"); Params.put("msg", "猜猜我是谁");
......
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