teststudio

Environment Configuration

Seamlessly test across multiple environments with our flexible configuration system.

Multi-Environment Testing

Test across development, staging, and production environments.

Environment-Specific Variables

Configure environment-specific variables and credentials.

One-Click Switching

Switch between environments with a single click.

Environment Manager

Development
Staging
Production

Environment Variables

BASE_URL
https://dev.example.com
API_KEY
dev_api_key_12345
TIMEOUT
30000
DEBUG
true

Test Configuration

Browser
Chrome
Headless
false
Screenshot on Failure
true
Retry Failed Tests
2

Key Features

Multi-Environment Support

Configure and manage multiple environments (development, staging, production) with ease.

Variable Management

Define and manage environment-specific variables, credentials, and configurations.

Environment Switching

Switch between environments with one click without changing your test scripts.

Why Use Environment Configuration?

TestStudio's Environment Configuration system helps you maintain consistency across different environments.

Without Environment Configuration

// Test for development
const baseUrl = 'https://dev.example.com';
const apiKey = 'dev_api_key_12345';

// Have to manually change for staging
// const baseUrl = 'https://staging.example.com';
// const apiKey = 'staging_api_key_67890';

// And again for production
// const baseUrl = 'https://example.com';
// const apiKey = 'prod_api_key_abcde';

// Test logic with hardcoded values
await driver.get(baseUrl + "/login");
await api.setHeader('Authorization', apiKey);
Manual code changes required
Error-prone process
Version control conflicts
Credential management risks

With TestStudio Environment Configuration

// Environment variables loaded automatically
// based on selected environment

// No hardcoded values
await driver.get(`ENV.BASE_URL/login`);
await api.setHeader('Authorization', ENV.API_KEY);

// Switch environments with one click
// No code changes needed!
One-click environment switching
No code changes required
Secure credential management
Consistent test execution

Real-World Use Case

See how a typical development workflow benefits from TestStudio's Environment Configuration.

1

Development

Developers run tests against the dev environment during local development. TestStudio loads dev-specific variables automatically.

2

CI/CD Pipeline

The same tests run in CI/CD using staging environment variables, without any code changes.

3

Production Verification

After deployment, the exact same tests run against production with production-specific variables.

What Our Users Say

"

TestStudio's Environment Configuration has eliminated configuration errors in our deployment pipeline. We define our environments once and run the same tests everywhere without modification. It's saved us countless hours and prevented several production issues.

Mark Thompson

DevOps Lead at CloudSystems

Test across all your environments with ease

Eliminate configuration headaches and ensure consistent test execution across environments.

Learn More