Published by Patrick Mutisya · 14 days ago
Testing is a critical phase of the systems life cycle. It ensures that the system behaves as expected and that data is processed correctly. The following notes cover the main types of testing that candidates need to know for the Cambridge IGCSE ICT exam.
Data structures store information in a way that can be efficiently accessed and manipulated. Tests focus on:
Example test case for an integer field Age:
-1 → Expected result: error (age cannot be negative).0 → Expected result: accepted (if age 0 is allowed).150 → Expected result: error (exceeds realistic upper limit).File structures determine how records are stored on disk. Common structures include sequential, indexed, and random access files. Tests should verify:
Input formats define how users or other systems provide data to the application. Testing includes:
DD/MM/YYYY).Output formats must present data in a clear, accurate, and consistent way. Tests cover:
Validation routines are the code that checks input before it is processed. Typical validation checks include:
Example of a simple validation routine in pseudocode:
IF NOT isNumeric(age) THEN
DISPLAY "Age must be a number."
ELSE IF age < 0 OR age > 120 THEN
DISPLAY "Age must be between 0 and 120."
ELSE
CONTINUE processing
END IF
| Test Type | Focus Area | Typical Test Cases |
|---|---|---|
| Data Structure | Data type, boundaries, null handling | Minimum/maximum values, invalid types, empty fields |
| File Structure | Record layout, file operations, indexing | Add/delete records, search by key, file integrity after updates |
| Input Format | Field presence, format, special characters | Missing required fields, wrong date format, injection strings |
| Output Format | Presentation, precision, units | Decimal places, column alignment, correct unit labels |
| Validation Routine | Automated checks before processing | Type checks, range checks, regex pattern matches, cross‑field logic |
By mastering these test designs, you will be able to demonstrate a thorough understanding of the testing phase within the systems life cycle, a requirement of the IGCSE ICT specification.