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 b706cf19bd..fb2363feb0 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1752,6 +1752,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("; ");