testng multiple suites
Posted
by
Eli
on Stack Overflow
See other posts from Stack Overflow
or by Eli
Published on 2010-12-21T16:01:33Z
Indexed on
2010/12/22
1:54 UTC
Read the original article
Hit count: 245
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
© Stack Overflow or respective owner