dcsimg
Is there any definite order of Execution of Junit Test Cases
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   manish_garg
Posted On:   Tuesday, December 27, 2005 08:39 AM

In my project, I have Junit testsuit that invokes various test cases. Each test case file have a number of junit test cases.
Is there any order or can we enfore the order in which test cases should be executed?

We want our test cases to be executed in a specified order. For example, in a testcase file, test case for create should be executed before the test case of updating an entity. The key returned by create test case is used by update test case.

Re: Is there any definite order of Execution of Junit Test Cases

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, December 30, 2005 03:16 PM

I think that if your update test depends on your create test, then they are not really separate unit tests. Perhaps the create should be part of the setup for the update.
About | Sitemap | Contact