views:

13

answers:

1

In junit test, should I create another test suite named as ExampleBAT to do this, and this test suite contains the selected test cases? Thanks.

+2  A: 

The BVT/BAT is a short set of tests which is done after the build and exercises the main functionality. So for (large) applications, JUnit might not be the right choice for this kind of tests. I'd design those test to be performed by hand or a different test framework which is capable to automate tests for applications or systems.

The BVT/BAT just proves, that the build was good enough to create a useable application (can be executed, user interface is accessible, can load data from database, ...).

Andreas_D
Firstly, write test cases with Junit, then we could leverage ant to automate the test.
Joseph