It is very general question related Computer Programming, my(!) the very general answer, would be: "use dictionary object, when you need find value by key".Dictionaries also can be iterated, have useful functions, like haskey, keys() etc. It can be used as a simulation of the object without using "Class" declaration, but we also can use a classes in VBscript. There is no magic.
On Sun, May 22, 2011 at 1:24 PM, <[email protected]> wrote:. > Thank you Roman for this generous and comprehensive answer. I read the > entire link output and some of the drill-downs...excellent explanation. I > particularly like the example of "phone book" or "dictionary". It seems the > answer generally is to readily associate a key to a value to save time over > space and should be used where values for a thing can change. > > This makes me wonder if a good use in QTP for a Dictionary object might be > where collections of attributes for all objects on a web page might be > somehow automatically stored for a unique object name and reference > that name with DP over OR identification to overcome the willy nilly ways > some devs keep changing object IDs in a .NET C## environment with no > standards. > > How complex would this be to accomplish. Would it be worth the > complexities? > > I'm thinking the benefit of this would be no matter what they change object > attributes to ... the scripts wouuld be able to recognize what buttons to > push and what lists to access, etc.....???? What do you think? > > > In a message dated 5/20/11 9:33:36 P.M. Eastern Daylight Time, > [email protected] writes: > > http://en.wikipedia.org/wiki/Associative_array > > On Fri, May 20, 2011 at 5:11 PM, nikhila <[email protected]> wrote: > >> >> when will we use Dictionary object in real life scenario, can Dictionary >> be multidimensional ?? >> >> Thanks, >> Nikhila >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en > > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
