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 Script Generation screen, navigate to the side panel by clicking the arrow in the lower-right of the page.
- Click the Environmental Variables button to view the pop-up window.
- In the pop-up window,
- click Plus icon to add the environmental variables.
- enter the required variables.
- click Submit.
2. Generating a Separate Environmental Variable File in the Test Cases Folder
Perform the following:
- In the Script Generation screen, click Generate Script button.
- A separate file named TestDataEnv.json is generated in the Test Cases folder which lists all the provided environmental variables at one place.
- A sample TestDataEnv.json file generated is as follows:
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