Monday

QTP - Register Global Dictionary in REGISTRY

Ref: SQAforums
For memory saving dictionary object you can save in registory like the following options


When you want to share data between different actions in a test, dictionary object can be used. To do this you should create a reserved test object for the Dictionary object. Here is a process to set up a reserved dictionary object. [Source]

1.Open Window’s registry by opening a Run window and entering regedit.
2.Navigate to HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\ReservedObjects.
3.Create a new key (folder) named GlobalDictionary by right-clicking on the ReservedObjects key and selecting New -> Key.
4.Under the new key, create a String value named ProgID by right-clicking on GlobalDictionary and selecting New -> String Value.
5.Assign “Scripting.Dictionary” to the new ProgID string value by right-clicking on ProgID and selecting “Modify.”
6.If QTP window is already open you need to close and restart it.
7.Now to check whether dictionary object was installed successfully in registry, simple write GlobalDictionary. (don’t forget the dot) and you should see a drop-down containing all methods and properties associated with dictionary object

No comments:

Post a Comment