Save Gatling request response to use it across requests

I have written gatling API request inside a function. That request will returns the token which I want to return from function so that it can be used across various request. Can someone please help here.

Can you share some samples here, the more verbose the better answers you get.

  • why can’t you store the token in the session, and use it across all other requests

Hello @damodharj,

As @shoaib42 wrote, the best way to handle that is to use session variables with a saveAs on the check you use to extract your token.

If there is no enough explanation for you, please provide your current code and what you tested.
A full reproducer will help anyone in the forum to help you.

Cheers!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.