fix(接口测试): 批量执行任务触发方式有误

This commit is contained in:
AgAngle 2024-10-22 10:09:22 +08:00 committed by Craftsman
parent 2597463323
commit e2542d50f0
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;