Commit c85ff764 authored by 龚小红's avatar 龚小红

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

fix:修改文章FAQ列表校验条件

See merge request test-group/kejiji!154
parents 2f47bea2 539b4dce
...@@ -157,9 +157,8 @@ public class ForwardAndRead implements Authorization { ...@@ -157,9 +157,8 @@ public class ForwardAndRead implements Authorization {
param.put("pageIndex", 1); param.put("pageIndex", 1);
param.put("pageSize", 2); param.put("pageSize", 2);
response = network.getResponse(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS); response = network.getResponse(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS);
int totalCount = response.jsonPath().getInt("data.totalCount");
List<Object> lists = response.jsonPath().getList("data.list"); List<Object> lists = response.jsonPath().getList("data.list");
Assert.assertEquals(totalCount, lists.size(), network.message(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS, "FAQ总数与FAQ列表大小不一致", response.body().asString())); Assert.assertTrue(lists.size() > 0, network.message(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS, "未获取到文章FAQs", response.body().asString()));
questionId = response.jsonPath().getString("data.list[0].questionId"); questionId = response.jsonPath().getString("data.list[0].questionId");
} }
......
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