samedi 14 avril 2018

specflow/use the same random variable in all scenarios

I have 3 scenarios, in the first i create a user with a random id. in the others scenario i need to use that same user.

I've tried to store the random value in a featurecontextcurrent. but it returns null. I've tried also the context injection. when i put the scenario of creating the user in the background everytime i have a different user because a new user is generated with every scenario. I have tried also beforefeature and added the tags to the other scenarios. but every time my value is null within others scenarios.

question please how can I store that random value and use it in the hole feature ? can you please give me example

thanks in advance




Aucun commentaire:

Enregistrer un commentaire