Gatling:设置报表目录名?

Gatling: Set the report directory name?

我想自定义作为测试执行结果创建的 Gatling 报告目录。

默认情况下,报告目录写入(使用gatling-maven-plugin)在:

target/gatling/<simulation-class-name>-<timestamp>

是否可以像这样配置报告目录名称:

target/gatling/<my-dynamically-determined-name>-<timestamp>

?

谢谢。

您可以覆盖用于启动模拟执行的命令。

例如:传递 -Dgatling.core.outputDirectoryBaseName=abc 会生成名称为 abc-<timestamp>

的输出文件夹

将您的参数作为 -rf "YOUR LOCATION"

传递
java -cp target/gatling-java-example.jar io.gatling.app.Gatling -s "com.jay.platform.perf.BasicSimulation" -rf "results"