Merge multiple simulation results/logs into one report

Gatling version: 3.11.5
Gatling flavor: java kotlin scala javascript typescript
Gatling build tool: maven gradle sbt bundle npm

Hi,

I am running 5 simulations across 5 gitlab runners due to technical limitations on the runners themselves. When the simulations finish, I would like to combine the simulation results/reports into a single report so that we can visualise the data in a single report.

There have been previous questions raised in this community which all refer to using a gatling.sh script or using the -ro command. However, I don’t have access to the -ro command.

This is the script i am running in my gitlab-ci, and everything works until i try to run the line with gatling.

  script:
    - mkdir merged_reports
    - for dir in $(ls -d target/gatling/productionloadsimulation-*); do
      cp -r $dir merged_reports/;
      done
    - gatling -ro merged_reports

I get the following error:

$ gatling -ro merged_putawaytime_reports
[55](projectPath/-/jobs/223929422#L55)/usr/bin/bash: line 216: gatling: command not found

My pom.xml has the following dependencies

        <dependency>
            <groupId>io.gatling.highcharts</groupId>
            <artifactId>gatling-charts-highcharts</artifactId>
            <version>${gatling.version}</version>
        </dependency>
        <dependency>
            <groupId>io.gatling</groupId>
            <artifactId>gatling-app</artifactId>
            <version>${gatling.version}</version>
        </dependency>

And the following plugin

            <plugin>
                <groupId>io.gatling</groupId>
                <artifactId>gatling-maven-plugin</artifactId>
                <version>4.9.6</version>
                <configuration>
                    <jvmArgs>
                        <jvmArg>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</jvmArg>
                    </jvmArgs>
                    <compilerJvmArgs>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</compilerJvmArgs>
                    <disableCompiler>true</disableCompiler>
                    <runMultipleSimulations>true</runMultipleSimulations>
                    <simulationsFolder>
                        src/test/scala/com/org/project/loadtests/simulation
                    </simulationsFolder>
                </configuration>
            </plugin>

Does anybody know if i need to include any other dependencies to be able to have access to this command? Or if there is an alternative way to merge multiple simulation reports into one?

Thank you for any guidance!

Hello,
If I’ve understood your problem correctly, you want to do distributed load testing across your 5 runners. Is that right?
If you want to do it easily, we offer this feature in the Enterprise version.

I want to combine the results of the load tests that are already running across my 5 runners.

Effectively, i have 5 index.html files for each distributed run. But I want to combine the results into a single index.html, so it makes reviewing the data more easily rather than having to open 5 files.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.