Multiple Exec in a group

Hi folks,

I want to execute multiple URL’s inside one group itself, To do so i am using group for the same , but when i am checking the simulation.log i am not getting any entry for the first request which i am hitting through my script

.group(“HomePage”)
{

exec(http(“HomePage_request”)
.get(uri1)
.extraInfoExtractor(extraInfo => List(extraInfo.response.statusCode.get,extraInfo.response.bodyLength,extraInfo.request.getUrl))
.check(status.is(200))
)

exec(http(“HomePage”)
.get("/usermanual/best-practices.html")
.extraInfoExtractor(extraInfo => List(extraInfo.response.statusCode.get,extraInfo.response.bodyLength,extraInfo.request.getUrl))
.check(status.is(200))
)

here first Homepage_request is not getting hit from script

Regards,

Rajat Singh

You need to chain your calls - yours are stand-alone. All you need to do is prefix the second exec with a full-stop character, highlighted below:

exec(http(“HomePage_request”))
.get()

.exec(http(“HomePage”))
.get()