Tests for Record-Triggered Flows

Excited to see this new feature on record-triggered flows where we can test all the scenarios by creating test data similar to test classes in Apex and making sure all the aspects are running as expected.

Though it’s still in beta but would like to walk through the steps to set up tests in flow.

Steps:

  1. Go to record triggered flows and click on view tests(beta) and click on create
  2. Provide the name of the test, trigger point, and path for the test(only run immediately is available for now).
  3. The next step would be to create the sample data to test with.
  4. The final step is to set the assertion before you see the magic happen.

Result:

Select the test class to be tested and click on “Run test and view Details”, which then triggers the test run.

Here is the result basis the test cases. It reflects if the assertion has passed/failed.

Leave a Comment

Your email address will not be published.

Subscribe To Our Newsletter
Subscribe to our email newsletter today to receive updates on the latest news, tutorials and special offers!
Thanks for signing up. You must confirm your email address before we can send you. Please check your email and follow the instructions.
We respect your privacy. Your information is safe and will never be shared.
Don't miss out. Subscribe today.
×
×
WordPress Popup Plugin