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.

8 of 8 still to sort.

Here are eight lines from the testing strategy for a pocket-money tracker. Pick a line, then pick a box.

A test plan

Anatomy of a test plan
Test no.12DescriptionSubtract thespendWarning whenbalance is lowRequirementR2R3Data or actionEnter 3 whenbalance is 20Enter 17 whenbalance is 20Expected resultNew balanceshown: £17Balance £3 andwarning shown

Showing 1 layer: Test plan table

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.

Computer Science · Coverage

Which test checks which requirement?

Tick the cell wherever the test checks that requirement. Then check the grid.

R1: the user can enter the amount spent
R2: the new balance is the old balance minus the amount spent
R3: a warning is shown when the new balance is below £5
R4: the program shows the total spent so far

Computer Science · When testing happens

Put the testing work in order

the order the work happens across development

1 · Happens first3 · Happens last
  1. Test the complete solution once it is finished (final testing)

  2. Write the testing strategy, with expected results, at the design stage alongside the algorithm

  3. Test each module as it is built (iterative testing)

Computer Science · Checking a plan

Find the weak row

Here is a draft test plan for the pocket-money tracker. One row has a problem. Which one?

A draft test plan — which line goes wrong?

Computer Science · Planned or improvised?

Which idea is closest to yours?

Sam has written a pocket-money tracker and is about to start testing it.

Which idea is closest to what you think testing should look like?
How sure are you?

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

1A testing strategy sets out what will be tested, when and how, and it is written before the solution is tested.
2Iterative testing checks each module during development. Final (terminal) testing checks the complete solution once it is finished.
3Every requirement should be linked to at least one test, and a requirement with no linked test is untested.
4Expected results are worked out from the requirements before the tests are carried out.

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
A plan, written before the solution is tested, for showing that it meets its requirements.
The three questions a strategy answers
What will be tested, when it will be tested, and how it will be tested.
'What' in a strategy
The requirements and features of the solution that each need to be checked.
Iterative testing
Testing each part or module of the solution during development.
Final (terminal) testing
Testing the complete solution once it is finished.
'How' in a strategy
What will be entered or done, and what will be observed to decide whether that part works.
Why is each test linked to a requirement?
So every requirement is covered by at least one test and a requirement with no test can be seen to be untested.
Untested requirement
A requirement with no linked test, which shows up as an empty row in the plan.
The columns of a test plan
Test number, description, requirement checked, data or action, expected result.
Expected result
What should happen if the part works, worked out from the requirements before the test is carried out.
Why compare actual outcome with expected result?
Because the expected result was fixed in advance, any difference shows that part of the solution does not meet its requirement.
Why plan testing at the design stage?
Designed alongside the algorithm, testing is planned rather than improvised, and the finished solution can be shown to meet each requirement.

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 posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

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.