Reporting loops as a single request

Hi all,

How would I go about reporting the aggregate timing a loop made up of a polling request?

Here’s my current state: I start a long running job, and then poll it every second until complete:

.loop(
chain.exec(
http(“poll_indexing”)
.get(“url-of-long-running-job”)
.check(
status.is(200),
regex(“Available|Finished|Running”)
.find
.transform((s:String) => if(s.compareTo(“Running”)==0) “true” else “false”)
.whatever
.saveAs(“indexing”))).pause(1)
).asLongAs(
“${indexing}”, “true”
)

However, when I view the report for this, I see a breakdown on how long “poll_indexing” takes per poll (e.g. < 5ms), rather than how long poll_indexing takes in total (e.g. 30 seconds)…

How would I aggregate poll_indexing into a total time?

Regards

Nick

Hi Nick,

We don’t have aggregates for now, but that’s something we plan to implement:
https://github.com/excilys/gatling/issues/322
https://github.com/excilys/gatling/issues/170

As this feature has be repeatedly requested, we’ll raise its priority, so expect it to be implemented in a next release (< 1 month).

Cheers,

Stéphane

2012/6/19 Nick Drew <nick.s.drew@gmail.com>

Thanks for quick reply Stéphane :slight_smile:

Was this ever implemented? Can’t seem to find anything?

I would like to report out on the Chains or Scala Objects grouping requests.

NM … I figured it out (RTFM). I should be using groups to execute chains and report on a single name.

Thanks.

That’s the spirit! :wink: