Skip to main content
Quick navigation

Environments

Environments facilitate the storage of parameters and configurations that can be referenced in test scenarios.

For example, attaching a different cluster configuration across development, staging, and production environments.

You can also use variables to store frequently referenced data. For example, a message key that's frequently referenced in your test scenarios.

When you switch the environment for a test execution, your variables will be resolved without manual intervention. This will save you time when configuring tests.

Create an environment

To get started, navigate to the Environments tab from the main navigation and select Add new environment.

Give your environment a name and select a color to associate with the environment.

Your newly labelled environment will now be visible in your list of environments.

Create an environment variable

Now that you have an environment created, you can add environment variables.

Navigate to the Variables tab and select Add new variable.

You will be prompted to provide a variable name and define the type.

Types:

  • Cluster: Attach cluster configurations to different environments
  • String: Attach a simple string value to a variable for use in test scenarios.

Now that you have created a variable, you can assign it a value for each environment that you have created.

In the below example, a different cluster is attached to Production and Staging environments.

Similarly, a different string value has been attached to the variable topic-key for each environment.

Continue to learn about using environment variables in Test Scenarios.