fix(接口测试): 修复导入的jmx中带循环控制器时,场景执行报错的缺陷

--bug=1028174 --user=王孝刚
【接口测试】github#25882,jmeter5.4.1版本导出JMX文件,导入到接口自动化场景中,当带有循环控制器时,会报错,无法完成接口自动化调试。
https://www.tapd.cn/55049933/s/1398201
This commit is contained in:
wxg0103 2023-07-26 19:45:43 +08:00 committed by fit2-zhao
parent fa27e8684b
commit c5305e281f
2 changed files with 3 additions and 3 deletions

View File

@ -857,7 +857,7 @@ public class JMeterParser extends ApiImportAbstractParser<ScenarioImport> {
MsWhileController countController = new MsWhileController();
countController.setValue(whileController.getCondition());
((MsLoopController) elementNode).setWhileController(countController);
elementNode.setClazzName(MsWhileController.class.getCanonicalName());
elementNode.setClazzName(MsLoopController.class.getCanonicalName());
}
// Foreach 循环控制器
else if (key instanceof ForeachController) {
@ -870,7 +870,7 @@ public class JMeterParser extends ApiImportAbstractParser<ScenarioImport> {
countController.setInputVal(foreachController.getInputValString());
countController.setReturnVal(foreachController.getReturnValString());
((MsLoopController) elementNode).setForEachController(countController);
elementNode.setClazzName(ForeachController.class.getCanonicalName());
elementNode.setClazzName(MsLoopController.class.getCanonicalName());
} else if (key instanceof TransactionController) {
TransactionController transactionController = (TransactionController) key;
elementNode = new MsTransactionController();

View File

@ -547,7 +547,7 @@ export default {
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
width: 60px;
width: 65px;
}
.ms-conn {