O'Reilly logo

Advanced UFT 12 for Test Engineers Cookbook by Jonathon Lee Wright, Meir Bar-Tal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using global variables (Environment)

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, and OS
  • 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required