Loading
Connect in real time with the Trailblazer Community in Slack Open BetaRead More
Automate Your Business Processes with Salesforce Flow
Interpret Test Scenario Results in Test Mode

Interpret Test Scenario Results in Test Mode

In Test Mode, review the Details and Expected Results tabs after you run a test scenario, and troubleshoot failed assertions.

Required Editions

View supported editions.
User Permissions Needed
To open, edit, create, activate, or deactivate a flow using all flow types, elements, and features available in Flow Builder, including AI: Manage Flow

After a test scenario runs, review its results to confirm that the flow behaved as expected, or to find the cause of a failure. To set up and run a scenario first, see Set Up and Run a Test Scenario.

  1. Review the Details tab.
    The Details tab shows the run's execution path and any errors, similar to the Flow Builder debugger. For a manually evaluated scenario, this is the only results tab.
    Details panel in Test Mode
  2. For an automatically evaluated scenario, click the Expected Results tab.
    The Expected Results tab lists every assertion that you defined for the scenario.
    Expected results tab
  3. Expand an assertion to review its status, condition, and actual value.
    The condition is the expression that you configured. The actual value is what the assertion evaluated to when the scenario ran. A scenario passes only when every assertion passes.
  4. When an assertion fails, compare its condition and actual value to find the mismatch.
  5. Fix the responsible element in the flow.
  6. Open the test scenario, and click Run Scenario again to confirm the fix.

For the concepts behind assertions and expected results, see Automated Flow Testing. To interpret results for a Data Cloud-triggered flow test instead, see Interpret Data Cloud-Triggered Flow Test Results.

 
Loading
Salesforce Help | Article