fix(接口测试): 修复导入的jmx中带循环控制器时,场景执行报错的缺陷
--bug=1028174 --user=王孝刚 【接口测试】github#25882,jmeter5.4.1版本导出JMX文件,导入到接口自动化场景中,当带有循环控制器时,会报错,无法完成接口自动化调试。 https://www.tapd.cn/55049933/s/1398201
This commit is contained in:
parent
fa27e8684b
commit
c5305e281f
|
@ -857,7 +857,7 @@ public class JMeterParser extends ApiImportAbstractParser<ScenarioImport> {
|
||||||
MsWhileController countController = new MsWhileController();
|
MsWhileController countController = new MsWhileController();
|
||||||
countController.setValue(whileController.getCondition());
|
countController.setValue(whileController.getCondition());
|
||||||
((MsLoopController) elementNode).setWhileController(countController);
|
((MsLoopController) elementNode).setWhileController(countController);
|
||||||
elementNode.setClazzName(MsWhileController.class.getCanonicalName());
|
elementNode.setClazzName(MsLoopController.class.getCanonicalName());
|
||||||
}
|
}
|
||||||
// Foreach 循环控制器
|
// Foreach 循环控制器
|
||||||
else if (key instanceof ForeachController) {
|
else if (key instanceof ForeachController) {
|
||||||
|
@ -870,7 +870,7 @@ public class JMeterParser extends ApiImportAbstractParser<ScenarioImport> {
|
||||||
countController.setInputVal(foreachController.getInputValString());
|
countController.setInputVal(foreachController.getInputValString());
|
||||||
countController.setReturnVal(foreachController.getReturnValString());
|
countController.setReturnVal(foreachController.getReturnValString());
|
||||||
((MsLoopController) elementNode).setForEachController(countController);
|
((MsLoopController) elementNode).setForEachController(countController);
|
||||||
elementNode.setClazzName(ForeachController.class.getCanonicalName());
|
elementNode.setClazzName(MsLoopController.class.getCanonicalName());
|
||||||
} else if (key instanceof TransactionController) {
|
} else if (key instanceof TransactionController) {
|
||||||
TransactionController transactionController = (TransactionController) key;
|
TransactionController transactionController = (TransactionController) key;
|
||||||
elementNode = new MsTransactionController();
|
elementNode = new MsTransactionController();
|
||||||
|
|
|
@ -547,7 +547,7 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 60px;
|
width: 65px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ms-conn {
|
.ms-conn {
|
||||||
|
|
Loading…
Reference in New Issue