Platform

Solutions

Resources

Platform

Solutions

Resources

Platform

Solutions

Resources

Blog

Salesforce End-to-End Testing: Journeys Across Systems

Rishabh Kumar

Published on

Salesforce End-to-End Testing

Table of contents

A sales rep can create an opportunity in Salesforce. That doesn’t mean the quote was priced correctly, the contract went to the right approver, the order reached the ERP or the invoice was sent. Each step can work on its own while the process as a whole fails. End-to-end testing is how you find out whether the whole process works, for the people who actually use it.


This guide explains how to plan and run end-to-end testing for Salesforce. It covers which journeys to test, how to design them across personas and connected systems, which sandbox to use, how to handle data and how often to run them. There is a worked lead-to-cash example and a checklist at the end.



Quick Summary

Salesforce end-to-end testing follows a complete business process, such as lead to cash, through the interface, the automation and every connected system, as the real users who perform each step. Start with the two or three journeys that carry the most revenue or customer impact. Run each one as every persona involved, with its own data, in a sandbox with sensitive data masked. Check the outcome behind the screen at each step, in Salesforce and downstream. Run the full set nightly and again in every Salesforce release preview window, and keep a record of what each run proved.



What is Salesforce End-to-End Testing?

Salesforce end-to-end testing checks that a complete business process works from start to finish, as the real users who perform it, across Salesforce and every system the process touches.

It follows a journey such as lead to cash or case to resolution through the user interface, the automation behind it and the integrations it depends on, and it checks the outcome at each step.

Salesforce’s own Trailhead module on testing Lightning web components describes end-to-end tests as tests of an entire application or user journey. They run slower than unit tests because each one covers far more. In return, they give a more realistic check of the application and its integration points.

End-to-end tests sit on top of the other layers. Apex unit tests prove code logic. Jest tests prove individual Lightning web components. Flow tests prove individual flows. Integration tests prove one connection at a time. None of them proves that a sales rep, a manager and a finance user can complete a process together, with the right data arriving in the ERP. That gap is what end-to-end testing covers.

For how end-to-end journeys fit alongside unit, UI and regression testing in a complete strategy, read our guide to Salesforce testing.



Why Salesforce Needs End-to-End Testing

Much of the Logic Lives in Configuration

Validation rules, approval processes, assignment rules and much of a typical org’s automation are built in configuration, not code. Flow Builder does let you write tests for individual flows, but those tests stop at the edge of the flow. Validation rules and approvals have no tests of their own. Only an end-to-end journey proves that these pieces work together when a real user moves a record through a process.

📖 Learn where component-level tests stop with Lightning Web Components (LWC) testing.

Processes Cross Systems

Quotes go to billing, orders go to the ERP and cases come in from portals. A process can look right inside Salesforce and still fail downstream. The record saves, the screen shows a success message and the order never arrives anywhere else.

Users See Different Things

Profiles, permission sets and record types change what each person can see and do. A journey that works for an administrator can fail for the sales rep who actually runs it, so each journey has to be tested as each persona.

The Platform Changes Three Times a Year

Salesforce ships Spring, Summer and Winter releases, and each one can change components and behaviour across a whole process. Sandboxes on preview instances receive each release a few weeks before production, which gives you a window to run your journeys against the new version before your users see it.



The Journeys Most Salesforce Orgs Should Test End to End

Journey

Typical steps

Systems often involved

Lead to cash

Capture a lead, convert it, build an opportunity, quote, approve, close, create an order and invoice

Marketing automation, CPQ, ERP, billing

Quote to cash

Configure products, price, discount, approve, sign the contract and create the order

CPQ, e-signature, ERP

Case to resolution

Receive a case, route it, work it, escalate if needed, resolve and survey

Portal, telephony, knowledge base, survey tool

Customer onboarding

Create the account, run checks, set up products and send a welcome message

Identity checks, core systems, email

Renewal

Flag an upcoming renewal, create the renewal opportunity, reprice, approve and renew

CPQ, billing

Partner deal registration

A partner registers a deal, which is reviewed, approved and converted

Experience Cloud partner portal

Service request through an agent

A customer asks a Salesforce Agentforce agent, which takes an action or hands over to a person

Salesforce Agentforce, messaging channel, connected systems

Start with the two or three journeys that carry the most revenue or customer impact. Most orgs don’t need dozens of end-to-end journeys. They need the right ones, tested thoroughly. A useful test is to ask which process failure would reach the board first. A broken quote approval that lets unapproved discounts through usually ranks higher than a broken survey.

📚See how to rank processes by the damage a failure would cause with risk-based testing.



Anatomy of a Salesforce End-to-End Test

Every good end-to-end journey has six parts. Leave one out and the journey either misses failures or fails for the wrong reasons.

Anatomy of a Salesforce End-to-End Test

Personas

These are the users who perform each step, signed in with their real profiles and permission sets. Problems with access only appear when a test runs as the person who actually does the work, so a journey run as an administrator proves very little about what a sales rep can do.

Data

The journey needs its own records, created fresh for each run. A test that depends on a shared record fails the day someone else edits that record, and the failure tells you nothing about the process.

Steps

These are the actions each persona takes, through the real interface. They prove that people can complete the process, with the screens, buttons and page layouts they actually use.

Checkpoints

Checks sit after each important step. A success message on screen doesn’t prove the record is right, so a good checkpoint also confirms the stored values through the API, such as the discount on the quote line or the stage on the opportunity.

Connected Systems

The journey follows the data into each downstream system and checks that it arrived correctly. Most end-to-end failures happen between systems, so a journey that stops at Salesforce’s edge misses the failures that matter most.

📖Find out more about API testing automation and how API checks confirm what a screen can’t show.

Clean-Up

The journey removes or archives the records it created. This keeps shared sandboxes usable for the next run and stops old test records from confusing later ones.



A Worked Example: Lead to Cash

This example is illustrative

It shows how a team might design one lead-to-cash journey across three personas and two connected systems.

Step

Persona or system

What happens

Checkpoint

1

Marketing system (by API)

A new lead is created with a known source.

The lead exists in Salesforce with the right source and owner.

2

Sales rep

The rep converts the lead and creates an opportunity.

The account, contact and opportunity exist and are linked.

3

Sales rep

The rep builds a quote with a 15% discount.

A message says the discount needs approval, and the quote is locked.

4

Sales manager

The manager approves the discount.

The approval is recorded, and the quote is unlocked.

5

Sales rep

The rep marks the opportunity Closed Won.

The stage changes, and an order is created.

6

ERP (by API)

The order is sent to the ERP.

The ERP holds one order, with the right products and total.

7

Finance user

The finance user views the opportunity.

They can see the invoice fields, but can’t edit the discount.

Seven steps, three personas and two systems. The journey checks the main path, a business rule, an approval, access rules and the downstream result, all in one test.


Notice what each checkpoint would catch. Step 3 catches a discount threshold that was changed in configuration without anyone noticing. Step 6 catches an integration that sends the order twice, which a Salesforce-only test would never see. Step 7 catches a permission set change that gave finance users edit access to discounts. Two cheap variants add a lot of value. Run the same journey with a 5% discount to prove that small discounts skip approval, and run step 4 as a second sales rep to prove that only a manager can approve.



Choosing the Right Sandbox for End-to-End Testing

Sandbox type

Data

Use it for

Developer and Developer Pro

Configuration only, with little or no data

Building and debugging journeys

Partial Copy

A sample of production data, chosen with a sandbox template

Most end-to-end journeys, with test data created by the tests

Full

A full copy of production data

Final end-to-end and integration testing before release, with sensitive data masked

Any type on a preview instance

Whatever that sandbox type holds

Running the full suite against the next Salesforce release before it reaches production

Salesforce’s Trailhead unit on sandboxes walks through using a Full sandbox for end-to-end testing with integrations, with Data Mask turned on to anonymise sensitive data. The add-on is now sold as Data Mask & Seed, which can also seed sandboxes with realistic records that keep object relationships intact. Whatever sandbox you use, never test with real customer data unmasked. It brings UK GDPR and EU GDPR obligations, and it isn’t necessary.

🔗Read how to plan regression testing in Salesforce around each release and its preview window.



Handling Test Data in End-to-End Journeys

Test data causes more false failures in end-to-end testing than anything else. These habits prevent most of them.

  • Create reference data such as accounts, products and price books through the API in a setup step, instead of clicking through the UI before every test.

  • Give each run unique names or reference numbers, so parallel runs don’t collide.

  • Remove or archive what the test created, especially in shared sandboxes.

  • Make sure matching records exist in every system the journey touches, or create them there as part of the test.

  • Use masked or synthetic data, and never rely on real customer records.

🔗Take a look at test data management for ways to create, mask and refresh data across environments.



End-to-End Testing vs Integration Testing vs UAT


End-to-end testing

Integration testing

User acceptance testing

The question it answers

Does the whole business process work for real users?

Do Salesforce and another system exchange the right data?

Does the business agree the change does what it asked for?

Scope

A complete journey, across the UI, automation and connected systems

One connection, such as an API or an event

The change, as the business sees it

Who usually runs it

QA and release owners

Developers and integration teams

Business users

How often

Every release and every important change

Whenever an interface or contract changes

Once per change, before sign-off

Automated?

Usually

Usually

Often manual, but can be automated

🔗Dig deeper into how the first two differ in end-to-end vs integration testing.



When to Run Salesforce End-to-End Tests

Running every journey on every change wastes time, and running them only before go-live finds problems too late. A schedule tied to what changed works better.

  • On every deployment, run the journeys that touch the changed metadata.

  • Every night, run the full set of journeys as every persona.

  • When your sandbox moves to the preview release, run the full set to find what Salesforce changed.

  • When a connected system changes, run the journeys that cross into it.

  • Before a production release, run the full set, then a short smoke set straight after go-live.



Tools for Salesforce End-to-End Testing

No single tool covers every layer, so most teams combine two or three. The right mix depends on who will build the journeys and who will keep them working after each release.

UTAM With a Test Framework

Salesforce’s UI Test Automation Model (UTAM) describes page objects in JSON and compiles them to Java or JavaScript for use with frameworks such as WebdriverIO. Salesforce publishes page objects for its own components and handles shadow DOM, which suits engineering teams. Salesforce has also published guidance on end-to-end testing for Omnistudio interfaces that uses UTAM alongside Playwright and Selenium. The cost is engineering effort, and custom components need page objects you write yourself.

Apex Integration Tests

The Apex Developer Guide covers integration tests that exercise real calls between your org and external services. These are useful for proving server-side processes end to end. They don’t go through the user interface, so they can’t show what each persona sees or can do.

Coded Frameworks

Engineers can write journeys directly in Selenium or Playwright. This gives full control, but maintenance is heavy, because generated IDs, shadow DOM and three releases a year all break locators.

Salesforce-Focused Tools

Some tools are built around Salesforce metadata and components. They tend to handle Salesforce screens well. Check how well they follow a journey once it leaves Salesforce for the ERP or billing system.

AI-Native Platforms With Plain English Journeys

These platforms let people write journeys as steps they would describe to a colleague, with AI helping to build and maintain them. Check how AI-made changes are reviewed and recorded before you trust them on a release.

For Salesforce Agentforce, the agent’s own answers are a separate layer. Salesforce’s Agentforce Testing Center tests agents against large sets of scenarios. An end-to-end journey then checks what happens after the agent acts, such as the case it created or the record it updated.

🔍Compare platforms side by side in our guide to choosing the best Salesforce test automation tools.



Common Salesforce End-to-End Testing Mistakes

  • Testing as an administrator only. Permission problems stay hidden until real users hit them.

  • Stopping at Salesforce’s edge. The journey looks fine in Salesforce while the ERP never receives the order.

  • Checking only the screen. A success message doesn’t prove the record, the amount or the downstream system is right.

  • Relying on shared data. Tests fail because someone else changed the records they depended on.

  • Building too many shallow journeys. A few thorough journeys protect more than dozens of thin ones.

Check out more Salesforce testing best practices that keep a suite trustworthy as the org grows.



A Salesforce End-to-End Testing Checklist

  • The journeys that carry the most revenue or customer impact are identified and prioritised.

  • Each journey runs as every persona that performs a step.

  • Each journey creates its own data and cleans up afterwards.

  • Checkpoints confirm stored values through the API as well as on screen.

  • Journeys continue into every connected system they depend on.

  • A suitable sandbox is used, with sensitive data masked.

  • Journeys run on every deployment, nightly and in every preview window.

  • Results are recorded against the requirement each journey proves.



Salesforce End-to-End Testing With Virtuoso QA

End-to-end journeys are usually the thinnest layer in a Salesforce test strategy, because they have been the hardest to build and the most expensive to keep working. Virtuoso QA is built to make them the layer you can rely on, and to produce release evidence from every run. Each run is tied to the requirement it proves, the result and the person who approved it, which Virtuoso QA calls “the standard of proof for software releases, showing what was tested, why, and who decided.”

Journeys the Process Owners Can Read

Admins, analysts and testers write journeys in plain English, so the people who know the process can build and review them. Reusable sign-in checkpoints let one journey switch between personas, from sales rep to manager to finance user.

One Journey From Salesforce to the ERP

API steps create data, check stored values and continue the journey into connected systems. Business Process Orchestration links journeys across applications, so lead to cash can run from Salesforce into the ERP as one process.

Built for Lightning and Releases

Fields are found by their visible labels, with element selection tuned for Salesforce and support for shadow DOM. When a release changes the interface, repairs are proposed for review, and a step fails when no confident repair exists.

Journeys Proposed From Your Process Documents

Touchstone’s agents can draft requirements and propose journeys from your process documents, each citing its source, and a named person approves them before they run.

💡Prove every persona, every step and every handover before each Salesforce release, with Salesforce test automation from Virtuoso QA.



Related Reads

Salesforce End-to-End Testing FAQs

What is the difference between Salesforce end-to-end testing and UAT?

How many end-to-end journeys does a Salesforce org need?

Which sandbox should I use for end-to-end testing?

Can you test Salesforce Agentforce end to end?

How often should Salesforce end-to-end tests run?

How does Virtuoso QA support Salesforce end-to-end testing?

Written by

Rishabh Kumar

AI Testing & Quality Engineering Contributor

Rishabh leads business development and marketing at Virtuoso QA. He writes about AI-powered test automation, end-to-end testing, self-healing tests, and quality engineering, exploring how these capabilities can improve test coverage, reduce test maintenance, and support reliable software releases.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA