Automated flow tests in Flow Builder
Key Takeaway
A test scenario becomes an automated test when you turn on Scenario Testing Automation and add assertions.
Automated flow testing lets you save test scenarios for a flow and state the results you expect as assertions. Flow Builder then checks those results each time a test scenario runs. You can use it to catch errors and verify every path before you activate a flow. You can also re-check earlier work as the flow changes.
The testing tool depends on the flow type
If the flow is an autolaunched or record-triggered flow...
You test it in Flow Builder's Test Mode.
If the flow is any other flow type...
You test it with the Flow Builder debugger, which shows step by step the path the flow takes and how resource values change.
Test Mode is a beta feature, so an admin must turn on the beta setting for the org before anyone can test a flow in Test Mode.
Data Cloud-triggered flows also support automated flow testing, which verifies expected results and finds runtime failures before you activate the flow.