refactor(性能测试): 性能测试CriticalSectionController LogicController
This commit is contained in:
parent
6d8c940d3b
commit
2a4f102d4d
|
@ -238,17 +238,11 @@ public class JmeterDocumentParser implements EngineSourceParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processCriticalSectionController(Element element) {
|
private void processCriticalSectionController(Element element) {
|
||||||
Element parent = element.getParent();
|
element.setName("GenericController");
|
||||||
Element hashTree = getNextSibling(element);
|
element.addAttribute("guiclass", "LogicControllerGui");
|
||||||
// 删除CriticalSectionController 和 hashTree
|
element.addAttribute("testclass", "GenericController");
|
||||||
element.detach();
|
element.addAttribute("testname", element.attributeValue("testname").replace("Csc_", ""));
|
||||||
hashTree.detach();
|
removeChildren(element);
|
||||||
// 添加一个LogicController
|
|
||||||
Element sampleController = parent.addElement("GenericController");
|
|
||||||
sampleController.addAttribute("guiclass", "LogicControllerGui");
|
|
||||||
sampleController.addAttribute("testclass", "GenericController");
|
|
||||||
sampleController.addAttribute("testname", element.attributeValue("testname"));
|
|
||||||
parent.add(hashTree);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue