diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsScenarioConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsScenarioConverter.java index e39b165b4c..08f898b50c 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsScenarioConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsScenarioConverter.java @@ -98,7 +98,10 @@ public class MsScenarioConverter extends AbstractJmeterElementConverter csvVariables = scenarioConfig.getVariable().getCsvVariables(); + List 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); }