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