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
explain abt dyanamic changing object with example?
What is Associate Repository in QTP 9.2 ?
Write a script to customize the test results in PDF and HTML format.
What are the different types of action?
What is difference between Recording time object identification and Run time (Execution) time.
What is the limitation to XML Checkpoints?
Step 3&4 are repeated until an the object in recognised uniquely.
what is supply chain management?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Will down time for server and content maintenance/upgrades be allowed? how much?
if numbers are always changing write a script for that
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
On what document base Descriptive programming is written if build is not yet ready ?
when will you do debug your script? and explain that process?
Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach