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
What is synchronization point in QTP?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
how to prepared for first for the first interview?
How to add synchronisation points in qtp?
if our qtp vb Script may be Currepted then What we want do?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
Explain the benefits of quick test pro(qtp)?
Explain the parameter in qtp?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What are the key elements available in test result window?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
Is virtual object supported in low level recording mode?
What are advantages of test automation?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window