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

Predeployment


Once the testing of the framework is complete and the bugs have been raised, we will start with debugging. This process tries to find what went wrong in the framework by looking at the following:

  • How it failed

  • Where it failed

  • How to fix the bugs

Plan the debugging from the design phase and implement it by developing custom and error logs. Provide the mechanism to filter, enable, and disable the logs and features. This helps to debug the scripts both in the development and maintenance phases of framework designing. QTP provides various options for debugging scripts, actions, and functional libraries.

Debugging with QTP

QTP provides various ways to debug scripts that are a part of functional libraries or actions. To debug the script, execute it from the start to a certain step in the script or from a certain step to the end of the script or action. The following section describes the various techniques provided by QTP to debug the script. Ensure that the application is open at the...