---
title: "Ongoing Tasks: Testing ETL Scripts"
description: "* ETL transformations can be tested with the usage of Test script option. Edit your script in the Studio to enter test mode."
url: "https://docs.ravendb.net/6.2/server/ongoing-tasks/etl/test-scripts"
version: "6.2"
---

# Ongoing Tasks: Testing ETL Scripts

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Ongoing Tasks: Testing ETL Scripts

> **Note**
>
> - ETL transformations can be tested with the usage of `Test script` option. Edit your script in the Studio to enter test mode.
>
> - In this page:
>   - [Testing Raven ETL Scripts](#testing-raven-etl-scripts)
>   - [Testing SQL ETL Scripts](#testing-sql-etl-scripts)

## Testing Raven ETL Scripts

![Figure 1. Test RavenDB ETL script](https://docs.ravendb.net/assets/images/test-raven-71344c1df57658489f954a9202f8fb38.png)

> **Note**
>
> - In order to test your transformation script you need to:
>
> 1. Enter ID of a document that will be used.
>
> 2. Choose the test mode:
>    - `Document put / update` - use to see script results when the document is created or modified.
>    - `Document delete` - use to see script results when the document is deleted (note that [delete behavior functions](https://docs.ravendb.net/6.2/server/ongoing-tasks/etl/raven.md#deletions) can be called then).
>
> 3. Click `Test` button.
>
>    After executing the script in test mode you'll see the following tabs:
>
> 4. `Document Preview` displays the original document used in the test.
>
> 5. `Test Results` presents the list of commands that will be sent to a destination database.
>
> 6. `Debug output` contains all debug outputs that were created using `output()` function called in the script body. The function accepts string parameter.

## Testing SQL ETL Scripts

![Figure 2. Test SQL ETL script](https://docs.ravendb.net/assets/images/test-sql-6146926bf28691405a76b30353c1c768.png)

> **Note**
>
> - Testing SQL transformations requires the same steps as testing Raven ETL. Although there is one additional option available, `Execute and rollback the test transaction`:
>
>   - unchecked (default): no execution of SQL statements will take place, will only show generated SQL statements,
>   - checked: all generated SQL statements will be executed against the target SQL database, the transaction will be rolled back when done.
>
> - The test results displayed in `Test Results` are SQL statements that would be sent to relational database. Depending on `Execute and rollback the test transaction` option they
>   will be parametrized (option checked) or values will be inserted directly into statements (option unchecked).
