GCSE · Computer Science · Eduqas · Spec C500QS

Presenting test outcomes with commentary

Hand your test results to someone who wasn't in the room. Could they tell what was tested, what should happen, what did happen, and what you did about it?

Computer Science · Testing

Pass or fail? Compare, don't guess

A tester has run five tests, and the program finished every one without an error message. For each row, compare the actual result with the expected result, then choose Pass or Fail before you read the reason.

Still to sort

Pass (0)

Actual result matches expected result.

Where the line is: Pass means the two results match. It does not mean the program ran.

Fail (0)

Actual result differs from expected result.

Where the line is: Fail means the two results differ, even when the program ran smoothly.

5 of 5 still to sort.

A youth-club sign-up program should welcome ages 11 to 16 (including 11 and 16) and turn everyone else away with a message.

Computer Science · Testing

Who does what in a test record?

Tick every property that is true of each part of a test record, then check. Think about the job each part does.

Results-table row
Screenshot labelled “Test 3”
Screenshot with no label
Written commentary

Computer Science · Testing

One line of this record is quietly wrong

Test 2 (age 16) first gave the actual result “Sorry, members must be 11 to 16” and failed. The tester changed the upper limit in the code so that 16 is accepted, then re-ran it and got “Welcome to the club”. This is the finished record. Which line goes wrong?

A tester's finished record — which line goes wrong?

Computer Science · Testing

What do you think commentary is for?

A tester has finished the results table for the sign-up program. Test 1 passed, Test 2 failed and was fixed, and Test 3 passed. Now the commentary needs writing.

Which idea is closest to what you think right now?
How sure are you?

Computer Science · Testing

Now you write the commentary

Test 3 (age 25): expected “Sorry, members must be 11 to 16”; actual “Sorry, members must be 11 to 16”; Pass; Screenshot 3. Test 4 (age 10): expected “Sorry, members must be 11 to 16”; actual “Welcome to the club”; Fail; Screenshot 4a. The tester changed the lower limit in the age check so that 10 is rejected, then re-ran the test. Test 4 re-run (age 10): expected “Sorry, members must be 11 to 16”; actual “Sorry, members must be 11 to 16”; Pass; Screenshot 4b.

Write the commentary for these results. Cover every test, and for the failed test say what was done about it. [6 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Write the record so a stranger can check every test: expected, actual, evidence and a reasoned comment.

What you need to know

  • A test outcome is a verdict: put the actual result next to the expected result for that test.
  • Write the record for someone who wasn't there. They should see what was tested, what was expected and what happened.
  • Results usually go in a table, one row per test: number, what is tested, test data or action, expected, actual.
  • Label each row pass or fail by comparing the results side by side: a match is a pass, a difference a fail.
  • Have a goMaya says: “Test 9 passed, the program printed a total and didn't crash.” Expected total: £6. The program printed £5. Is Maya right?

    No. £5 does not match the expected £6, so Test 9 is a Fail.

    Maya judged by whether the program ran. The outcome comes from comparing the actual result with the expected result.

  • Back the row up with evidence, such as a screenshot of the output or a copy of the input and output.
  • Label each piece of evidence with its test number, so it can be matched to the result it proves.
  • Have a goA tester saves a screenshot of Test 5's output as “IMG_2231”, with nothing else on it. What should be added so it proves the right row?

    Label it with its test number, “Test 5”.

    Without a test number, nobody can match the screenshot to the result it is meant to prove.

  • Commentary says, for each result, what it shows about whether that part of the solution meets its requirement.
  • If a test fails, the commentary records the change made to the code and the result of re-running the test.
  • A re-run is its own entry with its own actual result and evidence, so the failure and the later outcome both show.
  • Have a goTest 8 failed, the code was fixed and Test 8 was re-run. Where should the new actual result go in the table?

    In its own new entry, not over the original Test 8 row.

    A separate entry with its own actual result and evidence shows both the original failure and the later outcome.

  • A thorough commentary covers every test, passes included, with reasons that refer to the specific results and evidence.

The big picture

A test outcome is a verdict: put the actual result next to the expected result and the row shows pass or fail. A good record backs every row with evidence labelled by test number, shows a fixed failure and its re-run as separate entries, and comments on every test using the specific results.

Key points

1Pass or fail comes from comparing actual with expected, row by row.
2Evidence carries its test number and is referenced from the matching row.
3A fixed failure and its re-run are two entries, never one overwritten row.
4Commentary covers every test and cites specific results, not “it works”.

Worked example

Problem

Test 6 of the sign-up program: the tester types 14, and the program should welcome them. It prints “Welcome to the club” and the tester saves a screenshot. Write the row, decide the outcome and write the commentary.

⚠ Watch out

Calling a test a pass because the program ran without crashing, then writing comments only for the failures. Pass or fail is decided by whether the actual result matches the expected result, and every test gets a comment.

🧠

Memory hook

Row, proof, reason: the row gives the verdict, the evidence proves it, and the commentary says what it means. Do it for every test.

✓

Check yourself

Test 7 (age 30) expected “Sorry, members must be 11 to 16” and got exactly that. Outcome, and what must the commentary refer to? Answer: Pass; the matching results and Test 7's evidence.

Flashcards

(12)
How is a test's pass or fail outcome decided?
By comparing the actual result with the expected result for that test: they match for a pass, they differ for a fail.
A program ran with no error message. Does that make the test a pass?
No. The outcome depends on whether the actual result matches the expected result, not on whether the program ran.
What does a results-table row usually give?
The test number, what is being tested, the test data or action used, the expected result and the actual result.
Why put the actual result beside the expected result?
So the reader sees at once whether the test passed or failed.
A test expects a rejection message and the program gives it. Pass or fail?
Pass. The expected result was a rejection, and the actual result matches it.
Give two kinds of evidence for a test outcome.
A screenshot of the program's output, or a copy of the input and output, referenced from the matching row.
Why is evidence labelled with its test number?
So each piece of evidence can be matched to the result it proves.
What does the written commentary say for each result?
What the result shows about whether that part of the solution meets its requirement.
What does the commentary record when a test fails?
The change made to the code and the result of re-running the test after the change.
How should a re-run of a failed test be presented?
As its own entry, with its own actual result and evidence, so both the failure and the later outcome show.
Which tests does a thorough commentary cover?
Every test, passed ones included, not only the failures.
What makes a commentary well reasoned?
Its reasons refer to the specific expected and actual results and the evidence, rather than general statements such as “it works”.

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.