GCSE · Computer Science · Eduqas · Spec C500QS
Designing a testing strategy
Your program runs and looks fine. But how would you know it does everything it was meant to? Decide that before you run a single test.
Computer Science · Testing
Which question does this line answer?
Sort each line by the question it answers. Then switch the rule and sort the same lines by when they happen.
Does the line say what is tested, when it is tested, or how?
Still to sort
What is tested (0)
A requirement or feature that needs checking.
Where the line is: It names the thing to check. It doesn't say what to type or when to do it.
When it is tested (0)
A point in development when testing happens.
Where the line is: It fixes a moment: while a part is being built, or once everything is finished.
How it is tested (0)
What is entered or done, and what is observed.
Where the line is: It gives an action and something to look for. It doesn't name the requirement or the moment.
Here are eight lines from the testing strategy for a pocket-money tracker. Pick a line, then pick a box.
A test plan
Explore
Pick a column ↓
Two rows of a test plan for the pocket-money tracker. Each row is one test.
Select a column to see what it records and why the plan needs it.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Plan what you'll test, when, and how, before you test anything.
What you need to know
- A testing strategy is a plan, written before the solution is tested, for showing that it meets its requirements.
- It answers three questions: what will be tested, when, and how.
- What: the requirements and features of the solution that each need checking.
- When: iterative testing of each module during development, then final (terminal) testing of the complete solution once it is finished.
- How: what will be entered or done, and what will be observed to decide whether that part works.
Have a goSam says their testing strategy is 'run it and see if it feels right'. Using the three questions, what is missing?
It doesn't say what is tested, when, or how. Nothing specific is entered or observed.
A strategy is a plan that answers what, when and how, written before testing. 'Feels right' answers none of them.
- Each test is linked to the requirement it checks, so every requirement is covered and one with no test shows up as untested.
Have a goA program has 5 requirements. Each of its 4 planned tests is linked to a different requirement. How many requirements are untested?
One (5 − 4 = 1).
Each test covers one requirement here, so one requirement has no linked test, and the plan makes that visible before anything is run.
- The plan is usually a table: test number, description, requirement checked, data or action, expected result.
- The expected result is worked out from the requirements before the test is carried out, so the actual outcome can be compared with it.
Have a goA program should double a number. For the test 'enter 6', a friend writes the expected result as 13, because that is what the program printed. What has gone wrong?
It should be 12, worked out from the requirement before running the test.
Copying the output means the test can never fail. The expected result comes from the requirement, not from what the program does.
- Designing the strategy alongside the algorithm means testing is planned, not improvised, and the finished solution can be shown to meet each requirement.
The big picture
A testing strategy is a plan, written before the solution is tested, that sets out what will be tested, when and how. It is usually written as a test plan, and each test is linked to a requirement.
Key points
Worked example
Problem
A cinema program has this requirement: it works out the total cost of tickets, with adult tickets £8 and child tickets £5. Write the test plan row for a test with 2 adults and 1 child.
⚠ Watch out
Filling in the expected result after running the test, using whatever the program showed. The expected result has to be worked out from the requirement first.
Memory hook
What, when, how: plan it before you run it.
Check yourself
A plan has four requirements and three tests, and each test is linked to one requirement. What can you say about the fourth requirement, and what would you add to the plan to fix it?
Flashcards
(12)Testing strategy
The three questions a strategy answers
'What' in a strategy
Iterative testing
Final (terminal) testing
'How' in a strategy
Why is each test linked to a requirement?
Untested requirement
The columns of a test plan
Expected result
Why compare actual outcome with expected result?
Why plan testing at the design stage?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Eduqas GCSE Computer Science topics
- Authentication management routines
- Comparing approaches to requirements
- Consistent programming style
- Creating and extending Python 3 functions/methods
- Creating and extending Python 3 libraries
- Decomposition
- Explaining test outcomes
- File handling: open a file
- File handling: read into a variable
- File handling: read into an array
- File handling: write to a file
- Iteration: condition and counter controlled loops
How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.