Storing data in the Environment object

The Environment global object is one of UFT's reserved objects and it can be used to store and retrieve both runtime and design-time data.

Note

For a more detailed description of the Environment object, please see the next recipe Retrieving data from the Environment object.

How to do it...

Proceed with the following steps:

  1. To store a parameter at design time, navigate to File | Settings from the UFT menu and then select Environment. From the Variable type list box, select User-defined, as shown in the following screenshot:
    How to do it...
  2. Click on the + button on the right of your Environment window. The Add New Environment Parameter ...

Get Advanced UFT 12 for Test Engineers Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.