use of kg.apc.jmeter.vizualizers.MonitoringResultsCollector in project jmeter-plugins by undera.
the class AbstractMonitoringVisualizerTest method testCreateTestElement.
@Test
public void testCreateTestElement() {
System.out.println("createTestElement");
AbstractMonitoringVisualizer instance = new AbstractMonitoringVisualizerImpl();
TestElement result = instance.createTestElement();
assertTrue(result instanceof MonitoringResultsCollector);
}
use of kg.apc.jmeter.vizualizers.MonitoringResultsCollector in project jmeter-plugins by undera.
the class AbstractMonitoringVisualizer method configure.
@Override
public void configure(TestElement te) {
super.configure(te);
MonitoringResultsCollector mrc = (MonitoringResultsCollector) te;
JMeterProperty samplerValues = mrc.getSamplerSettings();
if (!(samplerValues instanceof NullProperty)) {
JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) samplerValues, tableModel, getColumnClasses());
} else {
log.warn("Received null property instead of collection");
}
}
use of kg.apc.jmeter.vizualizers.MonitoringResultsCollector in project jmeter-plugins by undera.
the class AbstractMonitoringVisualizer method modifyTestElement.
@Override
public void modifyTestElement(TestElement te) {
super.modifyTestElement(te);
if (grid.isEditing()) {
grid.getCellEditor().stopCellEditing();
}
if (te instanceof MonitoringResultsCollector) {
MonitoringResultsCollector mrc = (MonitoringResultsCollector) te;
CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, MonitoringResultsCollector.DATA_PROPERTY);
mrc.setData(rows);
}
super.configureTestElement(te);
}
use of kg.apc.jmeter.vizualizers.MonitoringResultsCollector in project jmeter-plugins by undera.
the class AbstractMonitoringVisualizerTest method testModifyTestElement.
@Test
public void testModifyTestElement() {
System.out.println("modifyTestElement");
TestElement c = new MonitoringResultsCollector();
AbstractMonitoringVisualizer instance = new AbstractMonitoringVisualizerImpl();
instance.modifyTestElement(c);
assertNotNull(c.getProperty(MonitoringResultsCollector.DATA_PROPERTY));
}
use of kg.apc.jmeter.vizualizers.MonitoringResultsCollector in project jmeter-plugins by undera.
the class AbstractMonitoringVisualizerTest method testConfigure.
@Test
public void testConfigure() {
System.out.println("configure");
TestElement el = new MonitoringResultsCollector();
AbstractMonitoringVisualizer instance = new AbstractMonitoringVisualizerImpl();
instance.configure(el);
assertNotNull(instance.tableModel);
}
Aggregations