繁体   English   中英

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

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

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

有没有办法在负载测试完成后获得这个数字(可能在“之后”挂钩中?)

我想这样做的原因是创建路径以在测试报告文件夹中获取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

你不能解析吗?

暂无
暂无

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

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