What is a Dictionary object in QTP.?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find array size in qtp?

586


How many types of parameters are there?

547


what the difference between shared repository and per action repository?

552


How to capture all the data of a webtable, weblist and combolist using QTP?

2857


Step 3&4 are repeated until an the object in recognised uniquely.

1526






www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1504


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1415


How do you convert manual test cases to automated test cases?

583


wt is the use of multiple questions in QTP

1680


How to run a test using quicktest professional?

532


How to check which add-ins are associated with a test in qtp?

587


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

577


What are advantages of test automation?

671


Explain how you can find the absolute value of the number in qtp?

648


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

614