Testing flows during development
You can test your flows in App Connect Designer with sample data as you develop them. On the VPC hours plan, you can also test your flows with real data before you deploy them.
Before you begin
- The flow must have no validation errors. For more information, see Validating your flow.
- All the application connectors in your flow must be connected to accounts. For more information, see Connecting to accounts.
About this task
- When you use sample data to test the mappings in your flow, the sample data is used to show you what the resulting value looks like for that field. (This type of test doesn't affect the data in the accounts that you're connected to.)
- When you use sample data to test the actions in your flow, the sample data is used to show how the action affects the target application.
- When you use sample data to test an event-driven or API flow, the flow runs once and uses the sample data to update the target applications in your flow.
- When you use real data to test an event-driven flow, the flow is temporarily deployed to the default integration runtime, where it runs until you stop it.
- When you test an API, the API is temporarily deployed to the default integration runtime, where it runs until you stop it.
Testing mappings with sample data
You can use auto-generated or custom sample data to test the mappings and data transformations for the nodes in a flow.
About this task

Procedure
To use sample data to test the mappings and transformations in your input fields, complete the following steps.
Testing actions with sample data
To test the effect of an action on a target application, trigger the action with sample data, then review the test results that the application returns.
About this task
- All actions for applications that you created accounts for on the App Connect Applications and APIs page, such as a Salesforce "Create lead" action
- Any API that you're connected to on the App Connect Applications and APIs page
- The Log node on the Toolbox tab
To test an action in a flow, make sure that the action is connected to an appropriate account, such as your Salesforce developer account. And make sure that your action doesn't have any validation errors.
Procedure
To test the settings for an action, complete the following steps.
Testing a flow with sample data
After you configure all the nodes in a flow, you can test the effect of the flow on its target applications by using sample data and reviewing the test results.
About this task

- You can't test flows that contain Batch process nodes.
- When you test a flow that contains a For each node, the node processes only the first three items that it receives.
Procedure
To test all the actions in a flow, complete the following steps.
Testing an event-driven flow with real data (VPC hours plan only)
On the VPC hours plan, you can run an event-driven flow temporarily in the flow editor to verify its behavior before you deploy it.
Before you begin
When you test a flow with real data,
logging messages are generated. These log messages aren’t encrypted, and they’re stored by IBM. On
the VPC hours plan, if you enabled the single-container runtime,
you can disable logging for flows that you test with real data. Go to the Instance
settings page
, open the Test flow
logging tab, and turn off the setting. If this setting is off, messages from Log nodes
aren't written to the Logs page. If you turn on this setting, make sure that
your Log nodes aren’t writing sensitive data such as credentials.
About this task

Procedure
To test your flow with real data, complete the following steps.
Testing an API (VPC hours plan)
When you create an API flow, the definition provides an API that you can call. On the VPC hours plan, verify the behavior of an API by using the built-in test facility to call the endpoints for each API operation.
About this task
If you're on the VPC hours plan, you can test an API in the flow editor before you deploy it. You can also use sample data to test the flow that implements an API operation instead of the API itself. For more information, see Testing a flow with sample data.

Procedure
To test your API, complete the following steps.





or 
























