Book Image

Designing and Implementing Test Automation Frameworks with QTP

By : Ashish Bhargava
Book Image

Designing and Implementing Test Automation Frameworks with QTP

By: Ashish Bhargava

Overview of this book

<p>As software testing is maturing, the focus is shifting towards test automation. The key is to learn and grow skills in framework designing and start contributing to project organization goals.</p> <p>Through a helpful mix of conceptual and practical aspects, you will learn everything you need to know related to the implementation of frameworks using QTP. Through simple examples, you will gradually develop the skills needed to execute concepts and code blocks used to design and implement the test automation framework.</p> <p>This tutorial-based guide demonstrates an easy way to implement concepts to create a portable framework across the various versions of QTP. You will learn about the automation lifecycle and gradually develop technical concepts related to each phase. Within a short amount of time, you will be able to deal with challenges in test automation. "Designing and Implementing Test Automation Frameworks with QTP" uses a simple, yet elegant approach and gives the reader all the skills and knowledge they need to implement the framework.</p>
Table of Contents (15 chapters)
Designing and Implementing Test Automation Frameworks with QTP
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Automation Life Cycle and Automation Goals
Index

Regular expressions


A regular expression (abbreviated regex or regexp) is a sequence of text characters, some of which are understood to be meta characters with symbolic meaning and some of which have their literal meaning, that together automatically identify a given pattern.

A regular expression is very useful when the objects are dynamic in nature and we cannot store each and every object which follows a pattern in the OR. In the Flight Reservation application, we can open any existing order by the order number and send the fax. When the Fax window is opened, the title of the window contains the order number; this will cause an issue when we want to open the fax window with a different order number as the window is no longer the same. In this condition, we can use regular expression. Refer to the following screenshot; the identification property of the object is Fax Order No. 11. Here we convert the text property into a regular expression to identify the property as a pattern and not a...