# How to keep redirects and resources under single Request name

**URL:** <https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886>\
**Category:** Gatling (Open-Source)\
**Created:** [November 10, 2020, 6:44pm UTC](https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886 "2020-11-10T18:44:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhu\_K](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Madhu\_K](https://community.gatling.io/u/Madhu_K)\
**Post date:** [November 10, 2020, 6:44pm UTC](https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886/1 "2020-11-10T18:44:41Z")

</div>

Hi Team, Please find the issues am facing. Please check and help me out

Query 1 : In reports Index.html observed Requestname/Transaction Name shows like below  
RequestName1/Transaction1 and Transaction1\_Redirect

How can i combine both to Transaction 1 only.

Request :

.exec(http(“Transaction1”) .get(“http://” + uri1 + “/example1”)

.headers(headers\_0)

**Query 2 :**

Have to keep multiple requests under one Transaction Name.  
How can i combine them to one Request name/Trasnaction name

.exec(http(“request\_4”)  
.get(“assets/config.json”)  
.headers(headers\_4)  
.resources(http(“request\_5”)  
.get(“rest/v1/permissions”)  
.headers(headers\_4),  
http(“request\_6”)  
.get("/v7/user\_details")  
.headers(headers\_4),  
http(“request\_7”)  
.get(“woff?v=1.2.5”)

---

<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:** [November 10, 2020, 7:07pm UTC](https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886/2 "2020-11-10T19:07:13Z")

</div>

Use groups: [https://gatling.io/docs/current/general/scenario/#groups-definition](https://gatling.io/docs/current/general/scenario/#groups-definition)

---

<div class="post-metadata">

**Author:** ![Madhu\_K](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Madhu\_K](https://community.gatling.io/u/Madhu_K)\
**Post date:** [November 10, 2020, 7:52pm UTC](https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886/3 "2020-11-10T19:52:03Z")

</div>

Thanks Stephane.  
Serious suggestion. In the documentation please do share some examples of implementation . This will really helps …

---

<div class="post-metadata">

**Author:** ![Madhu\_K](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Madhu\_K](https://community.gatling.io/u/Madhu_K)\
**Post date:** [November 10, 2020, 9:39pm UTC](https://community.gatling.io/t/how-to-keep-redirects-and-resources-under-single-request-name/5886/4 "2020-11-10T21:39:39Z")

</div>

Hi Stephane,

After using the group definition, dont see the transactions in Report Index.html

group(“Logout”)  
{  
exec(http(“Logout”)  
.get("/logout.html")  
.headers(headers\_52)  
.check(status.is(200))  
.check(status.in(200 to 210))  
.resources(http(“Logout\_Extra\_1”)  
.post(uri2)  
.headers(headers\_1)  
.formParam(“client\_data”, “SecurityDevice”)  
.formParam(“post\_url”, “[https://my.policy](https://my.policy)”)))  
}
