Implementing a custom reserved object

UFT can be extended with additional custom reserved objects. This is a feature that can be exploited to develop objects that are instantiated at the UFT's launch time, making the developer's work much more efficient and the code more concise. In this section, we will describe how to implement GlobalDictionary , which is to be used for data sharing among different Actions.

How to do it…

Proceed with the following steps:

  1. In Windows, navigate to Start | Run. Type regedit.exe and press Enter.
  2. In Registry Editor, search for the folder ReservedObjects. It should appear at HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\ReservedObjects\.
  3. Add a new key and name it GlobalDictionary.
  4. Add the ...

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.