Setups
What it is
Setups define pre-run configuration that executes before test suites run. Use setups to prepare test data, configure state, or execute prerequisite actions before your tests begin.
How to use
- Navigate to Testing → Setups in the sidebar
- Click New Setup to create a setup
- Define the actions to execute
- Assign the setup to test suites
Configuration Options
- Name: A descriptive identifier for the setup
- Actions: The sequence of operations to perform
- Variables: Data to make available during setup
Use Cases
- Create test users or data in your system
- Reset state between test runs
- Configure feature flags or settings
- Authenticate and obtain tokens
- Seed databases with test data
Key Features
- Reusable across suites: Define once, use in multiple test suites
- Action execution: Run any configured action as part of setup
- Variable passing: Pass setup results to tests as variables
Tips
- Keep setups focused on a single purpose
- Use descriptive names (e.g., “Create Test User”, “Reset Demo Data”)
- Test setups independently before attaching to suites
- Consider cleanup actions for teardown scenarios
Last updated on