# 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="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FRLeeIMUodbd44CrAdyN2%2F%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8%20%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B0.png?alt=media&#x26;token=7cf1d385-e760-4a3f-a603-6868bbf36763" alt=""><figcaption><p>Переходим в настройки проекта</p></figcaption></figure>

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FvjG4NWfYoKWzAflrOlRU%2F%D0%9E%D1%82%D0%BB%D0%B0%D0%B4%D0%BA%D0%B0.png?alt=media&#x26;token=c48615bd-b4a1-46af-b549-f469e3bcb034" 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="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FBxGHsC3K2YsxzYHeOrP5%2F%D0%A2%D1%80%D0%B8%20%D1%82%D0%BE%D1%87%D0%BA%D0%B8.png?alt=media&#x26;token=30324757-852e-4362-b579-66cb0c72c3e0" 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="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FGWza57CUBcAftoLWe4RD%2F%D0%A1%D0%B8%D0%BD%D1%8F%D1%8F%20%D0%BA%D0%BD%D0%BE%D0%BF%D0%BA%D0%B0.png?alt=media&#x26;token=5c70447f-b331-4abb-b6f6-02c2f9bcd810" 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="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2Fp3bmP7XJSuQCakRgVfgZ%2F%D0%97%D0%B0%D0%BF%D1%83%D1%81%D0%BA%20%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%B2%20%D0%BA%D0%B0%D0%BD%D0%B0%D0%BB%D0%B5.png?alt=media&#x26;token=4abb1ff1-adc8-4bfe-ad19-93845eebca72" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FMwhWM3kSXJwgwTkZuwbI%2F%D0%A2%D0%B5%D1%81%D1%82%20%D0%B2%20%D0%A2%D0%93.png?alt=media&#x26;token=927a6451-cb77-4868-8094-3e7ac0024ef2" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
