简体   繁体   English

有没有办法获得加特林“报告 ID”?

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

When Gatling creates a test report, it names the report directories as {{simulationId}}-{{someLongNumberId}} (example - single_user_test-1507218111111 )当 Gatling 创建测试报告时,它将报告目录命名为{{simulationId}}-{{someLongNumberId}} (示例 - single_user_test-1507218111111

Is there a way I can get this number after load test has completed (in a 'after' hook maybe?)有没有办法在负载测试完成后获得这个数字(可能在“之后”挂钩中?)

The reason I want to do this is to create path to get js/stats.json file in test reports folder and get minResponseTime, maxResponseTime, meanResponseTime objects.我想这样做的原因是创建路径以在测试报告文件夹中获取js/stats.json文件并获取minResponseTime, maxResponseTime, meanResponseTime对象。

I'm new to scala/gatling so useful links are welcome!我是 Scala/gatling 的新手,欢迎使用有用的链接!

The number you're talking about is:你说的数字是:

scala> System.currentTimeMillis
res1: Long = 1508321556008

The last sentence printed in the standard output, is:标准输出中打印的最后一句话是:

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

Can't you parse that?你不能解析吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM