Overview
Available starting in v10.4, Unit Test Level Simulation Data allows Designers to configure Step Simulation Data behavior at the Unit Test level. This enables Unit Tests to return predefined outputs from selected Flow steps without executing those steps during the test run.
Rather than configuring simulation settings directly on a Flow step for all associated Unit Tests, Designers can define simulation behavior independently for individual Unit Tests. This makes it easier to validate multiple logical paths and test scenarios using the same Flow.
Unit Test Level Simulation Data is useful when a Flow must be tested against multiple execution paths. For example, different Unit Tests can simulate different outcomes from the same step, allowing a single Flow to be validated under multiple scenarios. Because each Unit Test maintains its own simulation settings, test authors can more easily create Unit Test Suites that cover a wider range of logical paths and scenarios without modifying shared step-level simulation behavior or creating additional Flows.
Previously, simulation settings were configured directly on a Flow step and applied to every Unit Test associated with that Flow. Unit Test Level Simulation Data allows simulations to be configured independently for each Unit Test.
Prerequisites
- Flows must contain at least one Unit Test.
- Users must have permission to edit Unit Tests.
- Steps that will be simulated must exist in the current Flow.
- Any required output values should be identified before configuring Simulation Data.
- Unit Test Level Simulation Data only supports steps contained within the current Flow. Steps inside Sub-Flows cannot be simulated.
How to Access Step Simulations
The Step Simulations section is available when creating or editing a Unit Test. The section appears below Input Data and is collapsed by default.
Step Simulations can be accessed from any location where a Unit Test can be edited:
- Unit Test tree in the Flow Designer
- Unit Test sidebar
- Portal Unit Test editor
- Flow Debugger
Step Simulations
The Step Simulations section contains a Simulated Steps list that behaves similarly to Active Form Flows in the Form Designer.
Available Actions
| Control | Description |
|---|---|
| Add (+) | Opens the Add Simulated Steps dialog. |
| Clear All (x) | Removes all simulations from the Unit Test. Disabled when the list is empty. |
| Row Toggle | Switches a simulation on/off without deleting it. |
| Row (Click) | Reopens a simulation for editing. |
Simulation Labels
Simulation steps are displayed using the following format:
<Step Name> - <Outcome> (i.e., "Create Data on Home Loan Path - Done")
Add a Step Simulation
To create a Step Simulation:
- Open or Create a Unit Test.

- Expand the Step Simulations section.

- Select Add (+).

- Configure the Simulation Settings:

- Step Name: Enables Users to pick a step to simulate.
- Simulation Selected Path: Picks one of the step's outcomes.
- Simulation Data: Maps the output values returned by the selected outcome.
- Save the Unit Test.
- The Step Simulation can now be run:

Simulation Behavior
Step Selection
The Step Name list includes all steps within the current Flow, including:
- The Start and End Step
- Show Popup
- Steps that only expose a Done outcome
- Standard Flow steps
Considerations
- All Flow steps that currently support Simulation Data can be selected for simulation, except steps within Sub-Flows.
- If a step type appears multiple times in a Flow, each instance is listed separately.
- A step can only be simulated once per Unit Test. Once selected, it is removed from the available list.
- If all eligible steps are already simulated, the dialog displays:
- "All steps are configured for simulation."
Simulation Selected Path
When a step is selected, Simulation Selected Path is automatically populated with the first available outcome for that step.
Simulation Data
When a simulated step is reached:
- The step is not executed.
- The selected outcome is returned.
- Output values configured in Simulation Data are supplied to the Flow.
- Any unmapped outputs return empty values.
Enable or Disable Simulations
- New simulations are enabled by default.
- Disabled simulations remain configured but are ignored during execution. When disabled, the Flow executes the actual step.
Simulation Priority
Unit Test Level Simulation Data works alongside existing step-level simulation behavior.
| Configuration | Applied Simulation |
|---|---|
| Step-level only | Step-level simulation |
| Unit Test-level only | Unit Test-level simulation |
| Both configured | Unit Test-level simulation |
If both step-level and unit test-level simulation behavior are configured for the same step, the Unit Test-level simulation takes precedence during unit test execution.
Persistence
Step Simulations:
- Persist after the Flow is reopened.
- Are copied when a Unit Test is copied.
- Are retained during export and import operations.
- Preserve their enabled or disabled state after importing.
Deletion Behavior
If a simulated Flow step is deleted:
- A warning message is displayed.
- Affected Unit Tests are identified.
- Associated simulations are permanently removed from all affected Unit Tests after confirmation.
Troubleshooting
Steps Do Not Appear
- Verify the step is in the current Flow.
- Verify the step is not inside a Sub-Flow.
- Verify the step has not already been simulated.
Output Values are Empty
- Unmapped outputs return empty values by design. Configure values in Simulation Data.
The Flow Executes the Actual Step
- Verify the simulation is enabled.
Unable to Add Additional Simulations
- When all eligible steps have simulations configured, the dialog displays:
"All steps are configured for simulation."
Feature Changes
| Description | Version | Release Date | Developer Task |
|---|---|---|---|
| Added Unit Test Level Simulation Data, allowing Step Simulation Data to be configured independently for each Unit Test. | 10.4 | October 2026 | [DT-048805] |