-
Hey all, For my use case I want to create a new customer and save the customer number in a variable. In a different test I want to search for the newly created customer. Resulting in something like this:
In a different step that is used in a different test I want to use the above number to search for the customer or when that variable is empty use a hardcoded number
This works when I run both scenario's in the same feature file but I would like to split it up and save the extracted number for later use for other scenario's I looked at the documentation but unfortunately I cant make much sense of it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The context is thrown away between feature files / specs and this is the case preprocessor or not. You can eg. use tasks to persist / maintain state in a plugin. However, sharing context between feature files sounds like a horrendously bad idea (well-established anti-pattern). |
Beta Was this translation helpful? Give feedback.
The context is thrown away between feature files / specs and this is the case preprocessor or not. You can eg. use tasks to persist / maintain state in a plugin. However, sharing context between feature files sounds like a horrendously bad idea (well-established anti-pattern).