ISTQB Certified Tester Foundation Level
ISTQB CTFL test levels vs test types: the five levels
A test level is a group of test activities organized and managed together for software at one stage of development. ISTQB's CTFL v4.0 syllabus describes five: component, component integration, system, system integration and acceptance testing. A test type is a group of test activities aimed at specific quality characteristics, and most can be performed at every level.
What are the five test levels?
Component testing, also called unit testing, tests components in isolation. It often relies on a test harness or a unit test framework, and developers normally do it in their own development environments. Component integration testing, also called unit integration testing, tests the interfaces and interactions between components. It depends heavily on the integration strategy (top-down, bottom-up or big-bang).
System testing looks at the overall behaviour and capabilities of a whole system or product. It often covers end-to-end tasks tested functionally, and quality characteristics tested non-functionally. An independent test team may carry it out, and it is tied to the system's specifications. System integration testing checks the interfaces that connect the system under test to external services and to other systems. It needs test environments that are preferably similar to the operational environment.
Acceptance testing is about validation and about showing the system is ready for deployment, meaning that the system meets the user's business needs. Ideally the intended users perform it. Its main forms: user acceptance testing (UAT), operational, contractual and regulatory acceptance testing, and alpha and beta testing.
Levels are told apart by their test object, test objectives, test basis, typical defects and failures, and approach and responsibilities. In sequential SDLC models, a level's exit criteria often form part of the next level's entry criteria. Test levels may overlap in time.
What are the four test types?
Functional testing evaluates what the test object should do. Its main objective is to check that the functions are complete, correct and appropriate. Non-functional testing looks at how well the system behaves. The syllabus uses the ISO/IEC 25010 list of characteristics: performance efficiency, compatibility, usability (interaction capability), reliability, security, maintainability, portability (flexibility) and safety.
Black-box testing is specification-based. It derives tests from documentation that is not related to the internal structure, and checks behaviour against specifications. White-box testing is structure-based. It derives tests from the implementation or internal structure, for example the code, the architecture, or the flows of work and data, and aims to cover that structure to an acceptable level.
All four test types can be applied at all test levels, with a different focus at each. Non-functional testing can start early, for example in reviews or in component testing. Many non-functional tests reuse functional tests and check that a non-functional constraint holds while the function runs, such as finishing within a set time.
Where the exam catches people
- Mixing up the two integration levels: interfaces between components of one system are component integration testing. Interfaces to other systems or external services are system integration testing.
- Believing white-box testing belongs only to component testing: all four test types can be applied at every test level.
- Believing non-functional testing must wait for system testing: it can start early, as part of reviews or component testing.
- Calling a functional test that is rerun against a response-time limit functional testing: checking the time constraint makes it non-functional testing.
- Believing acceptance testing mainly looks for defects against the specification: it focuses on validation and readiness for deployment, ideally with the intended users.