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.


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 ...

Get Agile Automation and Unified Funtional Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.