TEST CASES A set of test inputs, execution conditions, and expected results developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement TEST SUITE Collection of test cases. The test suite often contains more detailed instructions or goals for each collection of test cases. It contains a section where the tester identifies the system configuration used during testing. A group of test cases may also contain prerequisite states or steps, and descriptions of the following tests.
TEST PLAN
A test plan is the approach that will be used to test the system, not the individual tests. A detail of how the test will proceed, who will do the testing, what will be tested, in how much time the test will take place, and to what quality level the test will be performed.
Step 1: Write a Test Suite To write a test suite, follow these steps: 1. Define a subclass of TestCase. 2. Define a suite() factory method that creates a TestSuite containing all the TestCase instances and TestSuite instances contained in the TestSuite. 3. Define a main() method that runs the TestSuite.
Step 2: Run the Tests • Now that we've written a test suite containing a collection of test cases and other test suites, we can run either the test suite or any of its test cases individually • Running a TestSuite will automatically run all of its subordinate TestCase instances and TestSuite instances. Running a TestCase will automatically invoke all of its defined testXXX() methods