Commit 8882b3eb authored by 龚小红's avatar 龚小红

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

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

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