O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17

Environment Variables

Environment variables in UFT are similar to global variables in other programming languages. These variables are used to define AUT login details, application URL, database connectivity details, etc. These variables can be accessed across any test script. The values of these variables remain unchanged unless it is modified programmatically.

WHEN TO USE ENVIRONMENT VARIABLES

The purpose of using environment variables is to ensure that the test script can be executed against multiple environments without any code change. For example, if the same test script needs to be run against different databases then only the database environment variable values need to be changed. In addition, if it is required to test the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required