# Creating Variables

Learn how to create and manage variables within your KushoAI environments.

# Accessing Variables

  1. From your test suite, select your environment from the dropdown
  2. Click the "Variables" button next to the environment selector

Test Suite With Environment Selection
Test Suite With Environment Selection

# Adding New Variables

  1. In the variables drawer that opens on the right, click "Add Variable":

Variables Drawer
Variables Drawer

  1. The "Add Key-Value Pair" dialog will appear:

Add Variable Dialog
Add Variable Dialog

  1. Enter the variable details:

    • Key: Enter the variable name (e.g., "variable1")
    • Value: Enter the value for your variable
  2. Click "Add" to save the variable

# Managing Variables

  • Variables are specific to each environment
  • The system will indicate when variables are undefined
  • You can add multiple variables as needed
  • Variables can be used across different test cases

# Best Practices

  • Use clear, descriptive names for variables
  • Follow a consistent naming convention
  • Document variable purposes when needed
  • Keep variables updated across environments