Commit 5981530f authored by Su-Yi's avatar Su-Yi

修改tku

parent bd89ae1d
...@@ -117,43 +117,46 @@ public class CircleFriends { ...@@ -117,43 +117,46 @@ public class CircleFriends {
Assert.assertTrue(isCancel,network.message(params,FRIENDS_ADDORCANCELCOLLECT,"取消收藏素材失败")); Assert.assertTrue(isCancel,network.message(params,FRIENDS_ADDORCANCELCOLLECT,"取消收藏素材失败"));
} }
@Test(description="素材频道页",priority = 7) // @Test(description="素材频道页",priority = 7)
public void 素材频道页() throws IOException { // public void 素材频道页() throws IOException {
//频道页 头部 // //频道页 头部
Map<String, Object> params = new HashMap<String, Object>(); // Map<String, Object> params = new HashMap<String, Object>();
params.put("tagId",tagId); // params.put("tagId",tagId);
Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL); // Response response = network.getResponse(params,FRIENDS_CHANNELDETAIL);
String name = response.jsonPath().getString("data.tagName"); // String name = response.jsonPath().getString("data.tagName");
Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误")); // Assert.assertEquals(name,tagName,network.message(params,FRIENDS_CHANNELDETAIL,"素材频道页-头部获取有误"));
//
//频道页 列表 // //频道页 列表
params.put("pageSize",10); // params.put("pageSize",10);
params.put("pageNo",1); // params.put("pageNo",1);
response = network.getResponse(params,FRIENDS_GETCHANNELLIST); // response = network.getResponse(params,FRIENDS_GETCHANNELLIST);
String collectTagtId = response.jsonPath().getString("data[0].materialTag"); //素材ID // String collectTagtId = response.jsonPath().getString("data[0].materialTag"); //素材ID
boolean hasList = response.jsonPath().getInt("data.size()") > 0; // boolean hasList = response.jsonPath().getInt("data.size()") > 0;
Assert.assertEquals(collectTagtId,tagId,network.message(params,FRIENDS_GETCHANNELLIST, "素材列表获取有误")); // Assert.assertEquals(collectTagtId,tagId,network.message(params,FRIENDS_GETCHANNELLIST, "素材列表获取有误"));
Assert.assertTrue(hasList,network.message(params,FRIENDS_GETCHANNELLIST,"素材频道列表-获取有误")); // Assert.assertTrue(hasList,network.message(params,FRIENDS_GETCHANNELLIST,"素材频道列表-获取有误"));
} // }
//
@Test(description="从首页发圈列表页进入",priority = 8) // @Test(description="从首页发圈列表页进入",priority = 8)
public void 从首页发圈列表页进入() throws IOException { // public void 从首页发圈列表页进入() throws IOException {
// 获取首页发圈素材列表 // // 获取首页发圈素材列表
Response response = network.getResponse(HOME_GETHOMETIMELINECONTENT); // Response response = network.getResponse(HOME_GETHOMETIMELINECONTENT);
String currentId = response.jsonPath().getString("data.materialVos[0].contentId"); // String currentId = response.jsonPath().getString("data.materialVos[0].contentId");
Assert.assertNotNull(currentId,network.message(HOME_GETHOMETIMELINECONTENT,"获取首页发圈列表有误")); // Assert.assertNotNull(currentId,network.message(HOME_GETHOMETIMELINECONTENT,"获取首页发圈列表有误"));
//
// 进入发圈 // // 如果有推荐列表,进入发圈
Map<String, Object> params = new HashMap<String, Object>(); // if (currentId.length() > 0){
params.put("currentId",currentId); // Map<String, Object> params = new HashMap<String, Object>();
response = network.getResponse(params,FRIENDS_GETCURRENTINFO); // params.put("currentId",currentId);
String topContentId = response.jsonPath().getString("data.contentId"); // response = network.getResponse(params,FRIENDS_GETCURRENTINFO);
Assert.assertEquals(topContentId,currentId,network.message(params,FRIENDS_GETCURRENTINFO,"从首页进入发圈的头部素材有误")); // String topContentId = response.jsonPath().getString("data.contentId");
} // Assert.assertEquals(topContentId,currentId,network.message(params,FRIENDS_GETCURRENTINFO,"从首页进入发圈的头部素材有误"));
// }
//
// }
@AfterClass @AfterClass
public static void tearDown(){ public static void tearDown(){
apiCount += 13; apiCount += 9;
} }
} }
...@@ -198,7 +198,6 @@ public class Upload { ...@@ -198,7 +198,6 @@ public class Upload {
Assert.assertEquals(length, 0, network.message(params, UPLOAD_LIST,"获取我的上传-其他列表数量有误")); Assert.assertEquals(length, 0, network.message(params, UPLOAD_LIST,"获取我的上传-其他列表数量有误"));
} }
@AfterClass @AfterClass
public static void tearDown(){ public static void tearDown(){
apiCount += 13; apiCount += 13;
......
...@@ -10,13 +10,13 @@ public class BasicConfig { ...@@ -10,13 +10,13 @@ public class BasicConfig {
// 用户微信昵称 // 用户微信昵称
public static final String WECHAT_NAME = "小疙瘩人寿"; // public static final String WECHAT_NAME = "小疙瘩人寿"; //
// 用户tku // 用户tku
public static final String AGENT_TKU = "T3gM31f18jAW31PgwSEShfNYfXtSfDebWYQ2hqmJgALfJNbiBFXPoGr8zu375YHQQk2nXvnCgqkfNwSERE"; public static final String AGENT_TKU = "T3gM31f18jAW31TC64xzX45nN9tZiJRoYSZCvQENe24e3C2uFMqoqSaYo9nya2g95NPAKx9fXBDH8i7Hb5";
// *************** 钉钉机器人 *************** // *************** 钉钉机器人 ***************
// 线上-告警群 // 线上-告警群
// public static final String DINGTALKPATH = "https://oapi.dingtalk.com/robot/send?access_token=f63c9cb36e89dd68e9af82d926933b3afc6544e57b23a3a55ed5b3b772d5e8d2"; public static final String DINGTALKPATH = "https://oapi.dingtalk.com/robot/send?access_token=f63c9cb36e89dd68e9af82d926933b3afc6544e57b23a3a55ed5b3b772d5e8d2";
// 测试 // 测试
public static final String DINGTALKPATH = "https://oapi.dingtalk.com/robot/send?access_token=e4b7d997fb9f90b17672dcdb9c9922d52c59f741b82081a368f4d3c305c1afcd"; // public static final String DINGTALKPATH = "https://oapi.dingtalk.com/robot/send?access_token=e4b7d997fb9f90b17672dcdb9c9922d52c59f741b82081a368f4d3c305c1afcd";
; ;
// *************** 客集集域名 *************** // *************** 客集集域名 ***************
......
This diff is collapsed.
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