Commit 814dfdc5 authored by Su-Yi's avatar Su-Yi

修改tku

parent 5981530f
......@@ -117,46 +117,46 @@ public class CircleFriends {
Assert.assertTrue(isCancel,network.message(params,FRIENDS_ADDORCANCELCOLLECT,"取消收藏素材失败"));
}
// @Test(description="素材频道页",priority = 7)
// public void 素材频道页() throws IOException {
// //频道页 头部
// Map<String, Object> params = new HashMap<String, Object>();
// params.put("tagId",tagId);
// Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL);
// String name = response.jsonPath().getString("data.tagName");
// Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误"));
//
// //频道页 列表
// params.put("pageSize",10);
// params.put("pageNo",1);
// response = network.getResponse(params,FRIENDS_GETCHANNELLIST);
// String collectTagtId = response.jsonPath().getString("data[0].materialTag"); //素材ID
// boolean hasList = response.jsonPath().getInt("data.size()") > 0;
// Assert.assertEquals(collectTagtId,tagId,network.message(params,FRIENDS_GETCHANNELLIST, "素材列表获取有误"));
// Assert.assertTrue(hasList,network.message(params,FRIENDS_GETCHANNELLIST,"素材频道列表-获取有误"));
// }
//
// @Test(description="从首页发圈列表页进入",priority = 8)
// public void 从首页发圈列表页进入() throws IOException {
// // 获取首页发圈素材列表
// Response response = network.getResponse(HOME_GETHOMETIMELINECONTENT);
// String currentId = response.jsonPath().getString("data.materialVos[0].contentId");
// Assert.assertNotNull(currentId,network.message(HOME_GETHOMETIMELINECONTENT,"获取首页发圈列表有误"));
//
// // 如果有推荐列表,进入发圈
// if (currentId.length() > 0){
// Map<String, Object> params = new HashMap<String, Object>();
// params.put("currentId",currentId);
// response = network.getResponse(params,FRIENDS_GETCURRENTINFO);
// String topContentId = response.jsonPath().getString("data.contentId");
// Assert.assertEquals(topContentId,currentId,network.message(params,FRIENDS_GETCURRENTINFO,"从首页进入发圈的头部素材有误"));
// }
//
// }
@Test(description="素材频道页",priority = 7)
public void 素材频道页() throws IOException {
//频道页 头部
Map<String, Object> params = new HashMap<String, Object>();
params.put("tagId",tagId);
Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL);
String name = response.jsonPath().getString("data.tagName");
Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误"));
//频道页 列表
params.put("pageSize",10);
params.put("pageNo",1);
response = network.getResponse(params,FRIENDS_GETCHANNELLIST);
String collectTagtId = response.jsonPath().getString("data[0].materialTag"); //素材ID
boolean hasList = response.jsonPath().getInt("data.size()") > 0;
Assert.assertEquals(collectTagtId,tagId,network.message(params,FRIENDS_GETCHANNELLIST, "素材列表获取有误"));
Assert.assertTrue(hasList,network.message(params,FRIENDS_GETCHANNELLIST,"素材频道列表-获取有误"));
}
@Test(description="从首页发圈列表页进入",priority = 8)
public void 从首页发圈列表页进入() throws IOException {
// 获取首页发圈素材列表
Response response = network.getResponse(HOME_GETHOMETIMELINECONTENT);
String currentId = response.jsonPath().getString("data.materialVos[0].contentId");
Assert.assertNotNull(currentId,network.message(HOME_GETHOMETIMELINECONTENT,"获取首页发圈列表有误"));
// 如果有推荐列表,进入发圈
if (currentId.length() > 0){
Map<String, Object> params = new HashMap<String, Object>();
params.put("currentId",currentId);
response = network.getResponse(params,FRIENDS_GETCURRENTINFO);
String topContentId = response.jsonPath().getString("data.contentId");
Assert.assertEquals(topContentId,currentId,network.message(params,FRIENDS_GETCURRENTINFO,"从首页进入发圈的头部素材有误"));
}
}
@AfterClass
public static void tearDown(){
apiCount += 9;
apiCount += 13;
}
}
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