• RSS
  • Facebook
  • Twitter

One Center for all the Testing Need. OneTestingCenter is for all, for all QA, for all Automation. Automation is easy, fun and enriching experience. Happy Learning and Happy Testing!

  • Access to All QA

    At OneTestingCenter, you find lots of books,articles,blogs and detailed guides. Everyone has access to QA. Happy Learning, Happy Testing.

  • Global Trainings

    All the QA/Auotmation trainings are available at OneTestingCenter. QA, Automation, QTP/UFT, Selenium, LoadRunner, QC/ALM, Appium...

  • Automation Learning Fun

    Technology is always evolving. Automation is always challenging. To be frank, Automation is fun, enthusiastic and enrching experience.

    QTP @ Dictionary Object
    0        What is Dictionary Object?
    0        Dictionary object consists of a collection of  elements called key-item pairs
    0        A Dictionary object is similar to an associative array or a typical array.
    0        The difference between a dictionary object and an array is that there is a unique key associated with every item of dictionary object.
    0        This unique key can help you in calling that item as and whenever required.
    0        A key is a unique entry: no two keys within a single Dictionary object can be the same. The item is just a value that goes along with a particular key. You can have as many duplicate items as you want, it’s only the keys that need to be unique

    0        Dictionary: Object that stores data key, item pairs.
    0        The Dictionary object functions as an associative array; that is, it stores values in key-item pairs.
    0        The Dictionary object is similar to a Collection objects
    0        You can access each item stored to a Dictionary object by using the For Each ...Next construct

    0        Example of Key _ Item Pair values
    0                        Police                    GAReddy            
    0                        Doctor                  ReddyGA            
    0                        Lawyer                GAR


    Method or Property
    Description
    Methods

    Add
    Adds a new item to the dictionary
    Exists
    Verifies whether a given key exists in the dictionary
    Items
    Returns an array with all the values in a dictionary
    Keys
    Returns an array with all the keys in a dictionary
    Remove
    Removes the item identified by the specified key
    RemoveAll
    Removes all the items in the dictionary
    Properties

    Count
    Returns the number of items in a dictionary
    Item
    Sets and returns an item for the specified key
    Key
    Changes an item's key

    Reactions:

    QTP @ VBScript > Dictionary Object

    QTP @ Dictionary Object
    0        What is Dictionary Object?
    0        Dictionary object consists of a collection of  elements called key-item pairs
    0        A Dictionary object is similar to an associative array or a typical array.
    0        The difference between a dictionary object and an array is that there is a unique key associated with every item of dictionary object.
    0        This unique key can help you in calling that item as and whenever required.
    0        A key is a unique entry: no two keys within a single Dictionary object can be the same. The item is just a value that goes along with a particular key. You can have as many duplicate items as you want, it’s only the keys that need to be unique

    0        Dictionary: Object that stores data key, item pairs.
    0        The Dictionary object functions as an associative array; that is, it stores values in key-item pairs.
    0        The Dictionary object is similar to a Collection objects
    0        You can access each item stored to a Dictionary object by using the For Each ...Next construct

    0        Example of Key _ Item Pair values
    0                        Police                    GAReddy            
    0                        Doctor                  ReddyGA            
    0                        Lawyer                GAR


    Method or Property
    Description
    Methods

    Add
    Adds a new item to the dictionary
    Exists
    Verifies whether a given key exists in the dictionary
    Items
    Returns an array with all the values in a dictionary
    Keys
    Returns an array with all the keys in a dictionary
    Remove
    Removes the item identified by the specified key
    RemoveAll
    Removes all the items in the dictionary
    Properties

    Count
    Returns the number of items in a dictionary
    Item
    Sets and returns an item for the specified key
    Key
    Changes an item's key