QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Types of testing

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.

Figure 1. Two different axes, and mixing them means putting "what" and "where" in one row.

So any type can be performed at any level. A grid shows this conveniently.

Types and levels cross

ComponentIntegrationSystemFunctionalNon-func.fee() = 1%API → DBUI transferfee() timeAPI p95200 rps
Figure 2. A functional check can be done at three levels, and so can a non-functional one: only the object under test changes.

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.

LevelObjectWhat we look for
ComponentThe calculateTotal functionRounding and discount errors
Component integrationThe order service and the stock serviceStock reservation: format and response to failure
SystemThe whole shop on a stand, from the cart to the emailThe full path, speed, access rights
System integrationThe shop and the payment provider, a delivery serviceContracts, 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.

In the interview. Junior: Functional testing checks what the system does by requirements. Integration testing checks the interaction of modules or services. System testing checks the system as a whole in an environment close to production. Middle/Senior: By ISTQB functional is a test type, while integration and system are levels, so the first is performed at any of the others. There are two integration levels: component integration and system integration with external systems. System testing covers functional and non-functional checks on the full system, usually as black box.

More articles in this chapter