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 8aefc60a7e..7b6fc0fb2c 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 @@ -358,8 +358,6 @@ public class ApiScenarioBatchRunService { taskRequest.setSaveResult(true); taskRequest.setRealTime(false); taskRequest.setRunModeConfig(runModeConfig); - runModeConfig.setEnvironmentId(getEnvId(runModeConfig, apiScenarioDetail)); - runModeConfig.setGrouped(getEnvGroup(runModeConfig, apiScenarioDetail)); return taskRequest; }