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

# Testing

> Validate your agent before and after going live with simulation tests and experiments.

Testing in Agent Studio gives you three ways to validate your agent:

* **Simulation tests**: automated conversations that verify your agent handles specific scenarios correctly. Author a test by describing what a caller will do and asserting how the agent should respond. Run it against any Branch or Sub-branch to catch regressions before they reach Live.
* **Experiments**: run a Branch against Live on real customer calls and compare how the two perform before every customer gets the change.
* **Wren**: generate simulation test scenarios from natural language. Describe a flow and [Wren](https://docs.poly.ai/wren/introduction.md) authors the test cases for you, keeping them in sync as your agent changes.

Use simulation tests throughout development to catch issues early. Use an experiment when you need real-world evidence that a change improves outcomes. Use Wren when you want to quickly scaffold test coverage without writing each case by hand.

> [card] [Create simulation tests](https://docs.poly.ai/testing/simulation-tests.md)
>
> Author scenario-based tests with assertions and system actions.

> [card] [Run and review](https://docs.poly.ai/testing/run-and-review.md)
>
> Execute tests, inspect results, and organize with test sets.

> [card] [Experiments](https://docs.poly.ai/testing/experiments.md)
>
> Run a Branch against Live on real calls and keep the winner.

> [card] [Automate with API](https://docs.poly.ai/testing/ci-automation.md)
>
> Gate publishing on test results from CI.
