Chapter 11


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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.