6.6. Test Cases

Test cases are the atomic or smallest units of testing. They form part of test designs. They are created based on test approaches (automated versus manual), are part of test architecture (some are unit tests, others deal with the component), and contain inputs, steps, and expected output.

6.6.1. Description of Test Cases

The basic purpose of a test case is to test a single element within a component. This single element can be a class or it can be a function within a class. In order to accomplish this, a test case has to provide a set of input data and parameters, the steps that are needed in order to execute the tests, and the expected results.

In large or complex projects, test cases may also be generated automatically. They ...

Get Process Quality Assurance for UML-Based Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.