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 ...
Get Agile Automation and Unified Funtional Testing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.