Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Testing and the fly likes Test suite dependeny Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Test suite dependeny" Watch "Test suite dependeny" New topic

Test suite dependeny

Avinash More

Joined: May 16, 2009
Posts: 5

We have created 2 test suits of which one test suite sets up the required data for the execution of test cases in other test suite.

Now my requirement is if the test suite 1 is successful only then I want to execute test suite 2.

Can any one tell me the right approach to accomplish this ?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31680

In TestNG, you can set up this dependency explicitly. In JUnit, you could write your own suite collector. Or use @BeforeClass to set up the data rather than a separate test suite.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Have you tried LearnNowOnline?
subject: Test suite dependeny