Using a global dictionary for recovery

A powerful technique to implement the direct invocation of a recovery procedure makes an ingenious use of a global (public) Dictionary object. The method involves the use of command wrappers, function pointers, and callback functions. If you are not familiar with such object-oriented design patterns and concepts, then it is recommended that you first read Chapter 7, Using Classes, where some basic concepts are outlined.

The idea of using a dictionary to implement function pointers was first raised in an article published on www.advancedqtp.com/ back in 2007. A Dictionary object is capable of storing data of any type, including objects and even other Dictionary objects, thus serving as a tree-like structure. ...

Get Advanced UFT 12 for Test Engineers Cookbook 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.