Action Bindings
Action Bindings connect your defined Actions to specific Environments, allowing the same test to use different configurations based on where it’s running.
Overview
Action Bindings provide:
- Environment Flexibility: Run the same test against different backends
- Configuration Mapping: Map abstract actions to concrete implementations
- Credential Isolation: Use different credentials per environment
Creating Action Bindings
- Navigate to Integrations → Action Bindings
- Click New Binding
- Select the Action to bind
- Select the Environment to bind to
- Configure environment-specific overrides:
- Base URL
- Authentication headers
- Request transformations
- Save the binding
How Bindings Work
When a test runs:
- The test runner identifies which actions are used
- Based on the selected environment, it resolves the appropriate binding
- The binding’s configuration overrides the action’s defaults
- The request is made with the environment-specific settings
Example
If you have an action called CreateUser:
| Environment | Base URL | Auth Header |
|---|---|---|
| Development | http://localhost:3000 | dev-key-123 |
| Staging | https://staging.api.com | staging-key-456 |
| Production | https://api.lamdis.ai | prod-key-789 |
Each binding ensures the CreateUser action hits the correct endpoint with proper credentials.
Best Practices
- Create bindings for all environments your tests will run in
- Use variables in bindings instead of hardcoding values
- Test bindings in development before production use
- Document custom headers or transformations applied per environment
Last updated on