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

The keyword-driven framework


Keyword-driven testing is also called table-driven testing or action-based testing. It is a software testing methodology.

Keyword-driven testing uses a spreadsheet to specify test cases in a specific format, usually in a table format. The functions are designed for each keyword. This keyword is stored in the column on a row of the table. For example, in the keyword-driven approach, each action has its corresponding function stored in the functional library. Driver scripts drive the entire flow, fetch the action, and call the corresponding function.

The keyword-driven testing approach

The keyword-driven approach is when the interaction of a user with an application is abstracted in the form of actions, and data is maintained in the external source.

Decomposition

The interaction of the user with the application is broken down to the basic elements (login, select flight …). In the keyword-driven approach, a keyword represents the business scenario that performs many...