Updating Environmental Variables and Generating a Separate File

Modified on Thu, 8 Aug at 10:35 AM

TABLE OF CONTENTS

1. Overview

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:

  1. In the Script Generation screen, navigate to the side panel by clicking the arrow in the lower-right of the page. 
  2. Click the Environmental Variables button to view the pop-up  window.
  3. In the pop-up window, 
    1. click Plus icon to add the environmental variables.
    2. enter the required variables.
    3. click Submit.


2. Generating a Separate Environmental Variable File in the Test Cases Folder

       Perform the following:

  1. In the Script Generation screen, click Generate Script button.
  2. A separate file named TestDataEnv.json is generated in the Test Cases folder which lists all the provided environmental variables at one place.
  3. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article