fix(接口自动化): 【github#3846】接口自动化导入JMX文件时,以脚本名命名场景名

This commit is contained in:
fit2-zhao 2021-06-28 14:09:09 +08:00 committed by fit2-zhao
parent ca472e8378
commit 00e1d00668
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
} }
} }
ApiScenarioModule module = ApiScenarioImportUtil.buildModule(selectModule, msScenario.getName(), this.projectId); ApiScenarioModule module = ApiScenarioImportUtil.buildModule(selectModule, msScenario.getName(), this.projectId);
scenarioWithBLOBs.setName(msScenario.getName()); scenarioWithBLOBs.setName(request.getFileName());
scenarioWithBLOBs.setProjectId(request.getProjectId()); scenarioWithBLOBs.setProjectId(request.getProjectId());
if (msScenario != null && CollectionUtils.isNotEmpty(msScenario.getHashTree())) { if (msScenario != null && CollectionUtils.isNotEmpty(msScenario.getHashTree())) {
scenarioWithBLOBs.setStepTotal(msScenario.getHashTree().size()); scenarioWithBLOBs.setStepTotal(msScenario.getHashTree().size());