# Test the whole flow

Run your draft from start to finish with a real or hand-written payload, then read the result just like any other run.

Source: https://support.rework.com/article/test-the-whole-flow

Testing one step tells you that the step works. Testing the whole flow tells you that the steps fit together: that the filter lets the right events through, that the branch picks the arm you expect, that the email ends up with the data it needs. The **Test** panel runs your draft from the trigger down.

> **Warning:** A test run executes the real steps. Emails go out, API calls are made, records change. What it doesn't touch is the published flow: the test runs the draft.

## Step 1: Open the Test panel

Click **Test** in the top bar. What the panel offers depends on the trigger.

## Step 2: Replay a real event

For a webhook or an app event, the **Captured** tab lists what the trigger has actually received:

- Send an event from the other system, then click **Reload captures**.
  
- Open a capture to see its payload, and copy it if you want it elsewhere.
  
- Click **Execute** to run the draft with that payload.
  

Nothing has arrived yet? No problem: the panel says so and tells you what to do, which is to send a request to the webhook URL, then reload. See [Start a flow with a webhook](https://support.rework.com/article/start-a-flow-with-a-webhook).

## Step 3: Or write the payload yourself

Open the **Manual** tab, type a JSON body under **Trigger body · JSON** and click **Execute**. 💡 This is the quickest way to try the edge cases: the lead with no email, the score of exactly 70, the field that arrives empty.

## Step 4: Run a schedule flow now

A schedule can't be listened for, so the panel offers a single button instead: **Run now** fires one run of the draft immediately.

![The Test panel for a schedule flow, with Run now](https://storage.googleapis.com/reworkv3-public/success/260923/ZIhLmsso9W4vDWFB8bImnJOgt5VtFr3VYEN3o1Ox9w8QkL52gGHYa4AzpFHCbtXl/img.cP7f915WCFAeWuR6TBJDfJxBXR0qJjHYrvRohMhybgPbrv1nBCymDnZOpatxZ7d1.png)

## Step 5: Read the result

After **Execute** or **Run now**, the panel closes and the new run opens on the **Runs** tab, marked with an amber **Test** badge so you can tell trial runs from real ones. From here it reads like any other run: each step coloured by its result, and the data it used on the right.

![The test run on the Runs tab, badged Test](https://storage.googleapis.com/reworkv3-public/success/260923/T24wnaxjRbjAZ9wDLddf9Rm4UA25Ous7jPkqTlSBuJNkTj4eX5IxjzBsbEQsINdL/img.PPeZhTCidoO7yw6CnMUgl3wNbAZ6r5oPr1Aehm8SwxYpp4gOAvxhgomjjVTiG6u1.png)

See [Read a run step by step](https://support.rework.com/article/read-a-run-step-by-step). When the run does what you expect, you're ready to [publish the automation](https://support.rework.com/article/publish-an-automation).
