System testing vs integration testing
Integration testing targets the interactions between components or between systems: its test object is an interface, and its typical defect is a mismatch across one. System testing targets the behaviour of the whole assembled system against its requirements, functional and non-functional. Integration testing asks whether the parts fit, and system testing asks whether the finished whole does its job.
The longer version
The ISTQB Foundation Level syllabus, version 4.0.1, describes five test levels, and integration appears among them twice. Component testing comes first. Component integration testing "focuses on testing the interfaces and interactions between components". System testing "focuses on the overall behavior and capabilities of an entire system or product". System integration testing "focuses on testing the interfaces of the system under test and other systems and external services". Acceptance testing closes the list. Integration testing is thus two levels, one on each side of system testing: the first joins components into a system, and the second joins that system to its neighbours. System testing sits between them and is the first level at which the test object is the whole product. In practice the name system integration testing, or SIT, is also used for the whole stage in which real components are joined and exercised together.
The syllabus says test levels are distinguished by attributes that include the test object, the test objectives, the test basis and the defects and failures each level looks for. Run a payroll system through them. In integration testing the object is an interface, for instance the hand-off from the timesheet module to the pay calculation. The basis is the interface specification or the design, and the typical defect is a mismatch: hours sent as minutes, or a field that one side treats as optional. In system testing the object is the assembled payroll system. The basis is the requirements, such as paying a weekly worker correctly across a change of tax year, and the typical defect is a requirement left unmet although every interface behaves as designed. Non-functional testing of quality characteristics is, by the syllabus's account, often part of this level too, and system testing may be performed by an independent test team.
The levels differ, too, in what stands in for the missing parts. Component integration testing follows an integration strategy, and the syllabus names bottom-up, top-down and big-bang. While the system is only partly assembled, stubs and drivers take the place of the components not yet joined. System testing starts once nothing internal is missing, although the syllabus allows simulations of sub-systems, and system integration testing then needs an environment that is, in the syllabus's words, "preferably similar to the operational environment". End-to-end testing is a neighbouring idea and not a sixth level. It names a kind of test, one user journey followed from start to finish, and the syllabus describes system testing as often including functional testing of end-to-end tasks. The comparison of end-to-end testing with integration testing has its own entry, which looks at what each test covers and what it costs to run. The present entry is about where each level sits and what it is judged against.
Side by side, the two levels differ on six attributes. Test object: an interface for integration testing, the whole system for system testing. Test basis: interface specifications and the design, against the requirements and use cases. Typical defects: wrong data formats, wrong calls and missing error handling across a seam, against unmet requirements, wrong business outcomes and non-functional shortfalls. Environment: a partly assembled system with stubs and drivers, against a complete one in an environment close to production. Performed by: the developers or integrators who know the interfaces, against, often, an independent test team. Order: component integration before system testing, and system integration after it. When to use which: integration testing belongs to the period in which parts are being joined, and it is repeated whenever an interface changes. System testing belongs to the point at which the product is complete enough to be judged against its requirements, typically each release candidate, and it is where non-functional checks such as performance and usability usually run.
Common questions
What is the difference between system testing and integration testing?
Integration testing checks the interactions between components or between systems, so its subject is an interface and its findings are mismatches across one. System testing checks the behaviour of the whole assembled system against its requirements. The ISTQB glossary defines integration testing as a test level that focuses on interactions between components or systems, and system testing as a test level that focuses on verifying that a system as a whole meets specified requirements.
Which comes first, integration testing or system testing?
Component integration testing comes before system testing, since the components have to work together before the whole can be judged. System integration testing, which connects the finished system to other systems and external services, is listed after system testing in the ISTQB Foundation Level syllabus. The sequence is therefore integration of the components, then the system as a whole, then integration with the outside.
Is system integration testing the same as system testing?
System testing and system integration testing are separate levels in the ISTQB Foundation Level syllabus. System testing looks at the overall behaviour and capabilities of one entire system or product. System integration testing looks at the interfaces between that system and other systems and external services, such as a payment provider or a partner's API, and needs an environment in which those can be reached.
Who performs integration testing and who performs system testing?
The ISTQB Foundation Level syllabus says system testing may be performed by an independent test team, working from the specifications for the system. It names no owner for integration testing. Joining components calls for knowledge of their interfaces and of the order in which they are assembled, which the developers who built them hold, so the work is theirs to do or to guide.
What defects does system testing find that integration testing misses?
System testing finds failures that belong to the whole: a business rule that no single interface carries, a journey whose steps each work and whose result is wrong, and non-functional shortfalls such as a slow report or an unusable screen. Integration tests check each connection against its design. A design that is faithfully implemented and still misses the requirement shows only when the assembled system is measured against that requirement.
What is the difference between an integration test and an acceptance test?
An integration test checks that components or systems interact correctly at their interfaces, and its verdict is technical. An acceptance test checks whether the product meets the needs of its users or the terms agreed for it, and its verdict is a decision to accept the product or not. In the ISTQB Foundation Level syllabus, acceptance testing is the last of the five test levels, after system and system integration testing.
What is an example of a system integration test case?
A payroll system sends a payment file to a bank. One system integration test case submits a run for a known set of employees, checks that the bank's test service accepts the file, and checks that the confirmation it returns is matched to the run. Other cases cover a rejected file, a timeout and a duplicate submission. Each is about the exchange with the outside system, while system testing asks whether the amounts paid were right.
Bug reports that arrive ready to triage.
Collect replay, console, network and browser context with the Free plan.