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

fix-渠道列表断言

parent 6cdc58d0
...@@ -75,7 +75,7 @@ public class Manager { ...@@ -75,7 +75,7 @@ public class Manager {
@Test(description = "查询渠道列表",priority = 4) @Test(description = "查询渠道列表",priority = 4)
public void 查询渠道列表(){ public void 查询渠道列表(){
Response response = network.getResponse(BasicConfig.MANAGER_oto_channelList); Response response = network.getResponse(BasicConfig.MANAGER_oto_channelList);
boolean data = response.jsonPath().getBoolean("data"); int size = response.jsonPath().getInt("data.size");
Assert.assertTrue(data,network.message(BasicConfig.FORM_submit,"退出登录失败",response.body().asString())); Assert.assertTrue(size>0,network.message(BasicConfig.FORM_submit,"渠道列表为空",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