StepArgumentTransformation is not working
We have requirement that on each specflow scenario execution we need new user with new new username.
And we want to generate unique username on each execution so we decided to use StepArgumentTransformation feature in specflow.
But somehow it is not hitting the method which is attributed with StepArgumentTransformation. We are using Specflow+Runner with c#
0
-
We are stuck on this issue, can anyone please give update on this.
Thank you.
0 -
The step regex on your Given step is incorrect.
Your StepArgumentTransformation regex is "(.*) user". This is for the whole parameter.
So in your Step Regex "I login with (.*) user", it can't match it, because you have the user also here.
So "I login with (.*)" should work.
0
Please sign in to leave a comment.
Comments
2 comments