fix(接口自动化): 【github#3846】接口自动化导入JMX文件时,以脚本名命名场景名
This commit is contained in:
parent
ca472e8378
commit
00e1d00668
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue