A customer logs in, moves money between accounts and gets a confirmation email. That one action touches a login service, a payments engine, a ledger, a fraud check and a notification system. Each of them can pass its own tests while the transfer as a whole fails. Automated end-to-end testing is how you check the whole path, the way the customer experiences it, on every release.
This page covers what to automate end to end and what to leave to other tests, a worked example, the design patterns that keep E2E suites stable, how to deal with flaky tests, where E2E tests belong in a CI/CD pipeline, which metrics are worth tracking and where AI fits today.
Quick Summary
Automated end-to-end testing runs complete user journeys through the real interface and the systems behind it, without a person clicking through. Keep the suite small and aimed at the journeys that would hurt most if they broke, and push detailed logic checks down to unit, API and contract tests.
Give every test its own data, set up through APIs, wait on application state instead of fixed delays, and check outcomes behind the screen. Treat flaky tests as defects in the suite, with a quarantine rule and a strict retry policy. Run a small subset on every merge and the full suite nightly and before release, and keep the results as evidence for whoever makes the release call.
What is Automated End-to-End Testing?
Automated end-to-end testing uses software to run complete user journeys through an application’s real interface and connected systems, checking the outcome at each important step, so the same journey can be repeated on every build without manual effort.
Three things make a test end to end. It starts where a real user starts, usually the interface. It runs against real or realistic versions of the services and integrations the journey depends on. And it checks the business outcome, such as the balance that changed or the order that was created, not only what the page displays. A test that mocks every dependency, or stops at the first screen, is a UI test, which is useful but proves less.
↗️For why testing complete business processes catches what isolated tests miss, read our guide to business process end-to-end testing.
What to Automate End to End, and What Not To
E2E tests are the slowest and most expensive tests to run and maintain, so the hard part is deciding what deserves one. A good rule is to automate a journey end to end when the risk sits in the handovers between systems or people, and to push everything else down to faster tests.
Belongs in an E2E test | Better proved lower down |
|---|---|
A customer completing checkout, from basket to payment to confirmation | Every discount rule and tax calculation, in unit tests |
A transfer that debits one account and credits another | Every validation message on the transfer form, in component or UI tests |
An order created in the web app reaching the warehouse system | The exact fields and formats in the order message, in API or contract tests |
A manager approving a request that a colleague raised | Every combination of roles and permissions, in API tests against the access rules |
A new customer signing up and receiving a welcome email | Email template wording, in a content review |
To choose the first journeys, ask four questions about each candidate. What would it cost if this broke in production? How often does something in its path change? How many systems or people does it pass through? And how long does it take to test by hand today? Journeys that score high on all four come first. For most products that means somewhere between five and twenty journeys, not hundreds.
↗️See where the line between the two kinds of test falls in end-to-end vs integration testing.
Manual vs Automated End-to-End Testing
You will usually need both. Automation handles the repeatable checks on every build, and people handle the judgement calls automation can’t make.
Aspect | Manual E2E testing | Automated E2E testing |
|---|---|---|
Execution speed | Each run takes as long as a tester needs to click through it | Runs unattended and in parallel, so a full suite finishes far faster than by hand |
Consistency | Steps and checks vary between testers and between runs | The same steps and checks run the same way every time |
Maintenance | Little setup, but every cycle repeats the same manual effort | Tests need updating when the application changes. Label-based steps and reviewed repairs keep that effort down |
Cost | Cheaper to start, more expensive with every release | Higher upfront effort, cheaper once the suite runs on every release |
Feedback | Results arrive when testers finish and write them up | Results arrive shortly after each build, through the CI/CD pipeline |
Browser and environment coverage | Each extra browser or environment adds another manual pass | The same journeys run across browsers and environments in parallel |
Team effort | Ties testers to repetitive regression work | Frees testers for exploratory and usability testing |
Best suited to | Exploratory testing, usability checks, new features that are still changing | Regression, stable business processes, frequent releases and CI/CD pipelines |
A Worked Example: Automating a Bank Transfer
This example is illustrative
It shows one automated E2E journey for a transfer between two accounts in an online banking app, with a check after each step that matters.
Step | What happens | What the test checks |
|---|---|---|
1. Set up | The test creates a customer with two accounts through the API, holding £500 and £0 | Both accounts exist with the right balances |
2. Log in | The customer signs in through the web app | The dashboard shows both accounts |
3. Transfer | The customer moves £120 from the first account to the second | A confirmation appears with a transaction reference |
4. Check the ledger | The test reads both balances and the transaction record through the API | The balances are £380 and £120, and one transaction exists with that reference |
5. Check the notification | The test reads the email sent to the test inbox | One confirmation email arrived, with the right amount and reference |
6. Clean up | The test removes the customer and accounts it created | Nothing is left for the next run |
Step 4 is where the value lies. A confirmation screen can appear even when the ledger is wrong, and only a check behind the interface catches that.
Three Variants That Test the Rules
Variant | What changes | What it proves |
|---|---|---|
Insufficient funds | The customer tries to move £600 | The transfer is refused and neither balance changes |
Above the daily limit | The amount exceeds the customer’s daily transfer limit | The app asks for extra verification before continuing |
Double submit | The customer presses confirm twice | Only one transaction is created |
In a plain-English tool, step 3 might read like this. The syntax is illustrative.
Design Patterns That Keep E2E Suites Stable
Most E2E suites don’t fail because the application is broken. They fail because the tests depend on things they shouldn’t. These patterns remove the usual causes.
Each Test Owns its Data
A test that relies on a record someone created by hand will fail the day that record changes. Have each test create the data it needs, with names or references no other test uses, and remove it afterwards. This also lets tests run in parallel without colliding.
↗️Take a look at test data management for ways to create, mask and refresh test data across environments.
Set Up Through the API, Prove Through the Interface
Clicking through five screens to create a customer before every test is slow and adds five more places to fail. Create preconditions through APIs, then use the interface only for the part of the journey you’re actually testing.
Wait for State, Not for Time
Fixed delays such as “wait five seconds” are the most common cause of flaky tests. They’re too short on a slow day and wasteful on a fast one. Wait for a condition instead, such as a confirmation appearing, a spinner disappearing or an API returning the expected status.
Find Elements the Way Users Do
Locators based on generated IDs or long XPath expressions break whenever developers restructure a page. Visible labels, roles and button names change only when the user-facing design changes, so tests built on them survive far more releases.
Check Outcomes Behind the Screen
The interface can say “success” while the record underneath is wrong. Add API checks after the steps that change important data, as step 4 of the transfer example does.
↗️Explore how API checks fit inside automated journeys with API testing automation.
Keep Journeys Independent
If journey B depends on journey A running first, one failure takes down both and the order of execution starts to matter. Each journey should be able to run alone, in any order, on any day.
Flaky Tests: Diagnose, Quarantine, Fix
A flaky test passes and fails on the same code. A few of them are enough to make people stop trusting red results, and then real defects start getting waved through. Treat flakiness as a defect in the suite and handle it the same way every time.
Start by finding the cause. Timing problems, shared data, environment instability and dependence on run order account for most flaky tests. Rerunning the failed test alone, at a different time or in a different order usually points to which one it is.
Then agree a quarantine rule. A test that fails intermittently moves to a quarantine set that still runs but doesn’t block the pipeline, it gets an owner and a deadline, and it returns to the main suite once it passes reliably. Quarantine must never become a place where tests go to be forgotten.
Finally, keep retries on a short lead. One automatic retry can absorb a genuine network blip, but report every retry, and never retry a failed assertion about a business outcome. If a balance is wrong on the first run, a pass on the second run doesn’t make it right.
Where E2E Tests Belong in CI/CD
Running every E2E test on every commit slows the pipeline until people work around it. Running them only before release finds problems when they’re most expensive to fix. A staged approach works better.
On every merge to the main branch, run a short smoke set of the most important journeys on one browser.
When a deployment reaches a test environment, run the journeys affected by what changed.
Every night, run the full suite across the browsers and environments you support.
Before a release, run the full suite again and keep the results with the release record.
Straight after deployment to production, run a read-only smoke set to confirm the release is healthy.
↗️Read how AI-assisted testing fits each stage of the pipeline in AI testing in CI/CD.
Metrics Worth Tracking
A handful of well-defined metrics will tell you more than a dashboard full of percentages. Set your own baseline before setting targets.
Metric | How to calculate it | A warning sign |
|---|---|---|
Journey coverage | Automated priority journeys divided by all priority journeys | Coverage grows while defects in priority journeys still reach production |
Flaky rate | Tests that both passed and failed on the same build, divided by all tests run | It rises after each release, or people start ignoring red runs |
Time to verdict | Minutes from a build finishing to a clear pass or fail result | It grows until developers stop waiting for it |
Escaped defects | Production defects in automated journeys, per release | Defects escape in journeys the suite says are covered |
Maintenance effort | Hours spent fixing tests, per release | Fixing tests takes longer than writing new ones |
Failure accuracy | Failures traced to real defects, divided by all failures | Most failures turn out to be test problems |
↗️Head to our breakdown of test automation KPIs for how to report these to stakeholders.
Where AI and Agents Fit Today
AI is already useful across most of the E2E workflow, as long as people stay in charge of what changes. During authoring, AI can suggest the next step or draft journeys from requirements documents. During maintenance, it can propose a repair when a page changes. After a run, it can classify failures and explain the likely cause from screenshots, page snapshots and network logs.
Two principles keep this safe. First, AI should propose and people should approve, especially for anything that changes what a test checks. A repair that silently turns a failure into a pass can hide a real defect. Second, the run itself should be deterministic, so the same build and the same test always give the same result. Keep AI reasoning in authoring and analysis, and keep execution repeatable.
↗️Find out when an agent should decide steps during a run, and when a repeatable engine should, in AI test execution agents.
Approaches to Automated E2E Testing
Approach | Examples | Suits | Weigh up |
|---|---|---|---|
Code frameworks | Playwright, Selenium, Cypress | Engineering teams who want full control and tests in their own codebase | Who writes and fixes tests, and how much locator maintenance each release brings |
Recorder and low-code tools | Katalon, Ranorex | Teams that want faster authoring with some scripting available | How recorded tests hold up as the interface changes |
Synthetic monitoring | Datadog Synthetic Monitoring | Checking that important journeys keep working in production | Depth of pre-release testing, data setup and test management |
AI-native platforms with governed agents | Virtuoso QA | Teams that want plain-English journeys, AI-assisted authoring and repair, and evidence for release decisions | How AI-proposed changes are reviewed, and what record each run leaves |
Running the Transfer Journey in Virtuoso QA
Take the bank transfer from earlier. In Virtuoso QA, its six steps read almost exactly as they do in the table, the ledger check sits in the same journey as the clicks, and the three variants run from one data table. The aim is a suite that stays green for the right reasons, so that a red result is worth stopping for.
The Table Becomes the Test
Each step is a plain-English instruction aimed at what is on screen, such as the "Confirm transfer" button, so the product owner who wrote the rule can read the journey and spot a gap. StepIQ offers the next instruction as you type, and Touchstone can turn a requirements document into a first draft of the journey for someone to review.
Interface and Ledger in One Run
API steps read the balances and the transaction record between interface steps, with no second tool or hand-off. When the journey leaves the banking app for another system, Business Process Orchestration links the two into a single run.
Red Means Something
When a step fails, AI Root Cause Analysis keeps the page exactly as it looked at that moment and sets out the most likely reason, which shortens the debate over defect versus test problem. If a relabelled button breaks a step, a candidate fix goes to a person to accept or reject. Without a confident candidate, the step fails in the open.
Every Browser You Support
The same journey runs on Chrome, Edge, Safari and Firefox, across roughly 2,000 browser, operating system and device combinations, from your pipeline or on a schedule.
Every nightly run is filed under the requirement it tests, along with whoever signed off its latest changes, so the results double as the record a release manager signs off.
💡 Pick the journey you still click through before every release, and watch Virtuoso QA prove it from first screen to final record with AI end-to-end testing.
Frequently Asked Questions About Automated End-to-End Testing
Why should we automate E2E testing instead of testing manually?
When should we start automating E2E tests?
What tools are best for automated E2E testing?
How long does it take to set up automated E2E testing?
What percentage of E2E tests should be automated?
How does AI improve automated E2E testing?
Written by

Adwitiya Pandey
Senior Test Evangelist
Adwitiya works directly with QA teams adopting the platform and turns what he sees into practical guides on test design, regression strategy and keeping coverage honest.

















