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

Using the Description object


The Description object is one of UFT's reserved objects, like the Environment and Reporter object. Basically, the Description object resembles a dictionary object with key-value pairs, which defines the properties and values by which the target TO or objects (see the Using child objects recipe), should be identified. Similar to the OR feature, the Description object also allows for regular expressions as property values. The following table shows regular expression samples of character property values:

User

To match character

\w

This represents a word character

\W

This represents a nonword character

\d

This represents a decimal digit

\D

This represents a nondecimal digit

\s

This represents a whitespace character

\S

This represents a nonwhitespace character

The Description object comes in handy in situations where the runtime object is dynamically built by the application, or when more complex criteria need to be applied to ascertain the...