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

# Test your agent before callers do

> Open the Customer care agent's Tests tab, read the "Wants a refund" test (its caller, its checks, its tool answers and its longest call), then run that one test and watch the simulated call.

A narrated video (2:42), filmed on the real dashboard in a demo workspace, then the same steps in writing.

<video controls playsInline preload="metadata" poster="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/poster.jpg">
  <source src="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/video.mp4" type="video/mp4" />
</video>

## What you will get

If real people already call your agent, a change can go wrong on their calls before you notice. A test lets you try the change first. Today we open one test, read how it is built, and look at how it ran. You'll see who calls, what the checks ask for, and what the tools answer.

![What you will get](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/intro.webp)

## Opening the agent

We begin on the agents page. Open the agent Customer care · UK, the one we want to check. Once it opens, its pages sit along the top, and Tests is one of them.

1. Press **Customer care · UK**.

![Opening the agent](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/open-agent.webp)

## Finding the tests

Next, we open the Tests tab. Each test here is a call the agent has to handle well. A simulated caller plays it by text, so nobody real hears it. The list also has New to add a test, Run all, and Runs, which keeps past results.

1. Press **Tests**.

![Finding the tests](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/tests-tab.webp)

## Opening the test

Now we open the test called Wants a refund. The test gets its own page, so we can read all of it. At the top you see its name, with Run beside it and a way back to All tests.

1. Press **Passed Wants a refund You're Tess. A lamp arrived smashed and you w…**.

![Opening the test](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/open-test.webp)

## Who calls

We start with who calls and what they want. Here the caller is Tess. A lamp arrived smashed, and she wants her money back. The simulated caller plays exactly this, so the agent meets the same situation every time.

![Who calls](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/caller.webp)

## The checks

Below that is the first check, which says when the test passes. A test can hold several checks, and the second one comes next. The third check follows it. Another model reads the call afterwards and says whether each check passed, and why. Use Add a check when a change needs one more.

![The checks](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/checks.webp)

## What tools answer

Next, what tools answer in this test. Here only open\_claim has an answer of its own. Any other tool answers "ok". That means a test never books, sends or transfers anything for real.

![What tools answer](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/tools.webp)

## Longest call

The last setting is the longest call, set to 12 turns. It caps how long the simulated call can run, so one test cannot go on forever. Above it, the call section says who starts the call, the caller or the agent, and what happens when a transfer finds nobody.

![Longest call](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/longest.webp)

## Running the test

Now for the run. Run plays this one test again and gives its result. The last run is already on the page. It passed, and each of the three checks says when it was met, before the goodbye. Under it is the simulated call itself, the agent on the left and the caller on the right.

![Running the test](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/run.webp)

## Wrapping up

That is the whole test: who calls, what the checks need, what the tools answer, and how long a call may run. Run tests like this against the draft, and a change gets tried before anyone real hears it.

![Wrapping up](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/tests/en/images/wrap.webp)

*Voice made with AI.*

Read more: [Drafts and tests](https://docs.lokutor.com/guides/testing-agents.md).


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