Environment Variables

Similar to Postman, the Ddosify Platform offers an Environment Variables feature that allows you to store constants in variables for convenient use within your test scenarios.

Environment Variable Creation

  1. Navigate to the Environments listing page within the Ddosify App, and find the 'New' button situated at the top-left corner of the page.

  2. Assign a unique name to the new environment, which will be used to link the environment to a test. Next, create your name-value pairs. The values can be of various types, such as Number, String, or Array.

Attach Environment into Tests

  1. In the Ddosify App, go to the Test Suite and choose the Environment you previously created using the dropdown menu in the top-right corner of the Test Suite.

  2. Utilize the {{environmentVariableName}} format to insert test data into one of the following locations: URL, headers, query parameters, or authentication.

Last updated