Situations favoring E2E testing
Complex interactions
In situations where the application’s components engage in intricate interactions, possibly spanning different technologies and platforms, unit tests might fall short. E2E testing is indispensable for ensuring that the collective behavior of these components aligns with the expected outcomes, especially in:
The architecture outlined in the diagram represents a typical web application with several interconnected services, each serving a distinct role in the system.
Figure 12.1 – E2E testing
At the frontend, there’s a user UI, which is the graphical interface where users interact with the application. It’s designed to send and receive data to and from the backend services through an API gateway. The API gateway acts as an intermediary that routes requests from the user UI to the appropriate backend services and aggregates responses to send back to the UI.
Several backend...