CAIE 9618 · Paper 2 · Topic 2.5.1
Testing
Strategies
Black Box · White Box · Test Data Types · Test Tables · Trace Tables
CSZone
Cambridge International AS & A Level Computer Science 9618
Test Data Categories
Normal, Boundary, Erroneous & Extreme
For a function that accepts an age 0–120:
| Type | Definition | Example (age 0–120) | Expected Result |
| Normal (valid) | Typical, expected input within range | 25, 67, 5 | Accepted, processed normally |
| Boundary | Exact at the edge of valid range | 0, 120 | Accepted (boundary included) |
| Extreme | Valid but at extreme ends of range | 1, 119 | Accepted and processed |
| Erroneous (invalid) | Outside valid range, wrong type, no input | -1, 121, "abc", empty | Rejected with error message |
Key: Always test both sides of each boundary — just inside valid range AND just outside.