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
How to check which add-ins are associated with a test in qtp?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
Do you know how to connect database? Can you tell me the procedures?
give me the code to save all messages of inbox of gmail into a folder and notepad
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is the basic concept of quicktest professional?
How to create Reusable and Multiple Actions?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Through array we can execute the testcase how ? give me example
How do you create new test sets in td?
What the differences are and best practical application of Object Repository?
Is it possible to call from one action to another action in qtp?
What are the different recording modes and how do they work?
Is it possible to merge two object repository files in qtp?
What is object spy in quicktest professional (qtp)?