You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So assuming that in someSteps I would like to create a new Thread, then I will have the problem that the ThreadLocal variables (from other shared Steps) for that new thread is basically gone / null.
I propose to change every instance of ThreadLocal involved in Step decoration to InheritableThreadLocal in order to be able to create concurrent checking Threads from within @Steps, that can still access shared @Steps.
The text was updated successfully, but these errors were encountered:
ThreadLocals are usually ThreadLocal for a reason - if they are not ThreadLocal, the reports won't get generated properly because the event bus needs to be one per thread. I'm not sure how an InheritableThreadLocal would work for this.
This is potentially doable but causes problems with the SerenityParameterizedRunner, which runs separate tests in parallel in separate threads. Feel free to see if you can get it to work.
I would like to write a test that does some concurrent activity.
For example:
So assuming that in
someSteps
I would like to create a new Thread, then I will have the problem that theThreadLocal
variables (from othershared
Steps) for that new thread is basically gone /null
.I propose to change every instance of
ThreadLocal
involved in Step decoration toInheritableThreadLocal
in order to be able to create concurrent checking Threads from within@Steps
, that can still access shared@Steps
.The text was updated successfully, but these errors were encountered: