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

Introduction to the modular framework


Modularity allows decomposing the components and/or functionality and recombines them. This approach is a design technique that emphasizes on separating the functionality of an AUT into independent, interconnected modules such that each module contains everything necessary to execute only one aspect of the desired functionality.

Achieving the modularity requires modularity at two different layers; one layer is test and the other layer is script. To create a modular framework, we need to decompose the test layer into manageable pieces based on their objectives. For example, common test libraries are separate from function libraries. At test level, we decompose the key libraries and resources into a structure to achieve the automation goals using appropriate design.

There are four distinct parts of the modular framework:

  • Script-level modularity

  • Test-level modularity

  • Resource structure

  • Framework design

Let's take the example of the Flight application; the entire...