> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/basics/script-testing.md).

# Script testing

Before running the script for users, it is worth testing it for yourself.&#x20;

We advise you to first enable the output of debug messages in the project settings in order to see exactly what actions the bot performs.

<figure><img src="/files/09eIljZ0vDUhZ9ujm3hi" alt=""><figcaption><p>Переходим в настройки проекта</p></figcaption></figure>

<figure><img src="/files/tmZ5Oq3KWxopwxn9S7G4" alt=""><figcaption><p>Включаем режим отладки</p></figcaption></figure>

Now we need to go to the script that we will test.&#x20;

Hover over the block you want to start testing from. An indicator with three dots will appear on the right.

<figure><img src="/files/Jdw8ZxBmj3u2jA8MyGxt" alt=""><figcaption></figcaption></figure>

When you hover over this indicator, a context menu will appear, where you will see the item "Test"

<figure><img src="/files/Mq1HVW6GgDRGTQElkG9d" alt=""><figcaption></figcaption></figure>

Click on this item, and a list of your channels associated with the scenario will appear on the side.&#x20;

It remains only to click on the "Start" button.&#x20;

The bot will send messages to the specified channel.

<figure><img src="/files/MsDaNgy13c3QMsnwSgTS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/gGdfdLDA06cMtqgnwoUb" alt=""><figcaption></figcaption></figure>

You can test the scenario both from the very beginning and from any block :thumbsup:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.smartbotpro.io/scripts/basics/script-testing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
