Book Image

Advanced UFT 12 for Test Engineers Cookbook

Book Image

Advanced UFT 12 for Test Engineers Cookbook

Overview of this book

Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


Method overriding is a feature of object-oriented programming languages such as C++, C#, and Java. It enables us to adopt a method or property inherited from a base class in order to address specific requirements of a class. In certain cases, overriding a method is necessary; for example, when a method in the base class is defined as abstract, or when an interface is implemented.

In UFT, the need to override a method may arise. The reasons can be diverse, from handling a customized version of a common control, to enriching the basic function, or even integrating the TO methods with an exception handling mechanism. As we will see in this chapter, it is also possible to add methods to a TO(s).