fix(性能测试): 修复性能测试线程组启用禁用不一致的问题
This commit is contained in:
parent
7c75cc3738
commit
76d2621270
|
@ -88,10 +88,8 @@ public class JmeterDocumentParser implements DocumentParser {
|
||||||
for (int i = 0; i < childNodes.getLength(); i++) {
|
for (int i = 0; i < childNodes.getLength(); i++) {
|
||||||
Node node = childNodes.item(i);
|
Node node = childNodes.item(i);
|
||||||
if (node instanceof Element) {
|
if (node instanceof Element) {
|
||||||
|
System.out.println(node.getNodeName());
|
||||||
Element ele = (Element) node;
|
Element ele = (Element) node;
|
||||||
if (invalid(ele)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nodeNameEquals(ele, HASH_TREE_ELEMENT)) {
|
if (nodeNameEquals(ele, HASH_TREE_ELEMENT)) {
|
||||||
parseHashTree(ele);
|
parseHashTree(ele);
|
||||||
|
@ -812,7 +810,6 @@ public class JmeterDocumentParser implements DocumentParser {
|
||||||
elementProp.setAttribute("guiclass", "LoopControlPanel");
|
elementProp.setAttribute("guiclass", "LoopControlPanel");
|
||||||
elementProp.setAttribute("testclass", "LoopController");
|
elementProp.setAttribute("testclass", "LoopController");
|
||||||
elementProp.setAttribute("testname", "Loop Controller");
|
elementProp.setAttribute("testname", "Loop Controller");
|
||||||
elementProp.setAttribute("enabled", "true");
|
|
||||||
elementProp.appendChild(createBoolProp(document, "LoopController.continue_forever", false));
|
elementProp.appendChild(createBoolProp(document, "LoopController.continue_forever", false));
|
||||||
elementProp.appendChild(createStringProp(document, "LoopController.loops", "-1"));
|
elementProp.appendChild(createStringProp(document, "LoopController.loops", "-1"));
|
||||||
threadGroup.appendChild(elementProp);
|
threadGroup.appendChild(elementProp);
|
||||||
|
|
Loading…
Reference in New Issue