An integration test checks that parts of a system work together: your app and a payment provider, an email service, a stock system or another team's API. This page shows an integration test template with five worked examples for an example online shop, and gives it to you as an Excel workbook, a CSV file or Markdown.
How to use it#
- Read the examples above. Each row names the systems it crosses, such as Shop to Payments, and the test data it needs.
- Select Download .xlsx for a workbook with a How to use tab, the examples and 20 blank rows, or Download .csv to import the rows into another tool.
- List every place your app hands work to another system, and write at least one row for the normal path and one for a refusal.
- Set up the test data first, in test mode where the other system has one, then run the rows and set Status.
What integration tests catch#
Each part can pass its own tests and still fail when they meet. A payment can succeed at the provider while the shop records nothing, an email can be sent twice, or stock can stay the same after an order. The examples check both sides of each hand-off: the payment appears in the provider's dashboard with the same amount, the confirmation email arrives once with the order number, and the stock count goes down. They also check a refusal, a declined card, because how an app handles another system saying no matters as much as the normal path.
Test data#
The Test data column keeps the cards, inboxes and accounts a row needs in one place, so the next person can run it without asking. Use the test mode and test cards your providers publish, never real payment details. Note which environment each row runs against, because many integrations behave differently in test and live mode.
Questions#
How is integration testing different from functional testing?#
Functional tests check that one feature does what its requirement says. Integration tests check the hand-offs between systems, where the problem is often in neither side alone.
Can I run these against live services?#
Use each service's test mode wherever it has one. Running against live payment or email services can charge real money or reach real people.
Is the template free?#
Yes. Download it without an account and use it in your own plans and tools.