I'm looking for the recommended/nicest way to make Selenium tests execute in several browsers one after another. The website I'm testing isn't big, so I don't need a parallel solution yet.
I have the usual test set-up methods with [SetUp]
, [TearDown]
, and [Test]
. The SetUp one, of course, instantiates a new ISelenium
object with whatever browser I want to test with.
So what I want to do is programmatically say: this test will be run on Chrome, IE, and Firefox in sequence. How do I do that?
EDIT:
This might help a bit. We're using CruiseControl.NET to start the NUnit tests after a successful build. Is there any way to pass a parameter to the NUnit executable, and then use that parameter in the test? This way we could have NUnit run several times with different browser parameters.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…