Replies: 1 comment 6 replies
-
Cucumber JVM only executes the before all and after all hooks once per execution.
Could you clarify where you read that? Then we can fix the documentation. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm working on the project where are thousands of UI-tests, so it's necessary for us to make them running in parallel.
Also there is cookie "token" that refresh every time user logs into the website.
I don't want to hard-code token values for every user every day before Jenkins starts working, so I need to write an authorisation-by-token scenarios for some users with REST-requests and need to run this feature Before All of the other features.
Somewhere I read BeforeAll tag will run once per worker if parallel mode is used, so I suppose tokens will be rewritten at the same moment as many times as we have threads..... looks like a horrible mess
So (if it is possible) how can I solve this problem with Cucumber? Thanks for reading
Beta Was this translation helpful? Give feedback.
All reactions