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

# Test and fix Next Gen Zaps

> Test a Next Gen Zap draft with your real app connections, check what each run did, and fix a run that failed.

Test a Next Gen Zap before you publish it. A test run of a draft uses your real app connections, so you can confirm that each step does what you expect. If a run fails, Zapier explains why and helps you fix it.

By the end of this tutorial, you'll be able to test a draft, review its results, and resolve errors.

> [!NOTE]
>
> Available on all Zapier plans.

> [!WARNING]
>
> Next Gen Zaps is in open beta on all plans. It's available for use, but still in active development and may change or be discontinued.

## Test a draft

1. In the Zapier left sidebar, click **Automations**, select **Zaps** in the second sidebar, then click the **Next Gen** tab.
2. Select your **workflow**. It opens in the [Workflow Manager](https://docs.zapier.com/zaps/use-the-workflow-manager-to-build-and-view-your-zaps.md).
3. On the right of the bar above the canvas, click the **version or draft dropdown menu**.
4. Select the **draft** you want to test. The draft opens on the canvas.
5. In the top right of the top menu, click ![actionPlay](https://cdn.zapier.com/storage/photos/cf39dcfff95d5bba0892d167e30f87a6.png) **Test**. The *Test* dialog box opens.
6. Choose the **inputs** for the test. What the dialog box shows depends on the workflow:
   * If it shows input fields, click **Form** to fill in each field, or **JSON** to enter the data as JSON. If the draft has saved inputs, they are already filled in. To have Zapier fill in sample data for you, click ![miscEvergreenAI](https://cdn.zapier.com/storage/photos/1efa4b59ba0c417d695e56fdcaeab4bd.png) **Generate test data**. Review the data before you test.
   * If it shows no input fields, Zapier uses the draft's saved inputs. To review or change them first, click **Edit Inputs**.
   * If the workflow does not take input, go to the next step.
7. Click ![actionPlay](https://cdn.zapier.com/storage/photos/cf39dcfff95d5bba0892d167e30f87a6.png) **Test**. The test run starts.

> [!NOTE]
>
> A test run performs real actions in your connected apps. For example, a step that sends an email sends a real email. Testing a draft does not use tasks.

## Check the results of a run

1. In the bar above the canvas, click the **Runs** ![miscClockPlay](https://cdn.zapier.com/storage/photos/fb3d4bb5cceac4852988ca6b969a7fec.png) tab. A left sidebar will open.
2. Select the **run** you want to review. A test run has a *Test* tag.
3. In the *Input* section, check that the run started with the data you expected.
4. In the *Operations* section, click to open each **step** or **Open all** to expand all steps. Check that each step's *Result* section has what you expected.
5. In the *Output* section, check the data the run returned.
6. Open each app that the workflow sends data to. Check the records that the run created or changed, such as a new row in a spreadsheet.

A run that finishes with the *Success* status did not stop on an error. It can still send the wrong data, so always check the records in your apps. Learn more about the sections of a run and its statuses in [Review the run history of a Next Gen Zap](https://docs.zapier.com/zaps/review-the-run-history-of-a-zap.md).

## Fix a run that failed

1. On the **Runs** tab, select the **run** with the *Failed* status.
2. In the *Error* section, click **Explain error**. Zapier opens the right sidebar and explains why the run failed and how to fix it.
3. Ask Zapier to make the fix. Zapier makes its changes in a draft, not in the published version. You can also [edit a step by hand](https://docs.zapier.com/zaps/edit-a-zap-step-by-hand.md).
4. [Test the draft](#test-a-draft) again, and [check the results](#check-the-results-of-a-run).
5. When the test passes, [publish the draft](https://docs.zapier.com/zaps/create-zap-drafts-and-versions.md#publish-a-draft).

> [!TIP]
>
> When [agentic management](https://docs.zapier.com/zaps/agentic-management-in-zaps.md) is on, an agent checks your workflow's failed runs and prepares fixes.

## Run the published version

After you publish, you can run the live version once to confirm that your published changes work. The workflow must be on.

1. On the right of the bar above the canvas, click the **version or draft dropdown menu**, then select the **live version**. It has an *On* tag.
2. In the top right of the top menu, click **Run**. The *Run* dialog box opens.
3. Enter the **input**, then click **Run**.

A run of the published version performs real actions in your connected apps and uses tasks.

## Limitations

* Only the workflow's owner can test a draft or run the published version.
* By default, each user can make up to 60 test runs an hour.
* A run's details do not include the data each step received. To check what a step sent to an app, find the record in that app.

## Next steps

You can now test a draft of a Next Gen Zap, check what its runs did, and fix a run that failed.

* [Review the run history of a Next Gen Zap](https://docs.zapier.com/zaps/review-the-run-history-of-a-zap.md) to release held runs and stop runs in progress.
* Set up [Agentic management in Next Gen Zaps](https://docs.zapier.com/zaps/agentic-management-in-zaps.md) to let an agent check failed runs for you.
* [Create Next Gen Zap drafts and versions](https://docs.zapier.com/zaps/create-zap-drafts-and-versions.md) to publish a tested draft or roll back to an earlier version.
