# Test a step before you publish

Run one step on its own with real data and see exactly what it produces before your flow goes live.

Source: https://support.rework.com/article/test-a-step-before-you-publish

You rarely find out whether a step is right just by reading it. **Test step** runs that one step on its own, with data from the steps above it, and shows you what came back. It's the fastest way to check an address, a condition or a message before anyone else sees the result.

> **Warning:** A test runs the step for real. An HTTP request is really made, an email is really sent, a record is really written. There's no rehearsal mode, and that's the point: you're checking the step against the real world.

## Step 1: Open the step and save your changes

Click the step on the canvas. If you've just edited it, the panel says _You have unsaved changes_: click **Save** at the bottom first, so the test runs the settings you can see.

A step also tells you what its test will do. An **HTTP request** step, for example, says that testing makes the real request, and that a **GET** only reads while **POST**, **PUT** and **DELETE** really change the target.

![The Test step button and the note about what the test does](https://storage.googleapis.com/reworkv3-public/success/260923/1AE3MHqyKz7n64Q1Fp3yGBZKZCMnKIPuAlsWTFWkyWM6S5FEubDML3lfRDjvaQvp/img.mfPWAmFz4OFNKKhE7FDGtFdXbIK469EIiFUt5YfVwWTySL23Ic9GDesIcHriV1wY.png)

## Step 2: Run the test

Click **Test step**. While it runs, the button reads **Testing…**, then the result appears underneath:

- A status pill: **Success** or **Failed**. A filter shows **Passed** or **Did not pass** instead.
  
- **Show data** opens **Output**, what the step produced, and **Input**, the values it actually used after tokens were filled in.
  
- The step on the canvas picks up a **Tested** badge.
  

![A successful test with its output, and the step badged Tested](https://storage.googleapis.com/reworkv3-public/success/260923/eTyUdo2U1TLyhZTd2lLsTQgz8ShR7yJ5fof5FFCRdalxFs0ABjWHrY8kwsa4JgbG/img.uru00EKFw64EZE8KKkNonK1oyGyMfI2pfauV6iA3FmPWEYr7UI18GydVipjEt2jj.png)

Once a step has been tested, the button reads **Retest**.

## Step 3: Work down the flow

A step is tested with the data its ancestors produced, so the order matters:

- Test the trigger first. For a webhook, that means a captured request. For a schedule, the test runs right away because a schedule needs no incoming data.
  
- Then test each step in turn. Don't worry about losing track: the panel tells you when a step above hasn't been tested yet, and offers a button to jump to it.
  
- Each test is remembered as that step's sample, so the **Data Selector** below it shows real values rather than field names. See [Pass data between steps](https://support.rework.com/article/pass-data-between-steps).
  

## Step 4: Read the badges on the canvas

| Badge | Means |
| --- | --- |
| **Needs config** | A required field is still empty. The panel lists which ones. |
| **Not tested** | Configured, but never run. |
| **Tested** | The last test passed, and nothing has changed since. |
| **Test failed** | The last test returned an error. |

![Two tested steps and a third that still needs config](https://storage.googleapis.com/reworkv3-public/success/260923/c879Jn6pWFtEBlbozWT59cwMZiD5zqUYSOdGGBsBs0z2wtrUbSkrEziaewlnhO7X/img.FBIYjxCPOUxoP88waNThRcHAUuzWDjaeRI6IhF1EuIcqkMAi8qtctPZwx0BSb5qO.png)

> **Note:** Editing a step clears its tested state, and any step that used its output goes back to **Not tested**. A result that no longer matches the settings would be worse than none.

Control steps such as **Branches**, **Merge**, **Loop** and **Wait** have no test: they route the run rather than produce anything. To see them work, run the whole flow. See [Test the whole flow](https://support.rework.com/article/test-the-whole-flow).
