fix(测试计划): 步骤级别csv变量取消预加载

--bug=1043108 --user=陈建星 【接口测试】场景引用csv作用域提示信息逻辑和实现的引用逻辑不一致-场景步骤可引用作用域为步骤的csv参数 https://www.tapd.cn/55049933/s/1536608
This commit is contained in:
AgAngle 2024-06-25 18:05:28 +08:00 committed by 刘瑞斌
parent 444c40533c
commit 1da71cf407

View File

@ -98,7 +98,10 @@ public class MsScenarioConverter extends AbstractJmeterElementConverter<MsScenar
if (scenarioConfig == null || scenarioConfig.getVariable() == null || CollectionUtils.isEmpty(scenarioConfig.getVariable().getCsvVariables())) {
return;
}
List<CsvVariable> csvVariables = scenarioConfig.getVariable().getCsvVariables();
List<CsvVariable> csvVariables = scenarioConfig.getVariable().getCsvVariables()
.stream()
.filter(csvVariable -> StringUtils.equals(csvVariable.getScope(), CsvVariable.CsvVariableScope.SCENARIO.name()))
.toList();
MsCsvChildPreConverter.addCsvDataSet(tree, JmeterProperty.CSVDataSetProperty.SHARE_MODE_GROUP, csvVariables);
}