fix(接口测试): 批量执行任务触发方式有误
This commit is contained in:
parent
2597463323
commit
e2542d50f0
|
@ -162,7 +162,7 @@ public class ApiTestCaseBatchRunService {
|
|||
execTask.setTaskName(Translator.get("api_batch_task_name"));
|
||||
}
|
||||
execTask.setOrganizationId(project.getOrganizationId());
|
||||
execTask.setTriggerMode(TaskTriggerMode.MANUAL.name());
|
||||
execTask.setTriggerMode(TaskTriggerMode.BATCH.name());
|
||||
execTask.setTaskType(ExecTaskType.API_CASE_BATCH.name());
|
||||
baseTaskHubService.insertExecTask(execTask);
|
||||
return execTask;
|
||||
|
|
|
@ -246,7 +246,7 @@ public class ApiScenarioBatchRunService {
|
|||
execTask.setTaskName(Translator.get("api_scenario_batch_task_name"));
|
||||
}
|
||||
execTask.setOrganizationId(project.getOrganizationId());
|
||||
execTask.setTriggerMode(TaskTriggerMode.MANUAL.name());
|
||||
execTask.setTriggerMode(TaskTriggerMode.BATCH.name());
|
||||
execTask.setTaskType(ExecTaskType.API_SCENARIO_BATCH.name());
|
||||
baseTaskHubService.insertExecTask(execTask);
|
||||
return execTask;
|
||||
|
|
|
@ -310,7 +310,7 @@ public class TestPlanApiCaseBatchRunService {
|
|||
execTask.setCaseCount(Long.valueOf(caseSize));
|
||||
execTask.setTaskName(Translator.get("api_batch_task_name"));
|
||||
execTask.setOrganizationId(project.getOrganizationId());
|
||||
execTask.setTriggerMode(TaskTriggerMode.MANUAL.name());
|
||||
execTask.setTriggerMode(TaskTriggerMode.BATCH.name());
|
||||
execTask.setTaskType(ExecTaskType.TEST_PLAN_API_CASE.name());
|
||||
baseTaskHubService.insertExecTask(execTask);
|
||||
return execTask;
|
||||
|
|
|
@ -310,7 +310,7 @@ public class TestPlanApiScenarioBatchRunService {
|
|||
execTask.setCaseCount(Long.valueOf(caseSize));
|
||||
execTask.setTaskName(Translator.get("api_scenario_batch_task_name"));
|
||||
execTask.setOrganizationId(project.getOrganizationId());
|
||||
execTask.setTriggerMode(TaskTriggerMode.MANUAL.name());
|
||||
execTask.setTriggerMode(TaskTriggerMode.BATCH.name());
|
||||
execTask.setTaskType(ExecTaskType.TEST_PLAN_API_SCENARIO.name());
|
||||
baseTaskHubService.insertExecTask(execTask);
|
||||
return execTask;
|
||||
|
|
Loading…
Reference in New Issue