Pass

The Pass block is used to end an automation case run in the passed state. This block is essential to explicitly indicate that a flow has completed successfully.

Important: Without a Pass or Done block in a flow, Leapwork will automatically mark the end result as a Fail. Always include one of these blocks to signal successful completion.

Need an example? See the Introduction lesson.

Fully expanded, the Pass block shows the following properties:

image-20260129-122203.png

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Pass onto the canvas.

  2. Connect the block to the end of your flow to finalize the case in the Passed state.

  3. (Optional) Define a Pass message and add fields to include dynamic values.

  4. Run the flow when it’s ready.

Building block parameters

Parameters
  1. Pass message: Define a message to be logged when the case passes. This can contain tokens for field values.

  2. Text fields: Allow the use of external values in the pass message. Insert tokens by right-clicking in the Pass message field and selecting Insert token.

  3. Add field: Add custom fields to be referenced as tokens in the Pass message.

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.