Commit 53e5444a authored by 龚小红's avatar 龚小红

将文章相关的用例中的contengId固定为一篇文章

parent d54fc86f
......@@ -42,6 +42,7 @@ public class ArticalPersonCard implements Authorization {
Response response = network.getResponse(ARTICLE_GETEXPLOSIONCONTENTLIST);
articleContentId = response.jsonPath().getString("data[0].contentId");
Assert.assertNotNull(articleContentId,network.message(ARTICLE_GETEXPLOSIONCONTENTLIST,"获取爆款素材文章失败",response.body().asString()));
articleContentId = "Kj22MTk4NDc1OQ";
}
//文章内容页
@Test(description="代理人_文章内容页",priority = 3)
......
......@@ -42,6 +42,7 @@ public class RecommendMaterial implements Authorization {
Response response = network.getResponse(ARTICLE_GETEXPLOSIONCONTENTLIST);
grasscontentId = response.jsonPath().getString("data[0].contentId");
Assert.assertNotNull(grasscontentId, network.message(ARTICLE_GETEXPLOSIONCONTENTLIST, "获取种草素材文章失败", response.body().asString()));
grasscontentId ="Kj22MTk4NDc1OQ";
}
//种草文章内容页
......
......@@ -19,7 +19,7 @@ import static com.kjj.utils.ThreadSleepUtils.sleep;
public class NoviceGuidance implements Authorization {
private long userId; //小葡萄的用户id
private long sellerId; //小葡萄的销售id
private String grasscontentId; //文章id
private String grasscontentId = "Kj22MTk4NDc1OQ"; //文章id
private String scid; //转发文章的scid
private String visitId; //访问id
private static final NetworkUtils network = NetworkUtils.getInstance();
......@@ -137,14 +137,10 @@ public class NoviceGuidance implements Authorization {
@Test(description = "代理人转发文章后访客查看文章",priority = 10)
public void 代理人转发文章(){
//获取种草素材id
Response response = network.getResponse(ARTICLE_GETEXPLOSIONCONTENTLIST);
grasscontentId = response.jsonPath().getString("data[0].contentId");
//获取素材对应的scid
Map<String, Object> params = new HashMap<>();
params.put("contentId", grasscontentId);
response = network.getResponse(params, GETSCID);
Response response = network.getResponse(params, GETSCID);
scid = response.jsonPath().getString("data");
Assert.assertNotNull(scid, network.message(params, GETSCID, "获取文章的scid失败", 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