fix(接口测试): 修复导入jmx格式解析不准确问题

--bug=1012795 --user=赵勇 【接口测试】有一个场景批量执行-选择node资源池,不显示报告 https://www.tapd.cn/55049933/s/1150387
This commit is contained in:
fit2-zhao 2022-04-27 18:20:41 +08:00 committed by 刘瑞斌
parent ecf03da28f
commit 0f0db0025a
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class MsJmeterElement extends MsTestElement {
// 取出导入的测试计划中变量
if (scriptWrapper instanceof TestPlan) {
TestPlan testPlan = (TestPlan) scriptWrapper;
if (testPlan.getArguments() != null) {
if (testPlan.getArguments() != null && StringUtils.isNotEmpty(testPlan.getArguments().getName())) {
elementTree.add(testPlan.getArguments());
}
}