> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revyl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Global Variables

> Org-wide key-value pairs accessible in any test

Global variables are org-level key-value pairs available in any test via `{{var_name}}`.

## Creating a Variable

1. Go to **Library** → **Variables** tab
2. Click **New variable**
3. Set the **name** (e.g., `email`) and **value** (e.g., `test@example.com`)
4. Optionally add a description

## Using Variables in Tests

Reference any global variable in a step instruction with double braces:

```
Type {{email}} in the email field
```

## Global vs Test Variables

* **Global variables** (Library): shared across all tests in the org. Edit once, applies everywhere.
* **Test variables** ([editor Variables tab](/tests/creating-tests/test-editor)): scoped to a single test. Override globals if the same name is used.

Variable names are case-sensitive. Use lowercase with underscores (e.g., `user_email`, `api_key`).
