While using scenarios, can I also use setup() which ca return a data{} ?
I have 2 scenarios. But to perform these 2 scenarios, i need to perform ONE single http call to get a token. And that token needs to be supplied to both scenarios.
Yeah, using the setup() function to make that single http call and return the token to be supplied to your scenario functions should work exactly as you described.