Easy-to-deploy virtual machines starting at $5/month.
While searching for a solution I found “Cucumber Testing for Multiple Users” by Bernard Potocki. He shows how to achieve multiple sessions with Cucumber and Selenium, but I wanted to make it easier.
Drop the following into
Now you can write step definitions such as:
Which allows for scenarios to deal with multiple sessions.
Conclusion & Example
It’s very comforting knowing that I can test interactions between two users now. And while I have not tried it yet, you can potentially test interactions between a group of users.
I have created a basic example, cucumber-websocket-example, which demonstrates the above code.