Environments
Overview
Environments in Test Orchestration allow you to configure different runtime settings for your workflows. An environment defines where and how your tests execute, including URLs, credentials, configurations, and other environment-specific parameters.
🌐 Multiple Deployment Targets
Think of environments as different deployment targets—development, staging, production, QA—each with their own settings. The same workflow runs differently in each environment.
What Are Environments?
An Environment is a collection of configuration settings that define:
Target System - URLs, endpoints, servers to test against
Credentials - Usernames, passwords, API keys for that environment
Variables - Environment-specific values and parameters
Capabilities - Devices, browsers, browsers available
Performance Thresholds - Expected response times, SLAs
Data Sources - Test data locations specific to environment
Environment Lifecycle
Development
↓ (after testing)
Staging
↓ (after validation)
Production
Each environment has its own configurationBuilt-In Environments
Test Orchestration comes with standard environments:
Development Environment
Typical Configuration:
Staging Environment
Typical Configuration:
Production Environment
Typical Configuration:
Testing/QA Environment
Typical Configuration:
Creating Custom Environments
Step-by-Step
Navigate to Environments
Open your project
Click Settings → Environments
Or from Project Settings → Environments
Create New Environment
Click + Add Environment or New Environment
Enter environment name (e.g., "UAT", "Integration Test")
Configure Properties
Environment Name - Descriptive identifier
Description - Purpose and notes
Environment Type - Development, Testing, Staging, Production
Status - Active, Inactive, Archived
Visibility - Who can use this environment
Set Base Configuration
Base URL - Primary application URL
API Endpoint - API server endpoint
Timeout Settings - Default timeouts
SSL/TLS Settings - Certificate handling
Add Environment Variables
Define variables for this environment
Examples: API keys, credentials, server addresses
See Variables section below
Configure Capabilities
Available browsers, devices, platforms
Resource allocation
Execution preferences
Save Environment
Review configuration
Click Create or Save
Environment is now available for workflows
Environment Variables
What Are Environment Variables?
Environment variables are configuration values specific to an environment. They're like project variables but with environment-specific values.
Variable Types
String
staging.api.com
URLs, endpoints, names
Number
30
Timeouts, counts, thresholds
Boolean
true
Feature flags, toggles
Secret
api_key_xyz
Passwords, tokens, keys
Array
["admin", "user"]
Lists of values
Object
{host: "localhost", port: 5432}
Complex configuration
Creating Environment Variables
Open Environment
Select the environment to configure
Click Edit or Variables
Add Variable
Click + Add Variable
Configure:
Variable Name - CAPS_SEPARATED (e.g.,
API_BASE_URL)Type - String, Number, Boolean, Secret, Array, Object
Value - The actual value for this environment
Description - What this variable is for
Required - If it must be provided
Example Variables
Using Environment Variables
In workflows and nodes, reference environment variables:
Example Node Configuration:
Secret Variables
For sensitive data (passwords, API keys), use Secret type:
Create variable with type Secret
Enter value (encrypted when saved)
Value never displayed in logs
Can only be viewed by admins
Rotated by security team
🔐 Security Best Practices for Secrets
Never hardcode secrets in workflows
Always use Secret type variables
Rotate secrets regularly
Use vault integration if available
Audit secret access
Never share secrets in logs or screenshots
Switching Environments
Running Workflow in Different Environment
Method 1: Direct Execution
Open Workflow
Navigate to the workflow
Click Run
Click Execute or Run Now
Select Environment
Choose from available environments
Default environment is pre-selected
Execute
Workflow runs with that environment's settings
Method 2: Scheduled Execution
Schedule Workflow
Click Schedule on workflow
Select Environment
Choose environment for this schedule
Save Schedule
Scheduled runs use this environment
Method 3: Workflow Default
Set a default environment for a workflow:
Open workflow
Click Settings
Find Default Environment
Select environment
Save
All executions use this environment unless overridden.
Environment-Specific Configuration
Configure different behavior per environment:
Implementation:
Create If-Then nodes checking environment
Branch to environment-specific test paths
Use conditional execution
Environment Management
Viewing Environments
Open project
Click Settings → Environments
See list of all environments:
Environment name
Type (Dev, Test, Staging, Prod)
Status (Active, Inactive)
Variable count
Last modified date
Editing Environment
Select environment
Click Edit
Modify:
Configuration values
Variables
Capabilities
Permissions
Click Save
Duplicating Environment
Create a new environment based on existing:
Select environment
Click Options → Duplicate
Provide new name
Modify as needed
Save
Useful for creating similar environments with slight variations.
Archiving Environment
Remove from active use without deletion:
Select environment
Click Archive
Environment hidden from active list
Can be restored later
Deleting Environment
Permanently remove environment:
Select environment
Click Delete
Confirm deletion
Cannot be restored
⚠️ Deletion Restrictions
Can only delete if no workflows depend on it. Archive instead if unsure.
Multi-Environment Testing
Test the Same Workflow Across Environments
Run identical workflow against multiple environments:
Create Workflow
Design workflow once
Execute in Multiple Environments
Dev execution
Staging execution
Production execution
Compare Results
Same test, different environment
Validate consistency
Environment Promotion
Promote workflows through environments:
Process:
Develop workflow in development environment
Test thoroughly
Execute in staging environment
Validate results match expectations
Execute in production environment
Monitor for issues
Environment-Specific Test Data
Test Data Management
Different test data for different environments:
Data Isolation
Ensure test data doesn't interfere:
Use Environment-Specific Users
Each environment has unique test users
Prevents cross-environment data pollution
Prefix Test Data
Mark test data with environment: "DEV_User_123"
Easily identifies test vs production data
Data Cleanup
Automated cleanup after tests
Prevents data accumulation
Keeps environments clean
Performance Baselines by Environment
Setting Performance Expectations
Define expected performance for each environment:
Performance Assertions
Configure performance checks per environment:
Open workflow
Select API test node
Click Assertions
Add assertion: "Response time < ${ENV.API_RESPONSE_THRESHOLD}"
Threshold automatically adjusts per environment
Environment Best Practices
Organization
Use Standard Names
Development, Staging, Production
Everyone knows what they mean
Clear Descriptions
Document environment purpose
Note any special characteristics
Consistent Structure
Same variable names across environments
Different values per environment
Security
Secure Credentials
Use Secret type variables
Store in secure vault if possible
Rotate regularly
Access Control
Limit production environment access
Require approvals for prod execution
Audit all prod changes
Data Protection
Never use real customer data in test environments
Mask sensitive data in logs
Comply with data protection regulations
Maintenance
Keep Environments Updated
Update URLs when servers change
Refresh credentials periodically
Update variable values as needed
Version Control
Track environment configuration changes
Document why changes were made
Maintain audit trail
Documentation
Document special environment requirements
List dependencies
Note manual setup steps if any
Environment Troubleshooting
Common Issues
Tests fail in staging but pass in dev
Environment difference
Check environment variables
Cannot access production environment
Permission issue
Request access from admin
API key invalid
Expired or wrong value
Update API key variable
Tests timeout in one environment
Different performance
Adjust timeout per environment
Debugging Environment Issues
Verify Variables
Check variable values match expectations
Ensure variables are defined
Test Connectivity
Verify URLs are accessible
Check network/firewall rules
Check Credentials
Ensure API keys are valid
Verify user permissions
Review Logs
Check execution logs
Look for error messages
Trace data flow
Summary
Environments define configuration for different deployment targets
Environment variables store configuration values specific to each environment
Same workflow can run against multiple environments
Secret variables protect sensitive data
Best practices ensure security and maintainability
Related Topics
Projects - Projects contain environment configurations
Workflows - Workflows execute within environments
Run Configuration - Configure execution parameters
Session Persistence - Maintain state in environments
Scheduler - Schedule runs across environments
Next: Explore advanced workflows in the Advanced Topics section.
Last updated