use of org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration in project camunda-bpm-platform by camunda.
the class ActivityCountAggregator method processResults.
protected void processResults(PerfTestResults results, TabularResultSet tabularResultSet) {
PerfTestConfiguration configuration = results.getConfiguration();
List<String> watchActivities = configuration.getWatchActivities();
for (PerfTestResult passResult : results.getPassResults()) {
String passTitle = getPassTitle(results.getTestName(), configuration, passResult);
TabularResultSet result = processPassResult(watchActivities, passResult);
htmlBuilder.addSection(passTitle, result);
}
}
use of org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration in project camunda-bpm-platform by camunda.
the class AuthorizationPerformanceTestCase method performanceTest.
public PerfTestBuilder performanceTest() {
PerfTestConfiguration configuration = testConfigurationRule.getPerformanceTestConfiguration();
configuration.setPlatform("camunda BPM");
return new PerfTestBuilder(configuration, resultRecorderRule);
}
use of org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration in project camunda-bpm-platform by camunda.
the class PerfTestConfigurationRule method starting.
@Override
protected void starting(Description description) {
if (perfTestConfiguration == null) {
File file = IoUtil.getFile(PROPERTY_FILE_NAME);
if (!file.exists()) {
throw new PerfTestException("Cannot load file '" + PROPERTY_FILE_NAME + "': file does not exist.");
}
FileInputStream propertyInputStream = null;
try {
propertyInputStream = new FileInputStream(file);
Properties properties = new Properties();
properties.load(propertyInputStream);
perfTestConfiguration = new PerfTestConfiguration(properties);
} catch (Exception e) {
throw new PerfTestException("Cannot load properties from file " + PROPERTY_FILE_NAME + ": " + e);
} finally {
IoUtil.closeSilently(propertyInputStream);
}
}
}
use of org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration in project camunda-bpm-platform by camunda.
the class ProcessEnginePerformanceTestCase method performanceTest.
protected PerfTestBuilder performanceTest() {
PerfTestConfiguration configuration = testConfigurationRule.getPerformanceTestConfiguration();
configuration.setPlatform("camunda BPM");
return new PerfTestBuilder(configuration, resultRecorderRule);
}
use of org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration in project camunda-bpm-platform by camunda.
the class BenchmarkLongtermAggregator method processRow.
protected List<Object> processRow(PerfTestResult passResult, PerfTestResults results) {
List<Object> row = new ArrayList<Object>();
PerfTestConfiguration configuration = results.getConfiguration();
// test name
row.add(results.getTestName());
// number of runs
int numberOfRuns = configuration.getNumberOfRuns();
row.add(numberOfRuns);
// database
row.add(configuration.getDatabaseName());
// history level
row.add(configuration.getHistoryLevel());
// start time
row.add(configuration.getStartTime());
// platform
row.add(configuration.getPlatform());
// number of threads
row.add(passResult.getNumberOfThreads());
// add duration
long duration = passResult.getDuration();
row.add(duration);
// throughput
float numberOfRunsFloat = numberOfRuns;
float throughput = (numberOfRunsFloat / duration) * 1000;
row.add(throughput);
return row;
}
Aggregations