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) {
|
||||
Element parent = element.getParent();
|
||||
Element hashTree = getNextSibling(element);
|
||||
// 删除CriticalSectionController 和 hashTree
|
||||
element.detach();
|
||||
hashTree.detach();
|
||||
// 添加一个LogicController
|
||||
Element sampleController = parent.addElement("GenericController");
|
||||
sampleController.addAttribute("guiclass", "LogicControllerGui");
|
||||
sampleController.addAttribute("testclass", "GenericController");
|
||||
sampleController.addAttribute("testname", element.attributeValue("testname"));
|
||||
parent.add(hashTree);
|
||||
element.setName("GenericController");
|
||||
element.addAttribute("guiclass", "LogicControllerGui");
|
||||
element.addAttribute("testclass", "GenericController");
|
||||
element.addAttribute("testname", element.attributeValue("testname").replace("Csc_", ""));
|
||||
removeChildren(element);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue