Search in sources :

Example 1 with IndexedNameSelector

use of org.apache.jmeter.report.processor.graph.IndexedNameSelector in project jmeter by apache.

the class ResponseTimePerSampleGraphConsumer method initializeExtraResults.

/*
     * (non-Javadoc)
     *
     * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
     * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
     */
@Override
protected void initializeExtraResults(MapResultData parentResult) {
    ListResultData samples = new ListResultData();
    IndexedNameSelector indexedNameSelector = (IndexedNameSelector) getKeysSelector();
    int size = indexedNameSelector.getNames().size();
    for (int i = 0; i < size; i++) {
        samples.addResult(new ValueResultData(indexedNameSelector.getNames().get(i)));
    }
    parentResult.setResult("sampleNames", samples);
}
Also used : IndexedNameSelector(org.apache.jmeter.report.processor.graph.IndexedNameSelector) ListResultData(org.apache.jmeter.report.processor.ListResultData) ValueResultData(org.apache.jmeter.report.processor.ValueResultData)

Aggregations

ListResultData (org.apache.jmeter.report.processor.ListResultData)1 ValueResultData (org.apache.jmeter.report.processor.ValueResultData)1 IndexedNameSelector (org.apache.jmeter.report.processor.graph.IndexedNameSelector)1