Testing, Knowledge Organiser

Knowledge Organiser: Testing

Key Terms

  • Normal data: Typical valid input the program should accept (e.g. age 25)
  • Boundary data: AQA: values either side of each limit (e.g. 17, 18, 65, 66). OCR: the correct-type value on the very edge of being valid (e.g. 18, 65)
  • Erroneous data: AQA: any data the program should reject. OCR: data of the wrong data type (e.g. "abc"). Edexcel names test data without the three types
  • Invalid data (OCR): Data of the correct data type that should be rejected, such as -5 or 200 for an age
  • Iterative testing: Testing each module as it is developed, during programming
  • Final testing: Testing the complete program end-to-end once development is finished

Must-Know Facts

  • Every test must state the test data, the type, and the expected outcome
  • Boundary testing must cover both sides: just inside AND just outside the limit (AQA). For OCR, boundary data is the value on the very edge of the valid range
  • Iterative testing finds bugs early — earlier is cheaper and easier to fix
  • Normal data should be accepted; erroneous data should be rejected
  • A test without an expected result is not a valid test

Key Concepts

  • Memory aid: NBE — Normal, Boundary, Erroneous
  • For valid range 18–65: AQA boundary values are 17, 18, 65, 66; OCR boundary values are 18 and 65
  • Test plan columns: Test number | Test data | Type | Expected result

Common Mistakes

  • Missing boundary values on both sides (AQA): For a valid range of 18–65, test 17 AND 18 (lower boundary) AND 65 AND 66 (upper boundary) — just testing 18 and 65 is incomplete
  • Not stating expected results in test plans: A test without a clearly stated expected outcome is not valid — examiners require test data, type, AND expected result
  • Confusing erroneous with boundary data: In OCR, erroneous data is the wrong data type (such as "abc"), and boundary data is the valid edge value (for ages 18 to 65: 18 and 65 are accepted). In AQA, boundary data is either side of the limit (17, 18, 65, 66) and erroneous data is anything the program should reject
  • Saying iterative testing means testing at the end: Iterative testing happens during development, after each module is written — it is the opposite of leaving all testing until the end

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.