6.6.2. Creating modules from existing Test Cases
Prev | 6.6. Approaches to testing | Next

### 6.6.2. Creating modules from existing Test Cases

It is often initially more intuitive to start writing a test in a linear fashion, adding steps as necessary. Each step is specified for the current purpose, and contains all the necessary details (e.g. data).

The possible problem with this method is that similar or identical parts are often separately and multiply specified, which means that making changes at a later point can be difficult and time-consuming.

To avoid this, you can extract Test Cases from other Test Cases to combine them into reusable modules (Section 3.10.12, “Extracting Test Cases from editors: Refactoring”).