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

# Test and run

> Rehearse an automation on a real ticket before it goes live, or run a manual automation on demand.

Test every automation before you switch it on. A test runs your current draft right away, on the ticket or message you choose, and shows each step as it happens.

## Test an automation

**1. Open the test**

Click **Test** at the top of the automation. It's available once the automation has instructions and at least one tool, whether the automation is on or off.

**2. Choose what to test on**

What you give it depends on the trigger:

| Trigger | Test input |
| - | - |
| Any ticket trigger | **Ticket (optional)**: search for a ticket by number or title |
| **Slack message** | **Slack message**: the message text to test with |
| **Schedule** | Nothing. It runs as if the schedule fired now |

With no ticket picked, the agent is told it's a test with no event details.

**3. Run it**

Click **Run test**. Steps appear as the agent calls each tool, followed by its summary. The run ends **Finished** or **Failed**.

**4. Adjust and test again**

Close the test, change the instructions or tools, and click **Test** again, or use **Test again** to rerun with the same input.

Tests are real. Slack messages post, notes are added, and issues are created. Test with a Slack channel and Linear team set aside for testing, or on a ticket where an extra note won't confuse anyone. Then point the instructions at the real ones.

A test isn't the same as the real event: a ticket test passes the ticket but not the specific message or status change that would have triggered it. Write instructions that read the ticket, and test on tickets that look like the real cases.

Tests appear in [Run history](https://docs.decimal.app/automations/run-history.md) as **Test**. They don't use credits, so test as often as you like.

## Switch it on

Use the switch next to the automation's name. On, the badge shows **Active** and the trigger starts runs. Off, it shows **Inactive** and nothing new runs. The switch stays off until the automation has instructions and at least one tool.

## Run a manual automation

Automations with the **Manual** trigger run only when someone starts them.

1. Switch the automation on.
2. Click **Run**, then **Run** in the dialog.

The run uses the automation's saved version, uses credits like any other run, and has no ticket or message attached, so write instructions that find their own work, like "Find every open ticket tagged **outage** and…". Use **Run again** to start another.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.