# Environment Variables

Environment variables are used to pass parameters in to a query used by [Design Test Object](/omrun-help/version-4.x/element-overview/test-data-object.md).\
This allows to easily switch from one environment to another and pass parameterized data (e.g. Server Name, Data Source Name, Data Base Schema) to the Test Object.

***

### Declare variable @DB\_Schema is Environment

In this example the value 'dev' will be passed in to the variable @DB\_Schema.

<figure><img src="/files/1FfgJo0mYBhZEMpXocz5" alt="OMrun environment grid" width="80%"><figcaption><p>OMrun environment grid</p></figcaption></figure>

***

### Usage of variable @DB\_Schema in Test Object

At runtime the variable @DB\_Schema will be replaced by the value 'dev'. This mechanism enables to read data from environment specific database schemas.\
You can also use Omis variable into a parameter (@param1 - @param4) and into remark.

<figure><img src="/files/cA6rNMZCGvsBXqqXYKRj" alt="OMrun query details" width="80%"><figcaption><p>OMrun query details</p></figcaption></figure>

***

### Windows environment variables

You can also use Windows system-/user variables. → (%VariableName%)

**Important**: please **restart OMrun** to get the value of the new variable loaded and accessible.


---

# 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://dbi-services.gitbook.io/omrun-help/version-4.x/configuration/using-variables/environment-variables.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.
