I have an authenticate scenario which return a token. After 5 minutes (example), the token is expired. But this token is mandatory for the success of other scenarios. Now, I don't really want to run this scenario each time before the other scenarios. Ideally, I will run it a first time, get the token, and when the expiration time, rerun the authenticate scenario.
Currently, my yml file follow this logic:
execution:
- scenario: mainload
scenarios:
authenticate:
requests:
- http://auth.com
mainload:
requests:
- include-scenario: http://needToken.com
- http://needToken.com
So, how can I using Taurus inside an yml file do this? Like, waiting 5 minutes before relaunching the scenario?
Have a nice day.