'Gatling: Set the report directory name?
I'd like to customize the Gatling report directory created as a result of a test execution.
By default, report directories are written (using gatling-maven-plugin
) under :
target/gatling/<simulation-class-name>-<timestamp>
Is it possible to configure the report directory name like:
target/gatling/<my-dynamically-determined-name>-<timestamp>
?
Thanks.
Solution 1:[1]
you can override in the command you use to kick off the simulation execution.
eg: passing -Dgatling.core.outputDirectoryBaseName=abc results in an output folder with the name abc-<timestamp>
Solution 2:[2]
Pass your argument as -rf "YOUR LOCATION"
java -cp target/gatling-java-example.jar io.gatling.app.Gatling -s "com.jay.platform.perf.BasicSimulation" -rf "results"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | James Warr |
Solution 2 | Jayanth Bala |