What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

Answer Posted / pushkar1206

Dictionary object is similar to array to store variable value with key. To share data in different actions in a test, we can use dictionary object. In DO, we are not restricted to use keys as numeric similar to array.

Fetch all items:

Set obj=createobject("scripting.dictionary")
obj.Add "company","india"
obj.Add "company2","USA"
For each i in obj
msgbox obj.item(i)
Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check which add-ins are associated with a test in qtp?

826


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

837


Do you know how to connect database? Can you tell me the procedures?

748


give me the code to save all messages of inbox of gmail into a folder and notepad

1821


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

767


What is the basic concept of quicktest professional?

768


How to create Reusable and Multiple Actions?

1913


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

784


Through array we can execute the testcase how ? give me example

1611


How do you create new test sets in td?

716


What the differences are and best practical application of Object Repository?

825


Is it possible to call from one action to another action in qtp?

793


What are the different recording modes and how do they work?

826


Is it possible to merge two object repository files in qtp?

830


What is object spy in quicktest professional (qtp)?

726