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
Explain the Different types of QTP test assets and their extensions?
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
How do Parameterization and Data-Driving relate to each other in QTP?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Are Shared ORs read-only?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
What is throw Object?
What is the basic concept of quicktest professional (qtp)?
what type of automation is follwed in the project?
can u please explain what is the exact difference between qtp8.2 and 9.0
How did you use regular expressions in QTP and also in WR?
How can I check if a environment variable exist or not?
Approach for Installation,comaptibility,system testing
How to write business scripts using object repository with different scenarios