diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java index 5984eec2da..8c76d02203 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java @@ -528,6 +528,12 @@ public class ApiScenarioModuleService extends NodeTreeService new TreeSet<>(Comparator.comparing(t -> t.getName() + t.getModulePath()))), ArrayList::new) ); + if (!fullCoverage) { + //不覆盖, 系统场景存在则不导入 + Map systemScenarios = repeatAllScenarioWithBLOBs.stream().collect(Collectors.toMap(ApiScenario::getName, scenario -> scenario)); + optionData.removeIf(handleData -> systemScenarios.containsKey(handleData.getName())); + } + Map nameModuleMap = null; Map repeatDataMap = null; if (chooseModule != null) { @@ -555,7 +561,7 @@ public class ApiScenarioModuleService extends NodeTreeService