据我所知,有 3 种方法可以将一些自定义消息添加到 Gatling 报告中
在gatling.conf文件中运行 description参数,它显示在报告的顶部(在报告时间和持续时间旁边)
gatling {
core {
runDescription = "Test description of report"
}
}
Run Code Online (Sandbox Code Playgroud)场景名称- 测试代码中场景的参数,显示在报告之一(模拟中的活动用户)
scenario("Scenario name")
.exec(http("Action name").get("http://localhost"))
Run Code Online (Sandbox Code Playgroud)操作名称- 测试代码中的 http 参数,显示在统计表上
scenario("Scenario name")
.exec(http("Action name").get("http://localhost"))
Run Code Online (Sandbox Code Playgroud)