What are the available environment variable type(s)?
-
A. Built-in
-
B. User-defined
-
C. User-function
-
D. Built-in, User-defined
UFT/QTP supports two types of environment variables: Built-in variables (predefined by the tool) and User-defined variables (created by testers). Built-in variables include system information like test path, OS type, and test name. User-defined variables can be added manually and accessed programmatically.
To answer this question, let's go through each option to understand why it is correct or incorrect:
Option A) Built-in - This option is incorrect. Built-in environment variables are provided by the operating system or programming language and are not a type of environment variable.
Option B) User-defined - This option is correct. User-defined environment variables are created by the user and can be used to store custom values or settings.
Option C) User-function - This option is incorrect. User-function is not a type of environment variable. It may refer to a user-defined function in programming, but not to a type of environment variable.
Option D) Built-in, User-defined - This option is correct. Both built-in and user-defined environment variables are available types. Built-in environment variables are provided by the operating system or programming language, while user-defined environment variables are created by the user.
The correct answer is D. This option is correct because it includes both built-in and user-defined environment variables as available types.