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