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

What is synchronization point in QTP?

673


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?

2141


how to prepared for first for the first interview?

1794


How to add synchronisation points in qtp?

577


if our qtp vb Script may be Currepted then What we want do?

1483






hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1400


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4140


Explain the benefits of quick test pro(qtp)?

569


Explain the parameter in qtp?

577


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

542


What are the key elements available in test result window?

624


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1461


Is virtual object supported in low level recording mode?

622


What are advantages of test automation?

663


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1622