bewen
2 years agoOccasional Contributor
Changing the values of a variable in a scenario script when used again later in a test run
Hi there, I'm not sure if this has been asked before but couldn't find anything in the community or in the documentation for what I'm looking to do.
I'm looking to run a Login BDD scenario I have made which has a Login script that takes projects variables to log the user in. However, I want to be able to run this script twice in one test run, so log user A in do some stuff and logout, then log user B in and do some stuff. I was looking to do this by including my login scenario twice within my execution plan. Is it possible to be able to change what project variables the scenario/script will use later in the execution plan to be able to log the second user in?
Thank you for any help 🙂