Search in sources :

Example 1 with CompositeResultCollector

use of kg.apc.jmeter.vizualizers.CompositeResultCollector in project jmeter-plugins by undera.

the class AbstractGraphPanelVisualizer method clearRowsFromCompositeModels.

private void clearRowsFromCompositeModels(String vizualizerName) {
    GuiPackage gui = GuiPackage.getInstance();
    if (gui == null) {
        log.debug("No GUI Package present, ignored removing from composite");
        return;
    }
    JMeterTreeModel testTree = gui.getTreeModel();
    for (JMeterTreeNode obj : testTree.getNodesOfType(CompositeResultCollector.class)) {
        // System.out.println("obj");
        CompositeResultCollector compositeResultCollector = (CompositeResultCollector) obj.getTestElement();
        compositeResultCollector.getCompositeModel().clearRows(vizualizerName);
    }
}
Also used : JMeterTreeModel(org.apache.jmeter.gui.tree.JMeterTreeModel) GuiPackage(org.apache.jmeter.gui.GuiPackage) JMeterTreeNode(org.apache.jmeter.gui.tree.JMeterTreeNode) CompositeResultCollector(kg.apc.jmeter.vizualizers.CompositeResultCollector)

Example 2 with CompositeResultCollector

use of kg.apc.jmeter.vizualizers.CompositeResultCollector in project jmeter-plugins by undera.

the class AbstractGraphPanelVisualizer method addRowToCompositeModels.

private void addRowToCompositeModels(String rowName, AbstractGraphRow row) {
    GuiPackage gui = GuiPackage.getInstance();
    if (gui == null) {
        log.debug("No GUI Package present, ignored adding to composite");
        return;
    }
    JMeterTreeModel testTree = gui.getTreeModel();
    for (JMeterTreeNode obj : testTree.getNodesOfType(CompositeResultCollector.class)) {
        CompositeResultCollector compositeResultCollector = (CompositeResultCollector) obj.getTestElement();
        compositeResultCollector.getCompositeModel().addRow(rowName, row);
    }
}
Also used : JMeterTreeModel(org.apache.jmeter.gui.tree.JMeterTreeModel) GuiPackage(org.apache.jmeter.gui.GuiPackage) JMeterTreeNode(org.apache.jmeter.gui.tree.JMeterTreeNode) CompositeResultCollector(kg.apc.jmeter.vizualizers.CompositeResultCollector)

Aggregations

CompositeResultCollector (kg.apc.jmeter.vizualizers.CompositeResultCollector)2 GuiPackage (org.apache.jmeter.gui.GuiPackage)2 JMeterTreeModel (org.apache.jmeter.gui.tree.JMeterTreeModel)2 JMeterTreeNode (org.apache.jmeter.gui.tree.JMeterTreeNode)2