Skip to content

System integration testing: how to test the connections between systems

B2Bnetwork team · · 6 min

Testing and quality

In brief

System integration testing checks that data moves between applications correctly, completely and in the right order, including when one side returns an error or does not respond at all. You start with an interface map: who sends what, over which channel, and what happens on failure. For every connection you test a valid message, boundary values, a bad format, a duplicate, a timeout and a dependent system that is down. Most failures hide in error handling, not in the happy path.

What system integration testing checks

The ISTQB Foundation Level syllabus distinguishes two levels of integration testing: component integration within one application, and system integration, meaning cooperation with other applications and external services. This article covers the second level: an online store sending orders to the ERP, the ERP passing picking orders to the warehouse, a bank returning statements to the accounting system.

An integration test answers questions that a test of a single application never asks:

  • do both sides understand fields and code lists the same way (VAT rate code, unit of measure, currency),
  • does a message arrive once, not zero times or twice,
  • is the order right, for example a credit note does not arrive before its invoice,
  • what happens when the other side is down, slow or rejects the data,
  • is an error visible to someone who can fix it.

The interface map: where to start

Before the first test case is written, the team lists all connections in one table. An example for a trading company:

InterfaceDirectionChannelTriggerOwnerOn failure
Ordersstore → ERPREST APIevery orderstore team3 retries, then an error queue
Stock levelsERP → storeCSV fileevery 15 minutesERP teamthe old file stays, alert after 2 missed runs
Picking ordersERP → WMSmessage queueorder approvalWMS vendorthe message returns to the queue
Labels and statusesWMS and carriercarrier APIparcel packedWMS vendormanual shipment, ticket
Statementsbank → ERPfile from online bankingonce a dayaccountingno automatic reaction

The table alone often exposes design flaws: the last row shows an interface whose failure someone will notice only at month-end close. How to detect that in production is covered in integration monitoring.

Test cases for every connection

Every row of the map gets the same set of categories. That way nothing is skipped, and the team sees coverage in one matrix.

CategoryExample for the orders interfaceExpected result
Valid messagean order with three linesa document in the ERP with the same lines and amount
Boundary values999 lines, a name with diacritics and quotation marksa full record with no truncation or encoding errors
Bad formatmissing currency fieldrejection with a readable error, nothing half-saved
Unknown codea VAT rate code the ERP does not knowthe order goes to a review queue, not saved with a default rate
Duplicatethe same order sent twice after a timeoutone document in the ERP
Ordera cancellation arrives before the orderthe cancellation waits or goes to review
Timeoutthe ERP responds after 60 secondsa retry according to the rules, with no duplicate
System downthe ERP is unavailable for an hourorders wait in the queue and go through when it is back

Duplicates deserve special attention. The HTTP specification (RFC 9110) defines idempotent methods, whose repetition has the same effect, and POST is not one of them. If a client retries a POST after a timeout and the server had already saved the first request, a second document appears. The test has to check this explicitly, and the integration needs a key the receiver can use to recognize a repeat.

The structure of REST messages is best checked automatically against the OpenAPI description, and the expectations of both sides with contract tests, as described in API contract testing. Integration tests on a shared environment can then focus on error behavior and data.

Environments and dependent systems

The most common blocker for integration testing is a missing other side. The partner's system has no test environment, has one with different data, or is available two days a week. There are three ways out:

  1. The partner's test environment (sandbox), when one exists. Carriers, payment providers and public administration often provide one; Poland's Ministry of Finance, for example, runs test environments for KSeF, the national e-invoicing system.
  2. A stub or a virtualized service that responds like the real system, including errors and delays. How to build one is covered in Service virtualization in testing.
  3. A test window with the partner: an agreed date, shared data and people on both sides.

A stub does not replace a test against the real system before go-live, but it lets you check error handling that the partner cannot trigger on demand in its own environment.

Integration order and acceptance

Connecting all systems at once in the last week means every defect looks like everyone's defect. It is better to integrate incrementally: first the pair of systems with the most important flow, then the next ones. Each stage ends with acceptance against the same list:

  • all categories in the matrix executed for the interface,
  • critical defects fixed, the rest described with a workaround,
  • monitoring and alerts work, and someone knows who responds to them,
  • the interface documentation matches what actually works.

After pairwise integration comes end-to-end business process testing, which runs through all systems at once.

At B2Bnetwork we design and test connections between systems for banks, insurers, retail and logistics. Our system integration service covers API contracts, error and retry handling and data flow monitoring, and the tests are built together with the integration, not after it.

Questions and answers

How does integration testing differ from end-to-end testing?

An integration test checks one connection between two systems, with a focus on formats, errors and retries. An end-to-end test runs a whole business process through all systems, for example from an order in the store to the posted payment. Integration tests come earlier and there are more of them; end-to-end tests come later and cover only the most important processes.

Who should test the integration of systems from two different vendors?

The company that owns both systems, or a team acting on its behalf. Each vendor tests its own side, but often nobody owns the connection between them. That is why the interface map, the test case matrix and acceptance are best run on the process owner's side, with vendors contractually required to take part in testing and fix defects.

Can integration testing be automated?

Largely, yes. API tests, contract tests and file processing tests run in CI on every change, with stubs for dependent systems. On the shared environment, the most frequent flows are automated. What usually stays manual are scenarios that need the partner's involvement or failures that are hard to trigger.

What if the partner has no test environment?

Build a stub of its service from the documentation and sample messages, test your side against it including errors, and agree a short test window with the partner before go-live. For the first weeks in production, set a cautious mode: low traffic, message monitoring and a manual check of the results.

What it looks like in a project

Planning testing for your project? Talk to a test manager.

Let's talk

Read more: Testing and quality

All in Testing and quality →