ISTQB Certified Tester Foundation Level
Test pyramid vs testing quadrants for ISTQB CTFL
The test pyramid shows that tests differ in granularity: many small, fast, isolated tests in the bottom layer and a few slow, end-to-end tests at the top. The testing quadrants sort tests on two viewpoints: business facing or technology facing, and supporting the team or critiquing the product. Both models are described in ISTQB's CTFL v4.0 syllabus.
What does the test pyramid show?
The pyramid helps a team decide what to automate and where to spend test effort. Its point is that the level of automation that suits a test depends on the test's objective. Each layer is a group of tests.
Moving up the layers, tests become less granular, less isolated and slower to run. Bottom-layer tests are small, isolated and fast, and each checks a small piece of functionality, so many are needed for reasonable coverage. Top-layer tests are complex, high-level and end-to-end. They are slower and each checks a large piece of functionality, so a few are usually enough.
The number and names of the layers vary. The original model has three layers: unit, service and UI tests. Another common version names them unit or component tests, integration or component integration tests, and end-to-end tests.
What are the four testing quadrants?
In Agile software development, the quadrants pair test levels with the test types, activities, techniques and work products that fit them. They help test management check that all appropriate test types and levels are included, and they give a way to describe the test types to developers, testers and business representatives.
Q1 is technology facing and supports the team: component and component integration tests. They should be automated and run as part of CI. Q2 is business facing and supports the team: functional tests, user story tests, examples, API testing, simulations and user experience prototypes. They check acceptance criteria, manually or with automation.
Q3 is business facing and critiques the product: exploratory testing, usability testing and user acceptance testing. These are user-oriented and often manual. Q4 is technology facing and critiques the product: smoke tests, and non-functional tests other than usability tests. Automation is common here.
Supporting the team means guiding the development. Critiquing the product means measuring its behaviour against expectations.
Where the exam catches people
- Placing usability testing in Q4 with the other non-functional tests: usability is the exception and belongs in Q3.
- Placing smoke tests in Q1 because they are automated: smoke tests are in Q4.
- Reversing the pyramid's properties: higher layers have lower isolation and longer execution times, not more isolation or faster runs.
- Believing the pyramid always has exactly three layers with fixed names: the number and naming of layers may differ.
- Believing Q2 tests must be automated: they can be manual or automated. Q1 tests are the ones that should be automated and run in CI.