use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.
the class PerfMonGui method createTestElement.
@Override
public TestElement createTestElement() {
TestElement te = new PerfMonCollector();
modifyTestElement(te);
te.setComment(JMeterPluginsUtils.getWikiLinkText(getWikiPage()));
return te;
}
use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.
the class PerfMonGui method modifyTestElement.
@Override
public void modifyTestElement(TestElement te) {
super.modifyTestElement(te);
if (grid.isEditing()) {
grid.getCellEditor().stopCellEditing();
}
if (te instanceof PerfMonCollector) {
PerfMonCollector pmte = (PerfMonCollector) te;
CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, PerfMonCollector.DATA_PROPERTY);
pmte.setData(rows);
}
super.configureTestElement(te);
}
use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.
the class PerfMonGui method configure.
@Override
public void configure(TestElement te) {
super.configure(te);
PerfMonCollector pmte = (PerfMonCollector) te;
JMeterProperty perfmonValues = pmte.getMetricSettings();
if (!(perfmonValues instanceof NullProperty)) {
JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) perfmonValues, tableModel);
} else {
log.warn("Received null property instead of collection");
}
}
use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.
the class PerfMonGuiTest method testModifyTestElement.
@Test
public void testModifyTestElement() {
System.out.println("modifyTestElement");
TestElement c = new PerfMonCollector();
PerfMonGui instance = new PerfMonGui();
instance.modifyTestElement(c);
}
use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.
the class PerfMonGuiTest method testConfigure.
@Test
public void testConfigure() {
System.out.println("configure");
TestElement el = new PerfMonCollector();
PerfMonGui instance = new PerfMonGui();
instance.configure(el);
}
Aggregations