Parallel Testing with Selenium Grid - Static classes have driver issues
I am currently working on an automation project.
I have the project itself complete.
However, I am now integrating Selenium Grid into my project to run my tests parallel on different browsers e.g (Chrome, IE and Firefox).
The problem I'm having is that my whole project is constructed of Static Methods and Selenium Grid doesn't seem to like this as I'm having driver issues.
I've spoken to many people I work with and the only option we can see at the moment is to change the whole project around, but this will be very tedious and time consuming.
Is there any other solution to running Selenium Grid with the static classes to provide parallel testing?
Thanks in advance.
I would assume that to run test cases in parallel, you need to have multiple instances of the same test - which is not possible if classes are static.
In Agile development, when deciding which approach to use to solve a problem, good idea is try spike solution - in your example it would be before committing yourself to architecture, try one simple test (with your original static class design) and run in on the grid. Idea is to test your assumption about the approach using whole technology stack.