Skullers
Skullers

Reputation: 75

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!

Upvotes: 3

Views: 989

Answers (1)

n1r3
n1r3

Reputation: 8953

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?

Upvotes: 1

Related Questions