Search in sources :

Example 1 with PerfTestConfiguration

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);
    }
}
Also used : PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration) PerfTestResult(org.camunda.bpm.qa.performance.engine.framework.PerfTestResult) TabularResultSet(org.camunda.bpm.qa.performance.engine.framework.aggregate.TabularResultSet)

Example 2 with PerfTestConfiguration

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);
}
Also used : PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration) PerfTestBuilder(org.camunda.bpm.qa.performance.engine.framework.PerfTestBuilder)

Example 3 with PerfTestConfiguration

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);
        }
    }
}
Also used : PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration) PerfTestException(org.camunda.bpm.qa.performance.engine.framework.PerfTestException) Properties(java.util.Properties) File(java.io.File) FileInputStream(java.io.FileInputStream) PerfTestException(org.camunda.bpm.qa.performance.engine.framework.PerfTestException)

Example 4 with PerfTestConfiguration

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);
}
Also used : PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration) PerfTestBuilder(org.camunda.bpm.qa.performance.engine.framework.PerfTestBuilder)

Example 5 with PerfTestConfiguration

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;
}
Also used : ArrayList(java.util.ArrayList) PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration)

Aggregations

PerfTestConfiguration (org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration)5 PerfTestBuilder (org.camunda.bpm.qa.performance.engine.framework.PerfTestBuilder)2 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 ArrayList (java.util.ArrayList)1 Properties (java.util.Properties)1 PerfTestException (org.camunda.bpm.qa.performance.engine.framework.PerfTestException)1 PerfTestResult (org.camunda.bpm.qa.performance.engine.framework.PerfTestResult)1 TabularResultSet (org.camunda.bpm.qa.performance.engine.framework.aggregate.TabularResultSet)1