What is a Dictionary object in QTP.?



What is a Dictionary object in QTP.?..

Answer / manjunathareddy

Dictionary object is similar to a typical array,
it uses unique key associated with every item,it helps you
call the item whenever required.

Example:-
Dim Dict
Set Dict=CreateObject("Scripting.Dictionary")
Dict.Add "A","Apple"
Dict.Add "B","Banana"
i=Dict.Items
j=Dict.Keys

For k= 0 to Dict.Count - 1
Msgbox j(k)&": "&i(k)
Next

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More QTP Interview Questions

What is Virtual Users?

1 Answers   Crea,


how to retrieve the xml file data through qtp. can anybody send script for this..

3 Answers   Synechron,


Explain script generated at the time of setting runtime property?

1 Answers  


In QTP , Test Director combination . what is the role of Test Director? How QTP Launching QTP in T.D ? If it is Winrunner possible. but QTP How it is possible?

1 Answers   IBM, TCS,


How to pass parameters into an action.Please explain me with examples

5 Answers  






How did you use regular expressions in QTP and also in WR?

0 Answers  


I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process.

3 Answers   TCS,


How many types of Test Plans are there...??

5 Answers  


how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables

6 Answers   iton, TATA,


Explain Descriptive Programming Types with Examples?

0 Answers  


Hi, i am mallishwari, i am veryn ew to testing but i have very much interest in testing. plse give me some guidence to get the job in testing. send me required documents and faqs to my personal id: mallishwari_urs@yahoo.co.in thans for advance.

2 Answers  


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


Categories