fix(接口测试): 修复导入jmx文件测试计划包含自定义变量获取问题
--bug=1011455 --user=赵勇 [BUG]github#11608Jmeter测试计划里的自定义变量导入ms失效 https://www.tapd.cn/55049933/s/1122388
This commit is contained in:
parent
599919e3ae
commit
cf53040931
|
@ -77,7 +77,13 @@ public class MsJmeterElement extends MsTestElement {
|
||||||
config.getCsvFilePaths().add(csvPath);
|
config.getCsvFilePaths().add(csvPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 取出导入的测试计划中变量
|
||||||
|
if (scriptWrapper instanceof TestPlan) {
|
||||||
|
TestPlan testPlan = (TestPlan) scriptWrapper;
|
||||||
|
if (testPlan.getArguments() != null) {
|
||||||
|
elementTree.add(testPlan.getArguments());
|
||||||
|
}
|
||||||
|
}
|
||||||
if (config.isOperating()) {
|
if (config.isOperating()) {
|
||||||
elementTree = tree.add(scriptWrapper);
|
elementTree = tree.add(scriptWrapper);
|
||||||
} else if (!(scriptWrapper instanceof TestPlan) && !(scriptWrapper instanceof ThreadGroup)) {
|
} else if (!(scriptWrapper instanceof TestPlan) && !(scriptWrapper instanceof ThreadGroup)) {
|
||||||
|
|
Loading…
Reference in New Issue