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

Script development


The steps for script development are as follows:

  1. Analyze Application Under Test.

  2. Create OR (add a test object manually).

  3. Add test steps.

  4. Enhance scripts by adding checkpoints, synchronization points, and so on.

  5. Create a structure by inserting functions, actions, loops, and control statements.

  6. Run and debug the test.

  7. Analyze results and report defects.

  8. Drag-and-drop object from OR to expert view.

We will discuss the preceding steps 4, 5, and 6 in later chapters.

Analyzing an application

Determine the development environment to load the relevant QuickTest add-ins and provide support for the objects in AUT. Analyze the flow and plan tests and actions accordingly. Decide the organization of the test, and ensure that the test and AUT are set to match the need of the automation.

Creating OR (adding test objects to OR)

When an object is added to an object repository, QuickTest performs the following actions:

  1. It identifies the test object class, which represents the learned object and creates...