Commit 0448dfff authored by 龚小红's avatar 龚小红

修改每日任务配置的测试用例

parent 787f906a
......@@ -1000,11 +1000,8 @@ public class Work implements Authorization {
@Test(description = "修改任务配置",priority = 85)
public void 修改任务配置(){
HashMap<String,Object> params = new HashMap<>();
List list = new ArrayList();
list.add(3);
list.add(4);
list.add(2);
params.put("custSourceList",list);//客户来源:1:缘故客户 2:转介绍客户 3:投放客户 4.直播客户 5.助手客户
String list[] = {"01","02","03","04"};
params.put("custSourceList",list);//客户来源
params.put("custType",1); //1:全部客户;2:新客户;3:老客户
params.put("id",4);
params.put("limitGoalFlag",0);
......@@ -1016,14 +1013,14 @@ public class Work implements Authorization {
//获取任务列表验证修改是否成功
Response listRes = network.getResponse(BasicConfig.WORK_taskConfList);
int custType = listRes.jsonPath().getInt("data[0].custType");
int custSourceList = listRes.jsonPath().getInt("data[0].custSourceList.size()");
Assert.assertEquals(custType,1,network.message(BasicConfig.WORK_taskConfList,"修改任务配置失败",listRes.body().asString()));
Assert.assertEquals(custSourceList,4,network.message(BasicConfig.WORK_taskConfList,"修改任务配置失败",listRes.body().asString()));
//恢复默认配置
params.clear();
List acqList = new ArrayList();
acqList.add(3);
acqList.add(4);
params.put("custSourceList",list);//客户来源:1:缘故客户 2:转介绍客户 3:投放客户 4.直播客户 5.助手客户
String acqList[] = {"01","02","03","04","05","06","07","08","09"};
params.put("custSourceList",acqList);//客户来源:
params.put("custType",2); //1:全部客户;2:新客户;3:老客户
params.put("id",4);
params.put("limitGoalFlag",0);
......
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