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



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

Answer / 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

More QTP Interview Questions

how interviews will be on QTP?

0 Answers   Fidelity,


suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?

2 Answers   Wipro,


how do check the links in a webpage ?

7 Answers   Accenture, Wipro,


7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.

4 Answers  


How to merge the two object repositories

3 Answers   Wipro,






A web page has two butons with same properties and rotating in clockwise direction. how to click on any of the button?

2 Answers   Virtusa,


You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?

2 Answers   PanTerra,


Hi I am working with QTP.If I want to write a certification exams,Which one is the best one suggest me friends!!

2 Answers  


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


What are the enhancements u did after recording ur script?

1 Answers  


i need the licence key for QTP V9.5 can anyone help me on getting this?

140 Answers  


What are the ways you can synchronize?

0 Answers  


Categories