Set User-Defined Environment Variables

Q

How to Set User-Defined Environment Variables in UFT?

✍: FYIcenter.com

A

There are 3 ways to set up User-Defined Environment Variables in UFT:

1. Set up user-defined environment variables in test settings. Go to "Files > Settings > Environment > User-Defined". Then click the "+" icon to add new environment variables.

2. Set up user-defined environment variables by loading environment variable files. Go to "Files > Settings > Environment > User-Defined". Then check "Load variable and values from external file" option to load an environment variable file.

3. Set up user-defined environment variables by assigning value to Environment.Value(variable_name). Write the assignment statements as shown below to add new environment variables.

 

Format of UFT Environment Variable File

List of Built-in Environment Variables in UFT

Developing Test Script Code

⇑⇑ UFT (Unified Functional Testing) Tutorials

2018-01-24, 370👍, 0💬