fix(接口测试): 测试计划用例批量执行,任务类型有误

This commit is contained in:
AgAngle 2024-10-22 14:03:27 +08:00 committed by jianxing
parent 85e1801eeb
commit e8cb35fd1a
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ public class TestPlanApiCaseBatchRunService {
execTask.setTaskName(Translator.get("api_batch_task_name")); execTask.setTaskName(Translator.get("api_batch_task_name"));
execTask.setOrganizationId(project.getOrganizationId()); execTask.setOrganizationId(project.getOrganizationId());
execTask.setTriggerMode(TaskTriggerMode.BATCH.name()); 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); baseTaskHubService.insertExecTask(execTask);
return execTask; return execTask;
} }

View File

@ -311,7 +311,7 @@ public class TestPlanApiScenarioBatchRunService {
execTask.setTaskName(Translator.get("api_scenario_batch_task_name")); execTask.setTaskName(Translator.get("api_scenario_batch_task_name"));
execTask.setOrganizationId(project.getOrganizationId()); execTask.setOrganizationId(project.getOrganizationId());
execTask.setTriggerMode(TaskTriggerMode.BATCH.name()); 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); baseTaskHubService.insertExecTask(execTask);
return execTask; return execTask;
} }