aspose file tools*
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
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Test suite dependeny" Watch "Test suite dependeny" New topic
Author

Test suite dependeny

Avinash More
Greenhorn

Joined: May 16, 2009
Posts: 5
Hi,

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 ?

Regards,
Avinash
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30919
    
158

Avinash,
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.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test suite dependeny