Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

7670


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

2141


what is the difference between data driver & data driven and driver script?

2807


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?

1068


What are parameterizing tests?

1091


The hybrid framework can be implemented for any application. Is it true?

1211


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

2437


what is impact analysis on regression testing?

2540


What is the difference between call to existing action and copy of an action?

1154


How many types of parameters are available in quicktest professional?

1061


Step 3&4 are repeated until an the object in recognised uniquely.

2074


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

2078


What are the methods of the TextStream object that are used for reading from a text file?

2340


What is action?

1051


Where you are storing your script?

1144