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 d5d299cbb0..a53d1908fe 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1079,7 +1079,7 @@ public class ApiAutomationService { scenario.setVariables(variables); } group.setEnableCookieShare(scenario.isEnableCookieShare()); - group.setOnSampleError(scenario.getOnSampleError()); + group.setOnSampleError(scenario.isOnSampleError()); LinkedList scenarios = new LinkedList<>(); scenarios.add(scenario); // 创建场景报告