Test Levels & Test Types
Assign a given test to the correct test level and test type, and distinguish confirmation testing, regression testing and maintenance testing.
A test level is a group of test activities organized around a stage of development, each with its own objective and test basis:
- Component testing — checks one unit in isolation, against low-level design or code, typically with stubs/mocks.
- Integration testing — checks the interfaces and interactions between integrated components against the architecture; splits into component integration testing (between components, once they pass component testing) and system integration testing (between systems, or between a system and external services).
- System testing — checks the whole integrated system's behavior against the requirements.
- Acceptance testing — checks whether the business, user, or customer is willing to accept the system, against business needs or a contract; includes alpha testing (in-house, by staff other than the dev team) and beta testing (by real users, at their own site).
Cutting across those levels, a test type targets a specific quality objective, independent of when it runs: functional testing (does it do what it should, per functional requirements), non-functional testing (how well — performance, usability, reliability, security), white-box testing (based on internal structure, e.g. code paths), and change-related testing.
Change-related testing splits into two things that get conflated constantly: confirmation testing (re-testing) re-runs a previously failed test after a fix, to confirm that specific defect is gone; regression testing re-runs tests on parts of the system that were not changed, to catch side effects the change may have introduced elsewhere. Maintenance testing is testing performed on an already-deployed system after a modification, migration, or planned retirement — scoped by an impact analysis of what the change could plausibly affect.
Real-world use case
A hotfix for a checkout bug gets confirmation-tested (does the checkout bug still reproduce? no) and regression-tested (did fixing checkout break the unrelated cart-total widget it shares a component with? also no) — two different questions, both necessary, and a team that only does the first ships a fix that quietly breaks something adjacent.
Example code
Exercise
For each scenario, name the test level (component/integration/system/acceptance) and the test type (functional/non-functional/white-box/change-related) it best represents.
Read-only here — open the English track at /learn to write and edit this exercise.
Quiz (3)
1. After fixing a defect where checkout crashed on a $0 coupon, a tester re-runs the exact test case that originally found it and confirms it now passes. What is this called?
2. Real customers try a new feature on their own systems before general release, reporting issues from real-world usage. This is:
3. A payroll system is modified to support a new tax bracket. What is the testing that follows called, and what should scope it?