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 ...

Get Advanced UFT 12 for Test Engineers Cookbook 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.