Commit 3eedec9f authored by 龚小红's avatar 龚小红

Merge branch 'Feature/20210215-gxh' into 'master'

fix-渠道列表断言

See merge request test-group/kejiji!222
parents 8de87be0 af184021
...@@ -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