> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/test-variables.md).

# Variabili di test

Verifichi quali valori vengono inviati dalle variabili della Macro di digitazione automatica di Remote Desktop Manager utilizzando un semplice trucco con un file batch.

{% hint style="warning" %}
Affinché la password sia disponibile come variabile, deve andare nelle ***Impostazioni di sicurezza*** della voce e selezionare ***Consenti password nella variabile***. Se l'opzione è disattivata, deve attivare ***Consenti variabili password per tutte le voci*** e ***Consenti variabile password nelle macro*** in ***Amministrazione – Impostazioni di sistema – Criteri delle password***.
{% endhint %}

{% hint style="warning" %}
Se utilizza la modalità di credenziali ***Collegata (cassaforte)*** nelle sue voci, dovrà abilitare l'opzione ***Consenti password nella variabile*** anche nella voce delle credenziali collegate.
{% endhint %}

La ***Macro di digitazione automatica*** di Remote Desktop Manager è davvero utile per simulare l'interazione dell'utente. Viene utilizzata principalmente per eseguire l'accesso automatico sulle pagine web, ma consente di eseguire comandi shell avanzati su vari sistemi operativi.

A volte è necessario confermare esattamente cosa verrà inviato quando si utilizzano le nostre Variabili.

Un semplice trucco consiste nel creare un file batch che si limita a stampare tutto ciò che viene inviato sulla riga di comando.

Basta copiare quanto segue nel suo editor preferito e salvarlo come file di comando; ho chiamato il mio parrot.bat

```
@echo off
echo.
echo.
echo %*
echo.
echo.
pause
```

Ora è sufficiente creare una sessione Command Line (External Application), impostare la riga di comando sul percorso del file parrot.bat e aggiungere subito dopo le variabili.

`"C:\tools\parrot.bat" $DOMAIN$ $IP$ $USERNAME$`

Ora, quando esegue la voce, vedrà esattamente quali valori vengono inviati.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/test-variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
