# Unable to Group requests together in Gatling

**URL:** <https://community.gatling.io/t/unable-to-group-requests-together-in-gatling/6184>\
**Category:** Gatling (Open-Source)\
**Created:** [July 17, 2021, 6:10am UTC](https://community.gatling.io/t/unable-to-group-requests-together-in-gatling/6184 "2021-07-17T06:10:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Chamoli](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Vivek\_Chamoli](https://community.gatling.io/u/Vivek_Chamoli)\
**Post date:** [July 17, 2021, 6:10am UTC](https://community.gatling.io/t/unable-to-group-requests-together-in-gatling/6184/1 "2021-07-17T06:10:48Z")

</div>

Hi Team,  
I’m using gatling 3.6.0

I’m trying to group two requests together under a group name as follows:

_val chain1 = exec(http(“GET\_SingleUser\_24”).get(“/api/users/12”))_  
_val chain2 = exec(http(“GET\_SingleUser\_25”).get(“/api/users/12”))_

_val scn = scenario(“My Scenario”)_  
_.group(“MyGroup”){_  
_exec(chain1, chain2)_  
_}_

But I’m always getting the following result:

---- Requests ------------------------------------------------------------------

> Global (OK=1 KO=0 )  
> MyGroup / GET\_SingleUser\_24 (OK=1 KO=0 )

Request "GET\_SingleUser\_25 " is not getting hit.

Can someone please explain where I’m doing wrong?

---

<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 17, 2021, 11:58am UTC](https://community.gatling.io/t/unable-to-group-requests-together-in-gatling/6184/2 "2021-07-17T11:58:21Z")

</div>

I guess this second request has some HTTP caching headers that makes it skipped, as it’s identical to the first one.

---

<div class="post-metadata">

**Author:** ![Vivek\_Chamoli](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Vivek\_Chamoli](https://community.gatling.io/u/Vivek_Chamoli)\
**Post date:** [July 17, 2021, 12:04pm UTC](https://community.gatling.io/t/unable-to-group-requests-together-in-gatling/6184/3 "2021-07-17T12:04:44Z")

</div>

Hi Stephane,  
Yss u are correct…After changing the request end points, both the request got it.

_val chain1 = exec(http(“GET\_SingleUser\_1”).get(“/api/users/1”))_  
_val chain2 = exec(http(“GET\_SingleUser\_2”).get(“/api/users/2”))_

_val scn = scenario(“My Scenario”)_  
_.group(“MyGroup”){_  
_exec(chain1, chain2)_  
_}_

The Result is:

---- Requests ------------------------------------------------------------------

> Global (OK=2 KO=0 )  
> MyGroup / GET\_SingleUser\_1 (OK=1 KO=0 )  
> MyGroup / GET\_SingleUser\_2 (OK=1 KO=0 )

Thank u…so much for helping…!!
