refactor(性能测试): 性能测试CriticalSectionController LogicController

This commit is contained in:
CaptainB 2024-12-11 22:16:13 +08:00
parent 6d8c940d3b
commit 2a4f102d4d
1 changed files with 5 additions and 11 deletions

View File

@ -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);
}