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 the purpose of QTP?

2 Answers  


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

0 Answers  


Hai anyone please "Explain about Framework in QTP?"

0 Answers  


write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  


What is the extension of the recovery scenario file in qtp?

0 Answers  






If you entered into yahoo mail with your valid user name and password , then you will get " welcome , username " (for example you will see , “welcome, Krishna” ) text on the top of the Inbox page , how can you test the user name is correct or not using QTP?

3 Answers   CTS,


Hi Samrat, Thank u very much, what u said it is right.

0 Answers  


How to creating an output value using quicktest professional (qtp)?

0 Answers  


how can we handle errors other than using recovery scenerios in qtp

0 Answers  


How many add-ins comes by default with quicktest professional (qtp)?

0 Answers  


Can someone tel additonal features which has been included under QTP 9.0 which is not there in 8.2 version?

1 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,


Categories