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.
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.
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.
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?
First link · your turn
A program has an error in it that nobody has spotted. If it isn't tested, who finds it?
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
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?
What's another name for final testing?
What must already have been tested before final testing?
What does final testing check about the system?
In final testing, which routes through the program are tested?
What input data is used in final testing?
Why can't one test input check a program that forks?
What does testing do for a program and its users?
When is testing carried out, and how is the approach decided?
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 OCR GCSE Computer Science topics
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.