Seneca

Types of Test Data

Computer Science: OCR GCSE, topic 2.3.9

Types of Test Data

Normal test data is within the acceptable range of inputs. Boundary data sits on or very close to the limits of the allowed range. Invalid data is outside the valid range or in the wrong format.

Normal

Normal

  • Normal test data is within the acceptable range of inputs.
  • Normal test data represents the typical values a user would enter during normal use.
  • Normal test data checks that the program works correctly under expected, everyday conditions.
  • Example: If the valid age range is 1–120, a normal value might be 45.
Boundary

Boundary

  • Boundary data sits on or very close to the limits of the allowed range.
  • Boundary data checks whether the system handles the smallest and largest valid values correctly.
  • Boundary data also includes values just outside the limits to ensure validation is working.
  • Example: For a valid range of 1–120:
  • Valid boundaries: 1, 120
  • Invalid boundaries: 0, 121
Invalid/erroneous

Invalid/erroneous

  • Invalid data is outside the valid range or in the wrong format.
  • Invalid data is used to make sure the system can detect errors and handle them safely.
  • Invalid data checks whether the program gives appropriate error messages instead of crashing.
  • Example: If a system expects a number, invalid data might be "hello".

Test yourself on Types of Test Data

  • A program accepts ages from 1 to 100. What is an example of normal test data?

  • A password must be between 6 and 12 characters long. Which input is boundary test data?

  • What is invalid test data?

  • What is boundary test data?

  • Identify the correct statement about test data.

Practise this topic for free