I have been trying to find a good solution to this problem for a while now and have yet to come up with a strong solution. I have created a test suite using WebDriver and C# to run our test suites against our sites. My only remaining issue is I want to find a way to have the full suite execute in FireFox, Chrome then IE. So basically, I need the test to complete in FireFox, then complete in Chrome and finally complete in IE in order.
I have researched into Selenium Grid and am currently tackling getting that up and running but am facing all types of issues since we do not have any virtual machines to use, I would need to run it on my local. So if the part of this question is not possible, or not a good solution, would someone be able to direct me to how to setup Selenium grid to run in those 3 main browsers on my local? All documentation I have found requires virtual machine setups.
I have just used NUnit’s parameterised test’s.
I created an Enum:
Called it in the TestFixture like so:
In AbstractTestFixture:
May not be the best solution, but I found it pretty readable. The alternative is using something like Selenium Grid, or maybe passing the type of driver into NUnit and create it directly, like so:
Another alternative is if you use a CI Server solution, create a configuration setting to indicate which browser to use for the test. Have the CI Driver repeat the tests three times, editing that configuration setting each time.