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 TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
what is the difference between data driver & data driven and driver script?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
What are parameterizing tests?
The hybrid framework can be implemented for any application. Is it true?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
what is impact analysis on regression testing?
What is the difference between call to existing action and copy of an action?
How many types of parameters are available in quicktest professional?
Step 3&4 are repeated until an the object in recognised uniquely.
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
What are the methods of the TextStream object that are used for reading from a text file?
What is action?
Where you are storing your script?