diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseBatchRunService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseBatchRunService.java index 8892f12bc9..2f6e2d5339 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseBatchRunService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseBatchRunService.java @@ -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; diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java index c520793a81..9d3df997e5 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java @@ -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; diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseBatchRunService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseBatchRunService.java index 5667424547..b8a18a5e17 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseBatchRunService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseBatchRunService.java @@ -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; diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioBatchRunService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioBatchRunService.java index 4d7ab7dc4d..fd21f9a9dd 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioBatchRunService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioBatchRunService.java @@ -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;