To use the Dictionary object, you must first add a reserved object to the registry (in HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest professional\MicTest\ReservedObjects\) with ProgID=”Scripting.Dictionary”. For example:

HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest professional\MicTest\ReservedObjects\GlobalDictionary

After you have added the reserved Dictionary object to the registry and restarted QuickTest, you can add and remove values to the Dictionary in one action and retrieve the values in another action from the same test.

For example, if you want to access the departure date set in the SelectFlight action from the PurchaseTickets action, you can add the value of the DepartDate WebEdit object to the dictionary in the SelectFlight action as follows:

GlobalDictionary.RemoveAll

ClobalDictionary.Add “DateCheck”, DepartDate

Then you can retrieve the date from the PurchaseTickets action as follows:

Dim CompareDate

CompareDate=GlobalDictionary(“DateCheck”)