Book Image

Advanced UFT 12 for Test Engineers Cookbook

Book Image

Advanced UFT 12 for Test Engineers Cookbook

Overview of this book

Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 following values to the key:

    • ProgID of type REG_SZ (string value). Assign it the value of Scripting.Dictionary.

    • UIName of type REG_SZ (string value). Assign it the value of GlobalDic.

    • VisibleMode of type REG_DWORD (32-bit value). Assign it the value...