testng multiple suites
- by Eli
Hi people.
my problem is as follows:
i am testing a web-ui using selenium and testng. i have a test suite with many test classes in it.
i have a method with the @BeforeSuite witch also has a @Parameters annotation, this method recieves as a parameter the browser in witch the selenium will test by run,executing the lines:
selenium = new DefaultSelenium("localhost", 4444, **browser**, "http://localhost:8099");
selenium.start();
the xml im using to run the test suite is:
<suite name="suite">
<parameter name = "browser" value = "*firefox"/>
<test name="allTests">
<classes>
<class name="test.webui.MemcachedDeploymentTest" />
</classes>
</test>
</suite>
this works fine and the test runs in firefox.
my problem is that i would like to somehow run this suite again, immediatly after the first run finishes, but this time with chrome as the browser. i now have 2 xml suites, one with chrome and one with firefox, is there any way to run these test suites one after the other automatically? maybe using a third xml?
Thanks in advance