O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required