I want to run my tests in parallel, but some of my feature files require the server to be in different (incompatible) states. This is because the server behaves differently when it is in different states, and I want to be able to cover all of these behaviors.
My first thought on how to resolve this was to set up two instances of the server and set
maxInstances: 2 in my wdio.conf file. For this to work, however, I would need to be able to tell which of the two instances each test was being run in so that I could have the test connect to the correct instance of the server. Is there some way to tell which thread is currently active?