Multiple Browsers Tests using Webinator+Selenium, SpecFlow and NUnit Multiple Browsers Tests using Webinator+Selenium, SpecFlow and NUnit selenium selenium

Multiple Browsers Tests using Webinator+Selenium, SpecFlow and NUnit


You can that much more simpler just use

Then you write feature with tag @Browser:IE

@Browser:IE@Browser:FirefoxScenario: Add comments       Given I navigated to /guinea-pig       And I have entered 'This is not a comment' into the commentbox       When I press 'submit'        Then my comment 'This is not a comment' is displayed on the screen

For now is the best solution which i found since it also make sence to test not in all browsers but in specific which you need


I've created a new SpecFlow plugin that achieves the upvoted comment. It supports SpecFlow 3 (which means core too).

It also works with either MsTest, NUnit and xUnit.

https://github.com/TotalTest/SpecFlow.Contrib.Variants

The scenario and how it looks in test explorer can be seen here: img

But essentially you can do either:

@Browser:Chrome@Browser:FirefoxFeature: AnExampleFeature

or

@Browser:Chrome@Browser:FirefoxScenario: AnExampleScenario

And the scenarios will run for each browser