有什么办法可以获得加特林 "Report ID" 吗?

Is there a way I can get the Gatling "Report ID"?

当 Gatling 创建测试报告时,它将报告目录命名为 {{simulationId}}-{{someLongNumberId}}(示例 - single_user_test-1507218111111

有没有办法在负载测试完成后获得这个数字(也许在 'after' 挂钩中?)

我想这样做的原因是创建路径以获取测试报告文件夹中的 js/stats.json 文件并获取 minResponseTime, maxResponseTime, meanResponseTime 个对象。

我是 scala/gatling 的新手,欢迎提供有用的链接!

您说的号码是:

scala> System.currentTimeMillis
res1: Long = 1508321556008

标准输出中打印的最后一句话是:

Reports generated in 0s.
Please open the following file: /Users/nicolas/Downloads/gatling-charts-highcharts-bundle-2.3.0/results/basicsimulation-1508321476222/index.html

你不能解析吗?