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
What is the difference between byref and byval in qtp?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
How many types of object repository in qtp?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
How many scripts did you have?
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.
What are the general steps involved in the data driven framework?
Explain the difference between check point and output value?
What is smart identification in QTP?
what are the limitations of smart identification in qtp 9.0
Explain object spy in qtp.
What are the types of object repositories? Which one is you using?
what are the challenges you have faced while testing web based application using the automation tools ?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
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?