---
schema_version: "1"
id: 578a026184d50d0ba58196b5ad04e422dd05cb8d6b0fc783ed9ceda4cb8c536b
title: Test Flows in a Dedicated Test Mode (Beta)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/264-0-0/rn_automate_flow_test_mode.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_test_mode.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 65cd15a3570aa397bedd0a70fd4c2a1ed6e7ac734df27e43d9852eb5dac1bf9c
description: Switch between building your flow and testing it in one place, and reuse saved test scenarios so you don't reenter inputs every time. Use Test Mode in Flow Builder to debug and save test scenarios in autolaunched and record-triggered flows.
products:
  - Cross Cloud
release: "264"
---
# Test Flows in a Dedicated Test Mode (Beta)

Switch between building your flow and testing it in one place, and reuse saved test scenarios so you don't reenter inputs every time. Use Test Mode in Flow Builder to debug and save test scenarios in autolaunched and record-triggered flows.

**Where:** This change applies to Lightning Experience in Professional, Enterprise, Performance, Unlimited, and Developer editions.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/images/icon_note.png)

Note Test Mode is a pilot or beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this pilot or beta service is at the Customer's sole discretion.

**Why:** Previously, debugging and flow testing lived in separate parts of Flow Builder. Now, you can do both in Test Mode. Run a one-off test scenario to track down an issue, then save that setup so you can run it again anytime. Or add assertions (conditions that evaluate expected results) so a reusable test scenario reports pass or fail when you run it. That's scenario testing automation. You can confirm that the flow works now and still works after you make changes.

**How:** From Setup, in Quick Find, enter Process, and then select **Process Automation Settings**. Then, select **Flow Test Mode (Beta)**.

In Flow Builder, click **Test** to open Test Mode and set up a test scenario. The flow canvas switches to a test view so you can focus on test scenario setup and expected results. Limited editing of the flow is available in Test Mode.

![Test Mode in Flow Builder](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/salesforce_release_notes/images/automate/262_rn_automate_flow_test_mode_general.png)

If you have no saved test scenarios, the test setup panel opens. Enter your inputs, such as which record triggers the flow or values for variables, then click **Run Scenario** to run the test scenario.

After a run, save the current setup as a new test scenario by clicking **Save Scenario**.

When you have saved test scenarios, open a scenario to see or edit its setup, run it, or run multiple scenarios.

![List of test scenarios in Test Mode](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/salesforce_release_notes/images/automate/262_rn_automate_flow_test_mode_list.png)

To run automated tests, select **Scenario Testing Automation**. Then add assertions to the test. Assertions are conditions to evaluate during the test run.

You can view the coverage of your saved test scenarios that have assertions. Coverage shows that all elements and paths ran successfully. Failed tests don't count toward test coverage.

![Coverage of a test scenario that shows in Test Mode](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/salesforce_release_notes/images/automate/262_rn_automate_flow_test_mode_coverage.png)

To switch back to build mode, click **Build**. If you switch tests or modes without saving, you lose any unsaved changes to a test scenario.

#### See Also

- [_Salesforce Help_: Testing Your Flow in Test Mode (Beta)](https://help.salesforce.com/s/articleView?id=platform.automate_flow_test_mode.htm&type=5&language=en_US)