GCSE · Computer Science · OCR · Spec J277

Final/terminal testing

Every section of your program has passed its own tests. Job done? Not quite. One more round of testing checks the finished thing as a whole.

Walk every route

One program, how many tests?

Someone enters a mark, and this finished program gives a result. Walk each route to its end and see which test input would reach it. How many inputs would final testing need, at the very least, to try every route?

Is it a real mark? → 50 or more? → 80 or more?

  • Every route starts here. Which way the program goes next depends entirely on the mark that was typed in.

4 routes through the program.

On Start: the user enters a mark. 2 branches to choose from.

An example program, made up for this lesson. It's considered finished and its sections have already been tested on their own. Marks are whole numbers. The rule it follows: a mark below 0 or above 100 is rejected; otherwise below 50 is a Fail, 50 to 79 is a Pass, and 80 or more is a Distinction.

Watch out: A test that gives the right output proves the route it took. It tells you nothing about the routes it never reached.

When, and what?

Is this final testing yet?

For each moment, decide: is a section being tested while the program is still being built, or is this final testing of the finished system? Look at WHEN it happens and WHAT is being tested.

Still to sort

Testing a section while it's being built (0)

One section or module, tested on its own before the program is finished.

Where the line is: Being the last section written doesn't make it final testing. It's still one section, tested on its own.

Final testing of the finished system (0)

The whole system, tested last, once the program is considered completely finished.

Where the line is: It only starts once the program is considered completely finished and its sections have already been tested.

5 of 5 still to sort.

Five moments from building a ticket-booking app. Sort each one, then read why.

Why bother testing?

?

Reason it through

Why is a program tested before people start using it?

Link 1 of 3

First link · your turn

A program has an error in it that nobody has spotted. If it isn't tested, who finds it?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

Your turn

Write it, then mark it

Describe final testing. [4 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.

Every section has passed its own tests. Now comes the last check of all: the whole finished system, down every route it can take.

What you need to know

  • Final testing, also called terminal testing, happens once the program or system is considered completely finished.
  • It's the last phase of testing. No testing phase comes after it.
  • By then, the individual sections or modules have already been tested.
  • Have a goYour classmate beams: “Every section of my game passed its tests, so I've done final testing!” Have they?

    No. Testing the sections comes before final testing.

    It feels like the job's done, but section tests are the step before; final testing is the separate last phase, on the finished system.

  • Final testing checks the system works as a whole and meets the requirements of the project.
  • Sections passing their own tests isn't the same thing. Only testing the whole system checks the whole system.
  • Each pathway, or route, through the program gets tested.
  • Have a goA finished program has 3 routes. A tester runs it with 10 different inputs, but every one of them goes down the same route. Has each pathway been tested?

    No. Only one of the three routes has been tested.

    Ten tests sounds thorough, but what counts is how many different routes the inputs reach, not how many inputs there are.

  • A full range of input data is used, to check the system works correctly in all scenarios.
  • One test input follows just one route, so four routes need at least four well-chosen inputs.
  • Why test at all? Errors get found and fixed before users experience problems, and different inputs are checked to work as expected.
  • Have a goAn app's bug is only discovered after thousands of people have downloaded it and it crashes on them. Which job of testing didn't get done?

    Finding and fixing the error before users experienced problems.

    The bug wasn't new; it was there all along. Testing exists to catch it before users meet it, not after.

  • That improves reliability and user experience. Testing happens throughout development, with the approach planned around the system's requirements.

The big picture

Final testing, also called terminal testing, is carried out once the program or system is considered completely finished: it is the last phase of testing. It comes after the individual sections or modules have been tested, and checks that the system works as a whole and meets the requirements of the project. Each pathway through the program is tested, with a full range of input data, so the system works correctly in all scenarios. Testing in general finds and fixes errors before users experience problems, checks different inputs work as expected, and improves reliability and user experience. It happens throughout development, with a planned approach that suits the system's requirements.

Key points

1Final (terminal) testing is the last phase of testing, carried out once the program is considered completely finished.
2It comes after the individual sections or modules have been tested, and checks the system works as a whole and meets the project's requirements.
3Each pathway through the program is tested with a full range of input data, so the system works correctly in all scenarios.
4Testing finds and fixes errors before users experience problems, checks different inputs work as expected, and improves reliability and user experience; it happens throughout development, with a planned approach.

Worked example

Problem

Here's an invented smart-thermostat program, now considered finished, with its sections already tested. It reads the room temperature in °C. Below 18 it outputs “Heating on”; above 24 it outputs “Cooling on”; anything else gives “Idle”. A tester runs two tests, 15 and 21, gets the right output both times, and says final testing is complete. Is it?

⚠ Watch out

Thinking that if every section passed its own tests, the finished program must work. Section tests come first and each checks one part on its own; final testing checks the whole system works as a whole and meets the project's requirements, down every route.

🧠

Memory hook

Last, whole, every route: final testing is the last test, of the whole finished system, down every route it can take.

✓

Check yourself

Cover the page. Say when final testing happens, what has already been tested before it, what it checks about the system, and why one test input can never be enough.

Flashcards

(9)
What is final testing?
Testing carried out once the program or system is considered completely finished. It's the last phase of testing.
What's another name for final testing?
Terminal testing.
What must already have been tested before final testing?
The individual sections or modules of the program.
What does final testing check about the system?
That it works as a whole and meets the requirements of the project.
In final testing, which routes through the program are tested?
Each pathway or route, so the system works correctly in all scenarios.
What input data is used in final testing?
A full range of input data.
Why can't one test input check a program that forks?
Each input follows only one route through the program, so the other routes go untested.
What does testing do for a program and its users?
Finds and fixes errors before users experience problems, checks it works as expected with different inputs, and improves reliability and user experience.
When is testing carried out, and how is the approach decided?
Throughout development, in specific stages and with specific methods. The overall approach is agreed and planned depending on the system's requirements.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 3 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.