Salesforce and Enterprise Workflows
Protect Salesforce lead, opportunity, CPQ, revenue, and service workflows with reusable sessions, UI/API validation, and evidence.
Documentation owner: Deep Barot · Last updated: October 22, 2026
Quick answer
Protect Salesforce lead, opportunity, CPQ, revenue, and service workflows with reusable sessions, UI/API validation, and evidence. Use this page to connect the business problem to a supported ContextQA workflow, its expected value, and its operating considerations.
Key takeaways
Protect Salesforce lead, opportunity, CPQ, revenue, and service workflows with reusable sessions, UI/API validation, and evidence.
Create a Salesforce session-login test and select it as a prerequisite for dependent cases.
For a stage-change test, assert the new stage, its history entry, relevant calculated fields, and any required downstream action.
What this page covers
Build Salesforce coverage around business lifecycles rather than individual screens. ContextQA can reuse an authenticated Salesforce session, execute natural-language Lightning steps, combine UI and API verification, drive record variations from test data, and retain evidence for each run.

High-value process maps
Lead to opportunity
Lead creation, qualification, conversion, owner assignment, stage and history checks
Lost pipeline, routing errors, inaccurate forecasting
Opportunity to quote
Products, price books, discounts, approvals, quote generation, synchronization
Incorrect pricing, margin leakage, approval bypass
Quote to contract or order
Acceptance, document generation, downstream handoff, status reconciliation
Revenue delay, mismatched commercial records
Service and case management
Case intake, priority, assignment, status, escalation, communication
SLA breach and inconsistent customer service
Account and contact lifecycle
Create, update, duplicate handling, permissions, relationship integrity
Bad customer data and access-control errors
Agent or guided workflow
Prompt/action sequence, tool or API result, audit history, fallback
Incorrect autonomous action or missing human escalation
Reuse the authenticated session
Create a Salesforce session-login test and select it as a prerequisite for dependent cases. Keep credentials and authenticator material in protected parameters. This shortens authoring, centralizes authentication maintenance, and allows the business case to begin from a known logged-in state.
Verify outcomes, not clicks
For a stage-change test, assert the new stage, its history entry, relevant calculated fields, and any required downstream action. Use AI verification for dynamic page content where appropriate, but make the expected business state explicit.
Add API verification when Salesforce UI state alone is insufficient—for example, confirming an OAuth-backed update or downstream CPQ object. Use read-only queries or dedicated test records where possible.
Interactive demo: connect Salesforce API and UI validation
Follow one Salesforce business case across two layers: use an API step to establish or retrieve state, then validate the user-visible outcome in the Salesforce interface.
What to notice
API setup shortens the path to the business state without removing the UI validation that users depend on.
Extracted identifiers and response values can be reused by later Salesforce steps without manual copying.
One result preserves the API request, Salesforce interaction, validations, and evidence as a continuous journey.
Design stable enterprise tests
Reference fields by labels, roles, and business context rather than generated DOM identifiers.
Parameterize record types, users, regions, currencies, products, and approval thresholds.
Use unique synthetic names or run identifiers to prevent collisions in parallel execution.
Keep cleanup explicit so repeat runs do not accumulate records or alter shared baselines.
Separate environment configuration for each sandbox.
Review self-healed steps after Salesforce seasonal updates or page-layout changes.
Example: discount approval
Reuse the authenticated sales-user prerequisite.
Create or open an opportunity with parameterized products.
Generate a quote and apply a discount at the approval boundary.
Verify the quote cannot bypass the required approval.
Complete the manager approval with a permitted test identity.
Verify quote status, totals, history, and the associated opportunity.
Confirm any downstream API or generated document reflects the approved amount.
Add cases immediately below and above the threshold, a rejected approval, an unauthorized user, a multi-currency variation, and a dependency failure.
Success measures
Revenue and service lifecycle steps covered across UI and API
Reuse of session and record-setup prerequisites
Sandbox-specific failures and test-data collisions
Salesforce release changes absorbed without unintended test behavior
Time to identify whether a failure belongs to configuration, permissions, data, integration, or product logic
Critical record changes supported by execution evidence and history
Related documentation
Last updated
Was this helpful?
