fix(接口测试): 接口场景导入问题
--bug=1026453 --user=宋昌昌 【接口测试】接口场景覆盖导入,场景没有变更,但是新建了版本,选不覆盖也新建版本了 https://www.tapd.cn/55049933/s/1375329
This commit is contained in:
parent
78bafb772c
commit
0ae9928f21
|
@ -528,6 +528,12 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
|
|||
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(t -> t.getName() + t.getModulePath()))), ArrayList::new)
|
||||
);
|
||||
|
||||
if (!fullCoverage) {
|
||||
//不覆盖, 系统场景存在则不导入
|
||||
Map<String, ApiScenarioWithBLOBs> systemScenarios = repeatAllScenarioWithBLOBs.stream().collect(Collectors.toMap(ApiScenario::getName, scenario -> scenario));
|
||||
optionData.removeIf(handleData -> systemScenarios.containsKey(handleData.getName()));
|
||||
}
|
||||
|
||||
Map<String, ApiScenarioWithBLOBs> nameModuleMap = null;
|
||||
Map<String, ApiScenarioWithBLOBs> repeatDataMap = null;
|
||||
if (chooseModule != null) {
|
||||
|
|
Loading…
Reference in New Issue