Commit 8c4fe00d authored by 龚小红's avatar 龚小红

fix

parent 584b5c09
......@@ -24,10 +24,13 @@ public class Manager {
public void 分页查看销售列表(){
HashMap<String,Object> params = new HashMap<>();
params.put("pageIndex", "1");
params.put("pageSize", "10");
params.put("pageSize", "20");
Response response = network.getResponse(params, BasicConfig.MANAGER_oto_sellerList);
int size = response.jsonPath().getInt("data.list.size()");
Assert.assertTrue(size>0,network.message(params,BasicConfig.MANAGER_oto_sellerList,"销售列表为空",response.body().asString()));
int workStatus = response.jsonPath().getInt("data.list.find{it.id == "+ 35+"}.workStatus");
Assert.assertEquals(workStatus,1,network.message(params,BasicConfig.MANAGER_oto_searchSeller,"工作状态错误",response.body().asString()));
}
@Test(description = "通过销售名称查找销售",priority = 2)
......@@ -37,8 +40,6 @@ public class Manager {
Response response = network.getResponse(params, BasicConfig.MANAGER_oto_searchSeller);
int size = response.jsonPath().getInt("data.size()");
Assert.assertTrue(size>0,network.message(params,BasicConfig.MANAGER_oto_searchSeller,"查找结果为空",response.body().asString()));
int workStatus = response.jsonPath().getInt("data[0].workStatus");
Assert.assertEquals(workStatus,1,network.message(params,BasicConfig.MANAGER_oto_searchSeller,"查找结果为空",response.body().asString()));
sellerId = response.jsonPath().getInt("data[0].id");
}
......
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