How can I go about making a class available as a single instance to all worker threads, so that if 1 worker updates it, the others will see that change?
I am using setup/teardown project dependencies, so thought maybe the class could be created in setup and somehow be made available to all the workers in the way that I want, but I am unable to figure this out.....yet.
At the moment, I just have a globally defined class, but it looks like each worker has it's own instance of the class which is causing me issues right now.
Any thoughts appreciated.
This thread is trying to answer question "How can I make a class available as a single instance to all worker threads, so that if one worker updates it, the others will see that change?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email firstname.lastname@example.org.