Search in sources :

Example 1 with JMeterReporter

use of uk.co.automatictester.lightning.reporters.JMeterReporter in project lightning by automatictester.

the class LightningHandler method runReport.

private void runReport() {
    jmeterTransactions = new JMeterCSVS3ObjectReader(region, bucket).getTransactions(jmeterCsv);
    JMeterReporter reporter = new JMeterReporter(jmeterTransactions);
    String jmeterReport = reporter.getJMeterReport();
    String jmeterReportS3Path = s3Client.putS3Object("output/report.log", jmeterReport);
    response.setJmeterReport(jmeterReportS3Path);
    log.info(jmeterReport);
    if (jmeterTransactions.getFailCount() != 0) {
        response.setExitCode(1);
    } else {
        response.setExitCode(0);
    }
}
Also used : JMeterCSVS3ObjectReader(uk.co.automatictester.lightning.lambda.readers.JMeterCSVS3ObjectReader) JMeterReporter(uk.co.automatictester.lightning.reporters.JMeterReporter)

Example 2 with JMeterReporter

use of uk.co.automatictester.lightning.reporters.JMeterReporter in project lightning by automatictester.

the class LightningMojo method runReport.

private void runReport() {
    jmeterTransactions = new JMeterCSVFileReader().getTransactions(jmeterCsv);
    JMeterReporter reporter = new JMeterReporter(jmeterTransactions);
    log(reporter.getJMeterReport());
    if (jmeterTransactions.getFailCount() != 0) {
        exitCode = 1;
    }
}
Also used : JMeterReporter(uk.co.automatictester.lightning.reporters.JMeterReporter) JMeterCSVFileReader(uk.co.automatictester.lightning.readers.JMeterCSVFileReader)

Example 3 with JMeterReporter

use of uk.co.automatictester.lightning.reporters.JMeterReporter in project lightning by automatictester.

the class LightningTask method runReport.

void runReport() {
    jmeterTransactions = new JMeterCSVFileReader().getTransactions(extension.getJmeterCsv());
    JMeterReporter reporter = new JMeterReporter(jmeterTransactions);
    log(reporter.getJMeterReport());
    if (jmeterTransactions.getFailCount() != 0) {
        exitCode = 1;
    }
}
Also used : JMeterReporter(uk.co.automatictester.lightning.reporters.JMeterReporter) JMeterCSVFileReader(uk.co.automatictester.lightning.readers.JMeterCSVFileReader)

Example 4 with JMeterReporter

use of uk.co.automatictester.lightning.reporters.JMeterReporter in project lightning by automatictester.

the class CliTestRunner method runReport.

private static void runReport() {
    jmeterTransactions = new JMeterCSVFileReader().getTransactions(params.report.getJmeterCsvFile());
    JMeterReporter reporter = new JMeterReporter(jmeterTransactions);
    reporter.printJMeterReport();
    if (jmeterTransactions.getFailCount() != 0) {
        exitCode = 1;
    }
}
Also used : JMeterReporter(uk.co.automatictester.lightning.reporters.JMeterReporter) JMeterCSVFileReader(uk.co.automatictester.lightning.readers.JMeterCSVFileReader)

Aggregations

JMeterReporter (uk.co.automatictester.lightning.reporters.JMeterReporter)4 JMeterCSVFileReader (uk.co.automatictester.lightning.readers.JMeterCSVFileReader)3 JMeterCSVS3ObjectReader (uk.co.automatictester.lightning.lambda.readers.JMeterCSVS3ObjectReader)1