Single lesson · Written for AQA GCSE Computer Science (8525)

Test data: normal, boundary and erroneous – AQA GCSE Computer Science lesson (8525)

Pupils learn to describe normal, boundary and erroneous data and choose and justify test data for a problem.

Also in a bundle Cyber Security and Robust Programs – AQA GCSE Computer Science lessons (8525) 14 lessons for £39 · save 30% on buying separately

Lesson 12 of 14 in unit 11.1 Cyber Security and Robust Programs, taught in Year 11, Autumn 1. It answers one big question: How do we choose test data that really tests a program?

By the end, pupils can describe normal, boundary and erroneous data and choose and justify test data for a problem.

The Build (the main task)
Complete the test table for the shoe-size check (3 to 13): give one normal value, the four boundary values and one erroneous value, with the expected result for each. (4 marks) Justify your choice of boundary data. (2 marks)
Support version
A test table with one row of each type filled in.
Challenge
Kickstand's discount codes must be 6 to 10 characters long. Give test data for this rule: one normal, four boundary and one erroneous test, each with its expected result. (4 marks) Explain why boundary data is more likely than normal data to find a logic error in a validation routine. (4 marks)
Real-world link
Testing Kickstand's order form before the trainer drop.
Key words
Normal data, Boundary data and Erroneous data, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“Boundary data is just the two limits”; “Erroneous data is only the wrong data type”.
AQA 8525 specification
3.2.11 (robust and secure programming: validation, authentication, testing, test data, errors).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils can do it all on paper.

Also sold in the Cyber Security and Robust Programs unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for GCSE Computer Science (AQA)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.