Test Environments
This document explains how to manage test environments and environment variables.Access Path
- URL:
/test-env-manager
Environment List
List Information
Action Buttons
Creating New Environment
Steps
- Click the “Create Environment” button at the top of the page
- Fill in the dialog:
- Click “Create” to create
Naming Recommendations
Recommended environment naming conventions:Development- Development environmentStaging- Staging environmentProduction- Production environmentQA- Quality Assurance environment
Editing Environments
Modifying Basic Information
- Find the target environment in the environment list
- Click the “Edit” button
- Modify name or description
- Click “Update” to save
Deleting Environment
- Click the “Delete” button for the environment
- Confirm delete operation
Note: Environments that are being used by test round templates may not be deletable
Environment Variable Management
Opening Variable Management
Click the variable count in the environment list to open the variable management dialog.Variable Types
Adding Variables
- Click the “Add Variable” button
- Fill in variable information:
- Click to confirm adding
Editing Variables
- Find the target variable in the variable list
- Click the “Edit” button to enter edit mode
- Modify variable information
- Click “Save” to save
Deleting Variables
- Click the “Delete” button for the variable
- Confirm delete operation
Saving Changes
After modifying all variables, click “Save Changes” to save all changes.Common Environment Variable Examples
API Related
Authentication Related
Database Related
Feature Flags
Using Environment Variables
In Test Round Templates
- When creating a test round template
- Select environment in the “Environment” field
- Template will use all variables from that environment
Referencing in Tests
Variables can be referenced by name during test execution:${API_BASE_URL}- Reference API_BASE_URL variable${AUTH_USERNAME}- Reference AUTH_USERNAME variable
Best Practices
Environment Isolation
- Create independent settings for each test environment (Dev/Staging/Prod)
- Avoid different environments sharing the same variables
Protecting Sensitive Information
- Use Password type to store sensitive information
- Do not expose sensitive content in descriptions
Naming Conventions
- Use uppercase letters and underscores:
API_BASE_URL - Add prefixes for categorization:
DB_HOST,AUTH_TOKEN