Test levels and methods
End-to-end test (E2E)
An end-to-end test checks a complete workflow from the user’s point of view, from the first step to the result, across all components involved.
Also known as: E2E test, end-to-end testing
What makes an E2E test
An end-to-end test uses the system the way a real user would: it clicks through the interface, calls the public API or operates the device through its buttons. All the real components run behind it, from the user interface through services and databases down to the hardware.
Examples:
- A customer creates an account, places an order and receives a confirmation
- A device is switched on, configured via an app and reports readings to the cloud
Few, but important
E2E tests give the strongest confidence, but they are slow, expensive and more prone to unstable results. The test pyramid has proven itself: many fast unit tests, a moderate number of integration tests and a few E2E tests for the business-critical workflows.