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

How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

0 Answers   TCS,


What are private functions in QTP? How they can be called from the function library?

0 Answers   HCL,


why is execute file used.

1 Answers   Deloitte,


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  


I have one question as HP QTP is concern, Please send your answers..... Can we do testing of any application without using any of the framework which are we used in QTP tool. If yes then how it can be possible in the HP QTP tool. -- Regards

5 Answers   ABC,






HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM

8 Answers   Infosys, TCS,


What is deference between normal QTP testing and descriptive programming?

4 Answers   Polaris,


Difference between image checkpoint and bitmap checkpoint

2 Answers  


write a vb script to print even numbers from 1-50?

6 Answers   Kclink Technologies, Logica CMG,


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  


how to write xml output check point bu useing descriptive programing .means without useing output check point

0 Answers  


QTP script is not working on other's machine..

0 Answers  


Categories