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



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

Answer / 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

More QTP Interview Questions

Explain the Different types of QTP test assets and their extensions?

0 Answers  


diff between dim & redim ? in detailed? pls any one explain me?

1 Answers  


tell me QTP standards ?plz

0 Answers   Kanbay,


how and what kind of vb functions do us ein QTP?

2 Answers   Ordain Solutions,


Error handling

3 Answers   Wipro,






Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

0 Answers   Autodesk, EDS, Wipro,


What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?

1 Answers  


How to load the object repository at run time?

9 Answers   TCS,


What is the difference between driver-script and AOM-script?

2 Answers   IBM, Value Labs,


Can anybody give the script to addsheet, add column,add values under that column in the rows??

5 Answers   AZTEC,


How we can add actions in the test using QTP?

2 Answers  


with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?

3 Answers   Ordain Solutions,


Categories