use of org.apache.jmeter.report.processor.ValueResultData in project jmeter by apache.
the class AbstractGraphConsumer method createResult.
private MapResultData createResult() {
MapResultData result = new MapResultData();
result.setResult(RESULT_MIN_X, new ValueResultData(Double.MAX_VALUE));
result.setResult(RESULT_MAX_X, new ValueResultData(Double.MIN_VALUE));
result.setResult(RESULT_MIN_Y, new ValueResultData(Double.MAX_VALUE));
result.setResult(RESULT_MAX_Y, new ValueResultData(Double.MIN_VALUE));
result.setResult(RESULT_TITLE, new ValueResultData(getTitle()));
result.setResult(RESULT_SERIES, new ListResultData());
boolean supportsControllersDiscrimination = groupInfos.values().stream().map(GroupInfo::getSeriesSelector).allMatch(GraphSeriesSelector::allowsControllersDiscrimination);
result.setResult(RESULT_SUPPORTS_CONTROLLERS_DISCRIMINATION, new ValueResultData(supportsControllersDiscrimination));
initializeExtraResults(result);
return result;
}
use of org.apache.jmeter.report.processor.ValueResultData in project jmeter by apache.
the class JsonExporter method createStatistic.
private void createStatistic(Map<String, SamplingStatistic> statistics, MapResultData resultData) {
LOGGER.debug("Creating statistics for result data:{}", resultData);
SamplingStatistic statistic = new SamplingStatistic();
ListResultData listResultData = (ListResultData) resultData.getResult("data");
statistic.setTransaction((String) ((ValueResultData) listResultData.get(0)).getValue());
statistic.setSampleCount((Long) ((ValueResultData) listResultData.get(1)).getValue());
statistic.setErrorCount((Long) ((ValueResultData) listResultData.get(2)).getValue());
statistic.setErrorPct(((Double) ((ValueResultData) listResultData.get(3)).getValue()).floatValue());
statistic.setMeanResTime((Double) ((ValueResultData) listResultData.get(4)).getValue());
statistic.setMinResTime((Long) ((ValueResultData) listResultData.get(5)).getValue());
statistic.setMaxResTime((Long) ((ValueResultData) listResultData.get(6)).getValue());
statistic.setMedianResTime((Double) ((ValueResultData) listResultData.get(7)).getValue());
statistic.setPct1ResTime((Double) ((ValueResultData) listResultData.get(8)).getValue());
statistic.setPct2ResTime((Double) ((ValueResultData) listResultData.get(9)).getValue());
statistic.setPct3ResTime((Double) ((ValueResultData) listResultData.get(10)).getValue());
statistic.setThroughput((Double) ((ValueResultData) listResultData.get(11)).getValue());
statistic.setReceivedKBytesPerSec((Double) ((ValueResultData) listResultData.get(12)).getValue());
statistic.setSentKBytesPerSec((Double) ((ValueResultData) listResultData.get(13)).getValue());
statistics.put(statistic.getTransaction(), statistic);
}
use of org.apache.jmeter.report.processor.ValueResultData in project jmeter by apache.
the class SyntheticResponseTimeDistributionGraphConsumer method create.
private MapResultData create(String serie, String color) {
GroupInfo groupInfo = getGroupInfos().get(AbstractGraphConsumer.DEFAULT_GROUP);
SeriesData seriesData = new SeriesData(groupInfo.getAggregatorFactory(), groupInfo.enablesAggregatedKeysSeries(), false, groupInfo.enablesOverallSeries());
MapResultData seriesResult = createSerieResult(serie, seriesData);
seriesResult.setResult(SERIE_COLOR_PROPERTY, new ValueResultData(color));
return seriesResult;
}
use of org.apache.jmeter.report.processor.ValueResultData in project jmeter by apache.
the class AbstractGraphConsumer method createSerieResult.
/**
* @param series The series name
* @param seriesData {@link SeriesData}
* @return MapResultData metadata for serie
*/
protected MapResultData createSerieResult(String series, SeriesData seriesData) {
MapResultData seriesResult = new MapResultData();
seriesResult.setResult(RESULT_SERIES_NAME, new ValueResultData(series));
seriesResult.setResult(RESULT_SERIES_IS_CONTROLLER, new ValueResultData(seriesData.isControllersSeries()));
seriesResult.setResult(RESULT_SERIES_IS_OVERALL, new ValueResultData(seriesData.isOverallSeries()));
seriesResult.setResult(RESULT_SERIES_DATA, new ListResultData());
return seriesResult;
}
use of org.apache.jmeter.report.processor.ValueResultData in project jmeter by apache.
the class AbstractGraphConsumer method setMinResult.
private void setMinResult(MapResultData result, String name, Double value) {
ValueResultData valueResult = (ValueResultData) result.getResult(name);
valueResult.setValue(Math.min((Double) valueResult.getValue(), value));
}
Aggregations