Commit 762f8388 authored by 郭姣's avatar 郭姣

成功案例,上传链接接口用例修改

parent 1890fa7b
......@@ -226,8 +226,8 @@ public class HomePage implements Authorization {
@Test(description = "首页_公司专区列表",priority = 15)
public void 首页_公司专区列表(){
Response response = network.getResponse(HOME_getExclusiveArea);
Object data = response.jsonPath().getJsonObject("data");
Assert.assertNotNull(data,network.message(HOME_getExclusiveArea,"获取公司专区列表失败",response.body().asString()));
String desc = response.jsonPath().getString("desc");
Assert.assertEquals(desc,"OK",network.message(HOME_getExclusiveArea,"获取公司专区列表失败",response.body().asString()));
}
//管理后台新增成功案例
......
......@@ -57,11 +57,11 @@ public class Upload {
params.put("page","upload_link");
long timestamp = System.currentTimeMillis();
params.put("timestamp",timestamp);
Response response = network.getResponse(params,GREETING_getTipsByPage);
Response response = network.getResponse(params,UPLOAD_getTipsByPage);
boolean isShowTips = response.jsonPath().getBoolean("data.isShowTips");
boolean success = response.jsonPath().getBoolean("success");
Assert.assertTrue(isShowTips, network.message(params,GREETING_getTipsByPage,"tips展示成功",response.body().asString()));
Assert.assertTrue(success,network.message(params,GREETING_getTipsByPage,"查看tips请求失败",response.body().asString()));
Assert.assertTrue(isShowTips, network.message(params,UPLOAD_getTipsByPage,"tips展示成功",response.body().asString()));
Assert.assertTrue(success,network.message(params,UPLOAD_getTipsByPage,"查看tips请求失败",response.body().asString()));
}
@Test(description = "上传_文章链接",priority = 5)
......
......@@ -683,6 +683,7 @@ public class BasicConfig {
public static final String UPLOAD_UNBIND = HOST + "/kjy/mp/seller/import/unbind";
public static final String UPLOAD_supportDomain = HOST + "/kjy/mp/supportDomain";
public static final String UPLOAD_sellerFirstVisit = HOST + "/kjy/mp/newFunction/sellerFirstVisit";
public static final String UPLOAD_getTipsByPage = HOST + "/kjy/mp/tips/getTipsByPage";
// *************** 新手任务 ***************
public static final String NOVICE_LIST = HOST + "/kjy/mp/seller/novice/list";
......
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