What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between byref and byval in qtp?

591


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

582


How many types of object repository in qtp?

612


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

706


How many scripts did you have?

1703






one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

1529


What are the general steps involved in the data driven framework?

563


Explain the difference between check point and output value?

500


What is smart identification in QTP?

634


what are the limitations of smart identification in qtp 9.0

1934


Explain object spy in qtp.

592


What are the types of object repositories? Which one is you using?

626


what are the challenges you have faced while testing web based application using the automation tools ?

600


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

614


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1348