Functional, integration, system testing
Functional testing is a test type (what the system does), while integration and system testing are levels, so they are not in one row. Integration testing checks how components or systems interact, and system testing checks the whole system against requirements. CTFL 4.0 lists five levels: component, component integration, system, system integration and acceptance, and any type, including functional, can run at any level.
QA Fundamentals · Types of testing
The plan says "functional", "integration", "system". Are those three levels or three kinds?
The test plan has three items: functional, integration and system testing. A colleague suggests doing them in turn, as if they were three stages. But "functional" here stands in one row with levels, although it belongs to a different axis. The lesson separates the two axes into which ISTQB breaks testing: levels (where and when) and types (what we check), and shows why it is more than terminology.
How it works and why. A test level is a group of test activities organised and managed together, with its own test object, environment and performers. CTFL 4.0 lists five: component, component integration, system, system integration, acceptance. A test type is a group of activities aimed at checking a certain characteristic: functional, non-functional, black-box, white-box; confirmation and regression testing are described separately, as testing after changes. A type answers "what are we checking", a level answers "at what moment and on what".
Type or level
Type: "what do we check?"
Functional, non-functional, black-box, white-box.
Not tied to a development moment.
Can be performed at any level.
Level: "where and on what?"
Component, integration, system, acceptance.
Own object, environment and performers.
Goes together with the product build.
So any type can be performed at any level. A grid shows this conveniently.
Types and levels cross
What is looked for at each level. Component testing checks individual modules, usually by developers, and the defects there are in the module's logic. Component integration looks for problems at the joints of components inside the system: data format, contracts, timeouts. System testing checks the system as a whole in an environment close to production, mostly as black box, and covers both functional and non-functional characteristics. System integration checks interaction with external systems. Acceptance answers whether the product can be accepted.
Example: placing an order at each level.
| Level | Object | What we look for |
|---|---|---|
| Component | The calculateTotal function | Rounding and discount errors |
| Component integration | The order service and the stock service | Stock reservation: format and response to failure |
| System | The whole shop on a stand, from the cart to the email | The full path, speed, access rights |
| System integration | The shop and the payment provider, a delivery service | Contracts, notifications, neighbours' failures |
In every row there can be both a functional and a non-functional check. That is how the answer to the interview question "what are functional, integration and system testing" is laid out.
Limits and alternatives. Names in teams do not match the syllabus: API tests with a real database are called "integration", and "functional" often means system tests through the UI. The test pyramid (unit, service, UI) is a division by architecture layers, not the ISTQB levels: they overlap but are not identical. In agile the levels do not go strictly one after another: component and integration tests run in CI on every change, while system and acceptance tests run on a deployed stand more often and in smaller portions. A useful rule: agree in the team on what each word means so you do not argue about labels.
Common mistakes.
- Planning "functional first, then integration": these are different axes, and order matters only between levels.
- Equating functional and black-box: the first is about the goal of a check, the second about the source of tests.
- Treating system testing as only e2e through the UI: it also covers non-functional characteristics and the API.
- Skipping system integration when external systems exist: then the joint with the provider is first checked in production.
- Not saying at which level and on which environment a check was done: "tested" without this means nothing.
Check yourself
An automated test calls POST /orders on a deployed stand and checks that the order is created and the record is in the database. What type and level is it?
Answer
The type is functional. The level depends on the object: if the whole deployed system is tested through its API, it is system testing, and if two services in an isolated setup, it is integration. The label is defined by the coverage, so in a report I write what exactly was included in the test.
Why can "functional, integration and system" not be put in one row as three consecutive stages?
Answer
Functional is a type (what we check), while integration and system are levels (where and on what). A functional check is performed at every level. Sequence makes sense only between levels, and not strictly even then.