TABLE OF CONTENTS
2. Updating Environmental Variables
2. Generating a Separate Environmental File in the Test Cases Folder
1. Overview
Environmental variables are dynamic values that are set outside of your test script but can be accessed by the script during execution.
They are used to manage configurations and sensitive information in a secured manner. For example, environment variables can store API endpoints, authentication credentials, and encryption keys. This setup helps store sensitive information outside of the code and allows for easy updates across different environments.
2. Updating Environmental Variables
Perform the following:
- In the Collection screen, navigate to top right corner and click on Environmental Variables button.
- A pop-up window will appear.
- In the Environmental Variable pop-up window, you can:
- click Plus icon to add the environmental variables.
- delete a variable by clicking the Delete icon.
- enter the required variables.
- click tick mark to Submit.
- If you have an existing environmental variables, you can click the Import Button.
2. Generating a Separate Environmental Variable File in the Test Cases Folder
Perform the following:
- In the Generate Script screen, click Generate Script button.
- A separate file named TestDataEnv.json is generated in the Test Cases screen which lists all the provided environmental variables at one place.
- A sample TestDataEnv.json file is generated with variable in it.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article