---
schema_version: "1"
id: f34373c1bb61bf69d69b7c324bef38c024fd91ec3bee47653cf50c4697104a45
title: Testing and Debugging Workflows
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/test-and-debug-workflows.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/test-and-debug-workflows
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6330b0bbed1a2a368e2c5da17c60ed5132b2c114811ecca1fd3203432ee7081b
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Testing and Debugging Workflows

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

RPA Builder provides a framework for testing and debugging workflows.

Before testing your workflows, learn how to
[differentiate errors from unavailability](#differentiate-errors-from-unavailability).

Then, you can
[run a workflow and view Workflow Run results](https://docs.mulesoft.com/rpa-builder/latest/running-workflows-and-using-workflow-run-results) to
obtain detailed information about the workflow’s execution.

Use [Workflow Debugger](https://docs.mulesoft.com/rpa-builder/latest/using-workflow-debugger) to set breakpoints and debug a workflow by stopping
on each configured breakpoint to troubleshoot workflow elements.

RPA Builder also enables you to
[analyze problems with analysis packages](https://docs.mulesoft.com/rpa-builder/latest/analyzing-problems-with-analysis-packages) downloaded from
RPA Manager after a failed workflow run.

## Differentiate Errors from Unavailability

When testing a Workflow, it is extremely important to distinguish errors caused by the Workflow from
errors that occur because of the unavailability of the measured application. To understand the
difference, verify the relevant details: where an error happened, why it happened, and what the
screenshot tells you about it.

There are several reasons why a keystroke action might fail with a message stating that the
specified window title could not be found. For example, it could mean the window was not there at
all or that the specified window title was incorrect. Analyzing the screenshots enables you to
distinguish between those two cases. If the window is not there at all, then the monitored
application did not start in the expected time, meaning there’s actual unavailability and there’s no
need to change the Workflow. If, on the contrary, the screenshot shows that the window is there, it
means the Workflow has an error. In this case, looking at the screenshot helps see the actual window
title and edit the keystroke action accordingly.

Workflows commonly fail for these reasons:

- An image could not be detected in the given timeout period.

- An application window could not be detected or did not disappear in the given timeout period.

- The target window of a Keystroke action could not be detected.

## See Also

- [Running Workflows and Using Workflow Run Results](https://docs.mulesoft.com/rpa-builder/latest/running-workflows-and-using-workflow-run-results)

- [Using Workflow Debugger](https://docs.mulesoft.com/rpa-builder/latest/using-workflow-debugger)

- [Analyzing Problems with Analysis Packages](https://docs.mulesoft.com/rpa-builder/latest/analyzing-problems-with-analysis-packages)
