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

suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1323


How you calling actions in qtp?

624


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1427


Hybrid framework supports Descriptive programming. Is it true?

647


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2736






Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1600


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1902


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1565


How do you send email with attachment from outlook using qtp ?

559


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5928


What are the key points to create a framework in QTP for oracle forms?

1807


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1297


How to use descriptive programming?

605


In qtp, how you can get the last character from a string?

554


How to handle the exceptions using the recovery scenario manager in qtp?

562