Hi @martinp
Sorry for the late reply
As you’ve already found out, it is indeed not yet possible to perform setup/teardown
per scenario, natively, yet. We have a GitHub issue tracking this issue already, but no estimated date of arrival yet. The implementation of that feature depends on the resolution of a bunch of issues that we haven’t addressed yet.
I’m not entirely certain that I understand the exact scenario setup you intend to use. Would you be able to post an (anonymized) example illustrating your goal (showing for instance how your scenarios are defined, etc)?
Regardless I believe there might be a few workarounds that you might find useful:
- http://grafana.staged-by-discourse.com/t/parallel-async-code-in-setup-or-scenarios-chains/98951/2: having your
setup
function perform the different authentication, and storing the result for later retrieval is what you’re looking for? (note that you can find which VU is currently executing your function using the execution module - Before each scenario
- I believe you could also try to have an initialization scenario, and have all the other scenarios
startTime
wait for it to be over, as describe in Sequentially run scenarios
Let me know if that’s helpful, and if you have a more concrete example of what you’re trying to achieve