Testing and debugging the flow before it works with real data lets you identify and fix any errors. You can ensure that your data is transferred across its actions as intended.
To test a flow, you need to follow these steps:
1. Select a test data source
Click the Test & debug icon in the top right corner.
The data you can use to test your flow can be obtained from:
- Sample test data entry in your trigger source
- Recent tests
- Recent executions
Recent tests and Recent executions will only be shown as test data sources if your flow has previous test data or execution data available.
We recommend testing your flows by entering sample data in the trigger app, especially if you've made major changes to the flow. This allows you to simulate an actual event that triggers your flow and ensures that its actions and data mapping are done correctly.
2. Enter sample test data
Your flow fetches data for testing based on the type of trigger:
App trigger: An app trigger can be real-time or polling. If the flow contains a polling trigger, it automatically fetches the last updated data. If the flow contains a real-time trigger, you will be asked to make an update in the trigger app. When you make an update, the flow uses this data to run a test execution.
Schedule trigger: The flow will immediately run a sample execution when you click the Test & debug icon.
Webhook trigger: You will be asked to make a sample update to trigger the flow. When you make an update, the flow uses this data to run a test execution.
URL trigger: The test will be carried out using the URL configured in the URL trigger.
Email trigger: You'll need to send a sample email to the configured template's mailbox address. The contents of the sample email will be used for testing.
RSS/Atom feed trigger: The test will be carried out using the web feed URL configured in the RSS/Atom feed trigger.
Check the input and output of each step to ensure that data is transferred without errors, especially if the flow has mapped data.
You can also add another record in the trigger app and click Restart to run test execution again. Make changes if needed and test your flow again before switching it on.