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
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
How you calling actions in qtp?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
Hybrid framework supports Descriptive programming. Is it true?
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?
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
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
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
How do you send email with attachment from outlook using qtp ?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
What are the key points to create a framework in QTP for oracle forms?
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
How to use descriptive programming?
In qtp, how you can get the last character from a string?
How to handle the exceptions using the recovery scenario manager in qtp?