Optimized automations don’t happen, well, automatically. If not set up correctly, your automations definitely won’t be firing on all cylinders—fact. Have you been following our Salesforce Flow Test content? Here’s a quick recap of our series:
- An Intro to Flows Tests: What, Why and Some Considerations
- Salesforce Flows Tests: Creation and Configurations
- Salesforce Flow Tests: 5 Scenarios Where Apex Unit Tests Are the Better Choice
- Salesforce Flow Tests: Deploying with Confidence
Now, let’s talk about the limitations. When it comes to Salesforce automation, to ensure functionality, conducting Flow tests is important. But let’s be real: we wouldn’t be trusted Salesforce experts if we didn’t point out that, like most tech, Flow tests have their limitations—and if misunderstood, implementing them can lead to extra work. By recognizing these boundaries, you can actually strengthen your testing strategy. Here’s a breakdown of the key limitations to help you maximize the effectiveness of your Flow Tests while avoiding common pitfalls.
Key Limitations of Salesforce Flow Tests
Here’s a breakdown of the limitations you should keep in mind to maximize the effectiveness of your Salesforce Flow Tests while avoiding common pitfalls:
- Flow tests are available only for record-triggered and data cloud-triggered flows.
- Flow tests do not support scenarios where a flow is triggered by the deletion of a record.
- If your test scenario requires a record to have a date set to today, you must manually adjust the date to today before running the test. Failure to do so will result in the test failing, as it will use the date that was set when the test was initially created.
- Each Flow can have up to a maximum of 200 tests.
- Flow tests do not support testing of flow paths that execute asynchronously.
- Tests can only be created for the current object associated with the flow; you cannot create tests that involve child or parent objects of that flow.
- The creation of Flow tests does not support the use of formulas, variables, or resources.
Need more testing tips? Dive in and discover more expert resources!
- Kicking Off A New QA Series: Getting Started with Testing!
- QA Series: Understanding Testing Types for Functionality and Performance
- QA Series: Retesting and Regression Testing…What’s the Difference?
Mastering Salesforce Flow Tests means knowing their strengths and understanding their limitations—because optimized automations require both. Have more questions about how to strengthen your Flows or get the most out of your testing practices? Let’s chat.