Edit

Testing actions

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.

Assert

Validates output against expected results 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

Test desktop flows