The Environment
object can be best described as a kind of Dictionary that holds pairs of keys and values. Unlike the native Dictionary, it has extended capacities such as the following:
UFT features that contain built-in variables, which can return useful values during runtime, such as
ActionName
,ActionIteration
,TestName
,TestIteration
,TestDir
, andOS
Defining test internal variables (that is, persistent) or external variables (see the following point)
Loading a set of variables from an external XML file, preset, or dynamically used during runtime
Automation Object Model (AOM) support, which enables the addition of internal variables dynamically before launching a test's run session
The scope of the object is global and is loaded automatically when UFT opens, as is true for all reserved objects