# Reporting loops as a single request

**URL:** <https://community.gatling.io/t/reporting-loops-as-a-single-request/104>\
**Category:** Gatling (Open-Source)\
**Created:** [June 19, 2012, 1:28am UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104 "2012-06-19T01:28:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Drew](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@Nick\_Drew](https://community.gatling.io/u/Nick_Drew)\
**Post date:** [June 19, 2012, 1:28am UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/1 "2012-06-19T01:28:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [June 19, 2012, 5:45am UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/2 "2012-06-19T05:45:48Z")

</div>

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/322)  
[https://github.com/excilys/gatling/issues/170](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](mailto:nick.s.drew@gmail.com)\>

---

<div class="post-metadata">

**Author:** ![Nick\_Drew](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@Nick\_Drew](https://community.gatling.io/u/Nick_Drew)\
**Post date:** [June 19, 2012, 6:05am UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/3 "2012-06-19T06:05:13Z")

</div>

Thanks for quick reply Stéphane 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_C](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Michael\_C](https://community.gatling.io/u/Michael_C)\
**Post date:** [July 27, 2016, 11:36pm UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/4 "2016-07-27T23:36:34Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Michael\_C](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Michael\_C](https://community.gatling.io/u/Michael_C)\
**Post date:** [July 28, 2016, 4:48pm UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/5 "2016-07-28T16:48:54Z")

</div>

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

Thanks.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 29, 2016, 1:09am UTC](https://community.gatling.io/t/reporting-loops-as-a-single-request/104/6 "2016-07-29T01:09:44Z")

</div>

That’s the spirit! 😉
