Skip to content

End-to-end business process testing across multiple systems

B2Bnetwork team · · 7 min

Testing and quality

In brief

An end-to-end business process test takes one customer case through every system it touches and checks the business outcome: the goods shipped, the invoice reached the customer, the money was matched and the report shows the right amount. You choose a few processes with the highest value and risk, break each into steps with a checkpoint in every system, and prepare data that survives the whole run. There are few such tests, but they catch defects that no single system shows on its own.

How a process test differs from an application test

An application test ends at the application's boundary: the store accepted the order, the ERP issued the invoice. An end-to-end process test ends only when the case is closed from the company's point of view. The difference shows up at the seams. The store sent the order correctly and the ERP accepted it, but with a different VAT rate, because the code lists in the two systems drifted apart in the last change. Each system works on its own, and the customer gets a wrong invoice.

Application testIntegration testEnd-to-end process test
Scopeone applicationone connection between two systemsthe whole process across all systems
Questiondoes the feature workdoes data pass correctlydoes the company achieve the business result
Number of testsmanya moderate numbera few to a few dozen
Who judges the resultthe application teamthe owners of both systemsthe process owner

End-to-end tests do not replace lower test levels. If they find most of the defects, it means system integration testing or application testing has gaps.

How to choose the processes to test

End-to-end tests are expensive to prepare and maintain, so only processes that deserve them get them. Selection criteria:

  • value and risk: a process where a defect means lost money, a wrong invoice or a regulatory breach,
  • number of systems: the more seams, the higher the chance of a defect nobody sees as a whole,
  • frequency: a process run hundreds of times a day deserves a test more than one run once a quarter,
  • change: the processes the current project runs through.

In a typical manufacturing or trading company, the list includes order to cash, procure to pay, a complaint with a product return and a credit note, and month-end close. In a bank it would be, for example, issuing and servicing a card, as described in end-to-end testing of card systems, and at a telecom operator, service activation and the first bill, as in end-to-end testing at a telecom operator.

A scenario step by step: order to cash

Each scenario is broken into steps, with a checkpoint in the system where the step ends. An example for a wholesale order:

StepSystemActionCheckpoint
1B2B portalthe customer orders 3 items with a discountorder number, discounted amount
2ERPthe order arrives, stock is reservedERP document, same amount, stock reserved
3WMSpicking and dispatchdispatch document, warehouse stock reduced
4carrier systemlabel and shipmenttracking number visible in the customer portal
5ERP and KSeFsales invoice sent to KSeF, Poland's national e-invoicing systemKSeF number saved with the invoice
6bank and ERPthe payment from the statement is matched to the invoiceinvoice settled, customer balance zero
7data warehousedaily sales reportthe order appears in the report with the right margin

A checkpoint is a specific value, not "check that it works". At each step you record the identifier that lets you find the case in the next system: order number, document number, tracking number. Without that correlation, finding the cause of a defect across seven systems takes a day.

A process also has alternative paths, which often matter more than the main one: out of stock and partial delivery, an invoice correction, a partial payment or a payment of the wrong amount, a product return. Each is a separate scenario.

Data, time and intermediate states

Three things break end-to-end tests most often.

Data that does not survive the run. The test customer must exist in the portal, the ERP and the carrier system with the same identifier, and the product must have stock in the right warehouse. The data set is prepared for the whole process, not one system, and restored before every round.

Time. A 14-day payment term, a nightly job that calculates reservations, a report generated once a day. The test environment needs a way to shift the system date or trigger batch jobs manually. Without it, one scenario takes two weeks.

Intermediate states. A message can get stuck in a queue between steps, and the test only sees that nothing appeared in the ERP. That is why it pays to have a checkpoint in the integration layer too, not only in the systems' screens.

Automate or run manually

Full automation through the user interfaces of seven systems rarely pays off, because a screen change in any of them breaks the test. A mixed approach works better:

  1. Steps that can be performed through an API or a file import are automated that way.
  2. Checkpoints are verified by a script that queries the systems' databases or APIs by the case identifier.
  3. You go through a user interface only where the interface is part of the test, such as the customer portal.
  4. Steps that need a person (an approval, a decision) stay manual, with instructions in the scenario.

This suite runs before every release of any system in the process and after configuration changes such as rates or code lists. An example from multi-country retail, where scenarios form a matrix of country, payment method and delivery, is the test automation of the checkout path and payments.

Reporting and acceptance

The end-to-end test report is read by the process owner, not by the team of one system. It therefore shows the result for every process and alternative path, and assigns defects to a step and a system. A defect at a seam gets an owner right away; otherwise each team passes it to its neighbor. The end-to-end result is one of the test exit criteria before a release or the go-live of a new system.

At B2Bnetwork we run end-to-end testing in projects for banks, telecom operators and trading companies, and move the repeatable parts of processes into test automation with checkpoints verified through APIs. Testing the rollout of a new system in the middle of a process is covered in ERP implementation testing.

Questions and answers

How many end-to-end scenarios do you need?

Usually from a few to a few dozen: one for each important process and its main alternative paths. More rarely helps, because end-to-end tests are expensive to maintain. The details of rules, such as every VAT rate or discount, are better checked by tests of individual systems, leaving end-to-end tests to confirm that the whole thing adds up.

Who owns end-to-end tests?

The business process owner, or a test team acting on their behalf, not the team of one system. System teams provide data, environments and fixes, but someone has to see the whole run and decide whether the process works. Without that person, defects at the seams bounce between teams.

How do you test a step that takes several days in reality?

By controlling time in the test environment: shifting the system date, triggering batch jobs manually, or preparing data that is already in the right state, such as an invoice whose payment term has passed. This must be planned when the environment is built, because not every system lets you change the date without side effects.

Can end-to-end tests run in production?

Some can, in a limited form: a control order on a test account after a deployment, or a permanent monitoring scenario that runs a short path every hour. This requires marking the test data and reversing it, so it does not end up in invoices, reports and stock levels. Full scenarios with payments and tax documents stay in the test environment.

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 →