How can I use my "Given that a user is generated" step in multiple Features? (The other steps in those features will use the response) #503
-
Is there a way to make a CommonSteps Class which will be the parent of my other StepDefinition classes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I'm not sure I fully understand the question. The default behaviour is that steps are globally available to features, independently of the class which they are attached to. You could define each step on a separate class if you wanted to! |
Beta Was this translation helpful? Give feedback.
you can use beforescenario hook and do any changes, or use tags to flag user type and load what you need base on that. https://docs.reqnroll.net/latest/automation/scoped-bindings.html or here some example in code: https://docs.reqnroll.net/latest/automation/scoped-bindings.html#id8