简体   繁体   中英

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 )

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.

I'm new to scala/gatling so useful links are welcome!

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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