diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 425ed75e42..5bbc840e26 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1666,6 +1666,7 @@ public class ApiAutomationService { StringBuilder builder = new StringBuilder(); for (ApiScenarioWithBLOBs apiScenarioWithBLOBs : scenarios) { try { + apiScenarioEnvService.setScenarioEnv(apiScenarioWithBLOBs, null); boolean haveEnv = apiScenarioEnvService.checkScenarioEnv(apiScenarioWithBLOBs, null); if (!haveEnv) { builder.append(apiScenarioWithBLOBs.getName()).append("; ");