use of org.apache.jmeter.report.processor.graph.CountValueSelector in project jmeter by apache.
the class TransactionsPerSecondGraphConsumer method createGroupInfos.
/*
* (non-Javadoc)
*
* @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
* createGroupInfos()
*/
@Override
protected Map<String, GroupInfo> createGroupInfos() {
HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(new TimeRateAggregatorFactory(), new AbstractSeriesSelector(true) {
@Override
public Iterable<String> select(Sample sample) {
String label = String.format(STATUS_SERIES_FORMAT, sample.getName(), sample.getSuccess() ? SUCCESS_SERIES_SUFFIX : FAILURE_SERIES_SUFFIX);
return Arrays.asList(label);
}
}, // We include Transaction Controller results
new CountValueSelector(false), false, false));
return groupInfos;
}
Aggregations