Introduction to JUnit
JUnit is a framework for the Java programming language. This framework was developed by Kent Beck and Erich Gamma and is one of the most successful and widely used automated Unit testing frameworks.
Basic installation steps include:
- Download and Install JUnit
- Define a Subclase of TestCase
- Override setUP() method Initialize the environment
- Define one or many test() method that exercises objects under test and asserts expected results
- OVerride tearDown() method to release resources properly
- Define a suite() method to create a test suite
- Execute tests one at a time or execute a suite of tests
Technorati Tags: java testing, junit, unit testing
how to create a junit test suite for my selenium RC tests.
i had written 10 classes(test cases) for my testing using junit. if i run individually. no issues.
every class has setup() and tear down() methods.in setup() i am starting up the selenium server and client.and in teardown() i am shutting down the server.
now i want to sum up all the classes(test cases) into one test suite.
Can any one help me for the right procedure.i am using junit4.x version.
Thanks,
Ramana.