How to keep redirects and resources under single Request name

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”)

Use groups: https://gatling.io/docs/current/general/scenario/#groups-definition

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

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”)))
}