use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.
the class ThroughputVsThreadsGui method add.
@Override
public void add(SampleResult res) {
if (!isSampleIncluded(res)) {
return;
}
long time = res.getTime();
if (time < 1) {
return;
}
super.add(res);
String label = res.getSampleLabel();
String averageLabel = "Average " + res.getSampleLabel();
GraphRowAverages row = (GraphRowAverages) model.get(label);
GraphRowOverallAverages avgRow = (GraphRowOverallAverages) model.get(averageLabel);
if (row == null || avgRow == null) {
row = (GraphRowAverages) getNewRow(model, AbstractGraphRow.ROW_AVERAGES, label, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, false);
avgRow = (GraphRowOverallAverages) getNewRow(model, AbstractGraphRow.ROW_OVERALL_AVERAGES, averageLabel, AbstractGraphRow.MARKER_SIZE_BIG, false, true, false, false, row.getColor(), false);
}
int allThreads = getCurrentThreadCount(res);
double throughput = (double) allThreads * 1000.0d / time;
row.add(allThreads, throughput);
avgRow.add(allThreads, throughput);
graphPanel.getGraphObject().setCurrentX(allThreads);
updateGui(null);
}
use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.
the class GraphRowOverallAveragesTest method testGetValue.
/**
* Test of getValue method, of class GraphRowOverallAverages.
*/
@Test
public void testGetValue() {
System.out.println("getValue");
GraphRowOverallAverages instance = new GraphRowOverallAverages();
GraphPanelChartAverageElement result = instance.getValue();
assertEquals(0, result.getValue(), 0.01);
}
use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.
the class GraphRowOverallAveragesTest method testGetKey.
/**
* Test of getKey method, of class GraphRowOverallAverages.
*/
@Test
public void testGetKey() {
System.out.println("getKey");
GraphRowOverallAverages instance = new GraphRowOverallAverages();
long expResult = 0;
long result = instance.getKey();
Assert.assertEquals(expResult, result);
}
use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.
the class ChartRowsTableTest method testAddRow2.
/**
* Test of addRow method, of class ChartRowsTable.
*/
@Test
public void testAddRow2() {
System.out.println("addRow");
AbstractGraphRow row = new GraphRowOverallAverages();
ChartRowsTable instance = new ChartRowsTable(null);
instance.addRow(row);
}
use of kg.apc.charting.rows.GraphRowOverallAverages in project jmeter-plugins by undera.
the class GraphPanelTest method testAddRow.
/**
* Test of addRow method, of class GraphPanel.
*/
@Test
public void testAddRow() {
System.out.println("addRow");
AbstractGraphRow row = new GraphRowOverallAverages();
instance.addRow(row);
}
Aggregations