Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this module, you find actions that let you create and run test cases directly within Power Automate for desktop. This capability improves the reliability of desktop flows by enabling structured validation and integration into automated pipelines.
Test a desktop flow
Test a desktop flow that receives input variables and might produce output variables. The parent flow run pauses until the called desktop flow completes.
Input parameters
| Argument | Optional | Accepts | Default Value | Description |
|---|---|---|---|---|
| Desktop flow | No | Desktop flow | Select the desktop flow to run within this flow. The called flow runs in the same Windows session as the parent flow. |
Variables produced
This action shows the output variables of the selected flow.
Test a subflow of a desktop flow
Tests a subflow of a desktop flow which can receive input variables and may produce output variables. The parent flow run pauses until the called desktop flow completes.
Input parameters
| Argument | Optional | Accepts | Default Value | Description |
|---|---|---|---|---|
| Desktop flow | No | Desktop flow | Select the desktop flow to run within this flow. The called flow runs in the same Windows session as the parent flow. | |
| Subflow | No | Subflow | Select the subflow of the desktop flow to be tested. |
Variables produced
This action shows the output variables of the selected flow.
Note
Only local subflows are supported. Global subflows aren't supported.
Assert
Validates output against expected results by using operators like equals, contains, or greater than.
Input parameters
| Argument | Optional | Accepts | Default Value | Description |
|---|---|---|---|---|
| Assert expression | Yes | Text value | Expression that verifies the actual result of your desktop flow matches the result you expect | |
| Assert message | Yes | Text value | Message displayed if the test fails |