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 b8a18a5e17..e7decc416d 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 @@ -311,7 +311,7 @@ public class TestPlanApiCaseBatchRunService { execTask.setTaskName(Translator.get("api_batch_task_name")); execTask.setOrganizationId(project.getOrganizationId()); execTask.setTriggerMode(TaskTriggerMode.BATCH.name()); - execTask.setTaskType(ExecTaskType.TEST_PLAN_API_CASE.name()); + execTask.setTaskType(ExecTaskType.TEST_PLAN_API_CASE_BATCH.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 fd21f9a9dd..4301b40407 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 @@ -311,7 +311,7 @@ public class TestPlanApiScenarioBatchRunService { execTask.setTaskName(Translator.get("api_scenario_batch_task_name")); execTask.setOrganizationId(project.getOrganizationId()); execTask.setTriggerMode(TaskTriggerMode.BATCH.name()); - execTask.setTaskType(ExecTaskType.TEST_PLAN_API_SCENARIO.name()); + execTask.setTaskType(ExecTaskType.TEST_PLAN_API_SCENARIO_BATCH.name()); baseTaskHubService.insertExecTask(execTask); return execTask; }