Chapter 11

Dictionary

Test scripts often retrieve information from outside source such as AUT screen and excel files and store them in a variable or array. Alternatively, the data can also be stored in a dictionary object. The dictionary object functions like an associative array and stores value in key-item pairs. Every key has a unique item and no two keys can be same. In case of an array, array data is stored and retrieved using array index; however, in case of dictionary, the value of an item is retrieved using its key. Therefore, in situations where data need to be accessed using a unique name identifier, dictionary object can be used. A dictionary object can contain any data including objects and dictionary objects. For Each construct ...

Get Agile Automation and Unified Funtional Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.