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

What is the keyword view and expert view in qtp?

525


explain abt dyanamic changing object with example?

1899


what is clean sweep?

1881


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

621


Explain the difference between check point and output value?

492






What is object repository in qtp?

559


How does qtp identify objects in the application?

583


In qtp, how you can remove the spaces from string?

546


What are the properties you would use for identifying a browser and page when using descriptive programming?

627


How many types of actions are there in quicktest professional?

512


How can you identify the browser and its information using QTP script?

545


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1858


What are the flaws in water fall model and how to overcome it?

557


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1803


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1603