An Environment is a context created in RapidAPI to simplify running the same test on different deployments. An example use case for creating environments is to run the same test on a development, staging, and production deployment.
Within an environment, you can create environment variables and environment secrets. Unlike test variables, environment variables are not scoped to a specific test but are available for all the tests in an API Project.
To create a new environment for your test, go to the Testing Settings tab in your API Project. Click the "+" icon to create a new environment and give it a name.
When running your test, you can select which environment to run it in using the selector in the left navigation. Select the desired environment before running the test.
Updated about 1 month ago