Wednesday, April 15, 2020

Dictionary Object in UFT or Testcomplete

A Dictionary object contains a set of key-item pairs
The dictionary object has the following benefits when compared with arrays:
·         The size of the Dictionary object can be set dynamically.
·         Dictionaries surpass arrays in locating items by their content.
·         Dictionaries work better than arrays when accessing random elements frequently.
·         The Dictionary object has built-in methods and properties that allow users to manage the dictionary’s contents and keys.
·         When deleting an item from a Dictionary, the remaining items are automatically shifted up.
The only disadvantage of dictionaries when compared to arrays, is that they cannot be multidimensional.
Methods:
  1. Add
  2. Exists
  3. Items
  4. Keys
  5. Remove
  6. Removeall

Properties
  1. Count
  2. Item
  3. Key
  4. Comparemode

No comments:

Post a Comment