fix(性能测试): 修复性能测试线程组启用禁用不一致的问题

This commit is contained in:
Captain.B 2021-05-17 15:31:11 +08:00 committed by 刘瑞斌
parent 7c75cc3738
commit 76d2621270
1 changed files with 1 additions and 4 deletions

View File

@ -88,10 +88,8 @@ public class JmeterDocumentParser implements DocumentParser {
for (int i = 0; i < childNodes.getLength(); i++) {
Node node = childNodes.item(i);
if (node instanceof Element) {
System.out.println(node.getNodeName());
Element ele = (Element) node;
if (invalid(ele)) {
continue;
}
if (nodeNameEquals(ele, HASH_TREE_ELEMENT)) {
parseHashTree(ele);
@ -812,7 +810,6 @@ public class JmeterDocumentParser implements DocumentParser {
elementProp.setAttribute("guiclass", "LoopControlPanel");
elementProp.setAttribute("testclass", "LoopController");
elementProp.setAttribute("testname", "Loop Controller");
elementProp.setAttribute("enabled", "true");
elementProp.appendChild(createBoolProp(document, "LoopController.continue_forever", false));
elementProp.appendChild(createStringProp(document, "LoopController.loops", "-1"));
threadGroup.appendChild(elementProp);