> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qawolf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Diagnose the cause of a failing flow

> Learn how to classify flow failures as flakes, bugs, or broken tests using the Investigation view.

## The different reasons flows fail

When a flow fails, the next step is to determine why. Identifying the cause determines the appropriate resolution path and helps avoid unnecessary fixes or retries.

Failures generally fall into one of the following categories:

* **Flakes** — failures caused by infrastructure outages, network instability, or failed dependent services. These issues often resolve without changes to the flow or the application.
* **Bugs** — failures that reveal incorrect or unexpected behavior in the application under test. These indicate a product issue rather than a problem with the flow itself.
* **Broken tests** — failures caused by flow logic, bad selectors, incorrect assertions, or assumptions that no longer match the application. These may be simple to correct or may require more substantial maintenance.

Correctly identifying the cause helps you determine whether the failing flow should be retried, fixed, deferred, or accepted to clear the release.

## Use the Investigation view to diagnose a failure

The **Investigation view** is where you diagnose flows that failed during a scheduled or event-based run. It brings together everything you need to understand what happened in a single run and decide what to do next.

You reach the Investigation view by opening a run from the **Runs** tab when that run is in **Investigating** or **Failed** status. The view opens with the most relevant information already selected, so you can start reviewing immediately.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-16.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=0aaf6b34b7b0a72cedf1bf3fa8379db6" alt="" width="2832" height="1662" data-path="images/execution-scheduling-bugs-and-maintenance/image-16.png" />
</Frame>

### Find failing flows

<Steps>
  <Step>
    Navigate to the Investigation view. The left panel separates **Failed**, **Running**, and **Passed** flows.
  </Step>

  <Step>
    Click the **Failed** tab to see just those flows.

    <Frame>
      <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-17.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=90704a07f86e8f877a056df085133cd2" alt="" width="892" height="434" data-path="images/execution-scheduling-bugs-and-maintenance/image-17.png" />
    </Frame>
  </Step>
</Steps>

### Identify the failing line of code

<Steps>
  <Step>
    Navigate to the failing flows in the Investigation view.
  </Step>

  <Step>
    Select a flow. The point of failure is highlighted.

    <Frame>
      <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-18.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=6b67885a8d0e3d138c5881205b7b55c3" alt="" width="2338" height="690" data-path="images/execution-scheduling-bugs-and-maintenance/image-18.png" />
    </Frame>
  </Step>
</Steps>

### Compare attempts in a single run

If a flow was retried multiple times during a run, you can switch between attempts to determine whether the failure was consistent or occurred only under certain conditions.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-19.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=e23f88e98528f013d504ad928ef634f7" alt="" width="1578" height="446" data-path="images/execution-scheduling-bugs-and-maintenance/image-19.png" />
</Frame>

### Review what happened in the browser during the most recent run

Recorded video shows exactly what happened in the browser during the selected attempt, which is often the fastest way to understand unexpected behavior.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-20.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=afda911ceb3394aa22a6dcd6511b0862" alt="" width="3588" height="1244" data-path="images/execution-scheduling-bugs-and-maintenance/image-20.png" />
</Frame>

### Compare previous runs

To review video of up to the last 100 runs of a flow, including all attempts, use the flow's **Run History** tab.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-21.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=8fa4e013c07e073f5ca474ea7e48117a" alt="" width="3592" height="1436" data-path="images/execution-scheduling-bugs-and-maintenance/image-21.png" />
</Frame>

### Access Playwright traces

<Steps>
  <Step>
    Navigate to the failing flow from the Investigation view.
  </Step>

  <Step>
    Click the **Trace** tab on the right panel.

    <Frame>
      <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-22.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=80822504e134c04d246a2700b98381a0" alt="" width="3586" height="2004" data-path="images/execution-scheduling-bugs-and-maintenance/image-22.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-23.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=90d6aca4871c9b290a833c1677bc5a7c" alt="" width="3580" height="1262" data-path="images/execution-scheduling-bugs-and-maintenance/image-23.png" />
    </Frame>
  </Step>
</Steps>

## Use Run History, Activity, and Notes to diagnose failures

Some issues only become clear when you look beyond a single run. **Run History** shows the last 100 runs for a flow, including each attempt. Reviewing this history helps you spot patterns such as intermittent failures, regressions after changes, or flows that consistently fail in the same place.

You'll typically access these tools from the Investigation view or the **Run History** tab in the Automate editor.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-24.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=a59109407603320dc372f1f244a29804" alt="" width="1914" height="2016" data-path="images/execution-scheduling-bugs-and-maintenance/image-24.png" />
</Frame>

<Note>
  Run History is also available in the Automate editor — select a flow and click the **Run History** tab in the right panel.
</Note>

### Focus on a specific run

<Steps>
  <Step>
    Hover over the vertical bars in the **Run History** timeline.
  </Step>

  <Step>
    As you move across the bars, the selected bar expands to show the <Icon icon="play" /> icon, and the timestamp below the timeline updates to match that run.
  </Step>

  <Step>
    Click the <Icon icon="play" /> icon to open details for the selected run.

    <Frame>
      <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-27.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=45416cb9663cc84ed205c16ba10dd63a" alt="" width="1280" height="252" data-path="images/execution-scheduling-bugs-and-maintenance/image-27.png" />
    </Frame>
  </Step>
</Steps>

### Review change history

The **Activity** tab shows changes made to a flow over time, including readiness updates and maintenance reports. This helps explain when a flow was modified or temporarily removed from runs and why.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-28.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=6418976a48ddd34496f5a0f6cb6daa88" alt="" width="1172" height="1546" data-path="images/execution-scheduling-bugs-and-maintenance/image-28.png" />
</Frame>

### Record and review notes

The **Notes** tab lets you record context about a flow, such as known issues, edge cases, or investigation findings. Notes are saved per flow and can help guide future diagnosis and maintenance.

<Frame>
  <img src="https://mintcdn.com/qawolf/4XZ5s3xcaUDfoNRS/images/execution-scheduling-bugs-and-maintenance/image-29.png?fit=max&auto=format&n=4XZ5s3xcaUDfoNRS&q=85&s=1e1cd40e6d0d4a2ea737323b99ffd279" alt="" width="1150" height="1606" data-path="images/execution-scheduling-bugs-and-maintenance/image-29.png" />
</Frame>
