> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/scenarios/testing-and-debugging.md).

# Testing and Debugging

## Testing option 1. Checking the expression

When you compose an expression using object fields, you can check it on the go, providing an object ID to deal with.

![](/files/-MNJ3O7NzIcw9f9q8Pkb)

{% hint style="warning" %}
Remember, that "Checking the expression" shows the result expression in the text area, not the step result!
{% endhint %}

## Testing option 2. Checking the step

If you want to check a particular step, but not the entire scenario, you can use step testing

![](/files/-MNJ6RZMlt181c_T2dYb)

Moreover, if you use [Context variables](/scenarios/using-variables/context-variables.md), you can specify their values while testing:

![](/files/-MNJ7-wUSF9pKIgE5OCw)

## Testing option 3. Throwing objects into scenario

You can test the whole scenario by throwing an object in it.

![](/files/-MNJAA6kzViMxENJGetP)

Discover the test results in object or in logs.

{% hint style="info" %}
Remember, that you can use scenario testing both for *Running mode* and *Editing mode*. Sometimes such a mechanism is useful not for testing, but for manual scenario execution.
{% endhint %}
