Designing and Implementing Test Automation Frameworks with QTP

Designing and Implementing Test Automation Frameworks with QTP
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • A simple and easy demonstration of the important concepts will enable you to translate abstract ideas into practice
  • Each chapter begins with an outline and a brief statement of content to help the reader establish perspective
  • An alternative approach to developing generic components for test automation

Book Details

Language : English
Paperback : 160 pages [ 235mm x 191mm ]
Release Date : November 2013
ISBN : 1782171029
ISBN 13 : 9781782171027
Author(s) : Ashish Bhargava
Topics and Technologies : All Books, Enterprise Products and Platforms, Enterprise

Table of Contents

Chapter 1: Automation Life Cycle and Automation Goals
Chapter 2: Essentials of Automation
Chapter 3: Basic Building Blocks for Creating Frameworks
Chapter 4: Understanding and Creating Frameworks
Chapter 5: Deploying and Maintaining Frameworks
Chapter 6: DOM- and XPath-based Framework in Web Applications
Chapter 7: Capturing the Lessons Learned
  • Chapter 1: Automation Life Cycle and Automation Goals
    • The test automation life cycle
      • Feasibility study
      • Tool induction for automated testing
      • Defining a test automation strategy
      • Creating a automation test plan
      • Script design and development
      • Deployment, release, and maintenance
      • Tool selection
        • Capturing automation requirements
        • Developing a POC
        • Evaluating the tools
      • Tool selection criteria
      • Processes
      • Design, architecture, and documentation
      • Automation goals
        • Goals for test automation
        • Goals for framework design
        • Goals for design
        • Goals for script design
        • Setting quantifiable goals
      • Best practices
        • Choosing the most suitable tool for automation
        • Treating test automation as a development activity
        • Getting the right architecture
        • Ensuring relevant and up-to-date test data
        • Investing in team building and training
        • Conducting reviews and tests
    • Summary
    • Chapter 2: Essentials of Automation
      • About QTP
      • The QuickTest object model
      • Test objects
      • Object repositories
      • Record and replay
        • What happens when we record
        • What happens when we replay
      • Script development
        • Analyzing an application
        • Creating OR (adding test objects to OR)
          • Recording a test step
          • Adding a test object to OR
          • Creating an object description
          • Creating a test object using Define New Test Object
          • OR Manager Navigate and Learn and Add Object options
          • Adding test objects to the local object repository from Active Screen
        • Adding a test step
        • Enhancing scripts
          • Checkpoints
          • Synchronization
          • Reporter objects
          • Actions
          • Error handling
          • Parameterization
          • Environment Variables
      • Summary
      • Chapter 3: Basic Building Blocks for Creating Frameworks
        • VBScript – key features for creating code blocks
          • VBScript procedures
            • Subprocedures
            • Function procedures
        • Checkpoints
        • Output value
        • Synchronization
          • Dynamic synchronization
        • Descriptive programming
          • Static programming
          • Dynamic programming
        • Regular expressions
          • Regular expressions in descriptive programming
          • Regular expressions in checkpoints
          • Regular expressions in CheckProperty
        • Error handling
        • Recovery scenarios – an overview
        • Summary
        • Chapter 4: Understanding and Creating Frameworks
          • Programming with VBScript
            • Using VBScript
            • VBScript datatypes
            • Operators in VBScript
              • Adding examples of expressions
            • Control structures and loops
            • Using loops
              • The Do Loop
          • Introducing frameworks
            • The automation framework and types of framework
            • Record and replay
            • Advantages and disadvantages of linear a framework
          • Introduction to the data-driven framework
            • The FileSystemObject object model
          • Introduction to the modular framework
            • Structure
              • Advantages
            • Design
              • High cohesion and coupling
              • Decreasing coupling and increasing cohesion
              • Analyzing the application
              • Creating a design
              • Setting up an environment
              • Creating Object Repository
              • Creating test-level components
              • Creating script-level functions
              • Integrating design elements
              • Test the framework design
            • Advantages of modular frameworks
            • Challenges for modular frameworks
          • The keyword-driven framework
            • The keyword-driven testing approach
              • Decomposition
              • Recombination
              • The keyword-driven or test-plan driven method
              • Generic flow in keyword-driven approach
            • Advantages of the keyword-driven approach
              • Cost effectiveness
              • Reusability
              • Ease of maintenance
              • Ease of execution
            • Key challenges
          • The hybrid framework
            • Advantages of the hybrid framework
            • Key challenges
          • Business Process Testing
          • Application-independent framework
            • Advantages of the application-independent framework
            • Key challenges of the application-independent framework
          • Summary
          • Chapter 5: Deploying and Maintaining Frameworks
            • Predeployment
              • Debugging with QTP
                • Run to step
                • Debug from step
                • Run from step
                • Run from action
                • Debug from action
                • Run to action
                • Debugging a functional library
                • Reviewing the checklist for predeployment
              • Custom logs
                • Enabling logging
                • Disabling logs
                • Filtering logs
                • The test version versus the debug version
              • Deployment
            • Maintenance
              • Script/library maintenance
              • Automation test repository maintenance
                • The Maintenance Run mode
                • The Update Run mode
              • Enhancement
            • Summary
            • Chapter 6: DOM- and XPath-based Framework in Web Applications
              • Document Object Model
                • HTML DOM
                  • Node relationships – parents, children, and siblings
                • JavaScript and DOM
                  • Finding HTML elements
                  • Finding HTML elements by ID
                  • Finding HTML elements by tag name
                  • Finding HTML elements by name
                  • Finding HTML elements by className
                  • Changing the HTML content
                  • Changing the HTML attribute
                  • Changing the HTML style
                  • Responding to an event
                  • Creating new HTML elements
                  • Removing an existing HTML element
                • DOM and QTP
                  • Firing an event
              • Using XPath
                • XPath terminology
                • Selecting nodes
                • Predicates
                • Selecting unknown nodes
                • Selecting several paths
                • Axes in XPath
                • Locating a element using location path
                • Operators in XPath
              • Summary
              • Chapter 7: Capturing the Lessons Learned
                • Preparing for the lessons to be learned
                • Collecting and documenting learning
                  • Key challenges
                  • What went well
                  • What can be better
                • Best practices for collecting lessons learned
                  • Start capturing early
                  • Documentation and ensuring reusability
                • Discussing lessons learned
                • Storing and sharing lessons learned
                • Summary

                Ashish Bhargava

                Ashish Bhargava has over 10 years' experience in Information Technology. Working as a test lead, tester, and Java developer, he delivered many successful applications. He has experience in designing frameworks using various tools and languages. He has worked with HCL Technologies and Microsoft. He worked on QTP, Coded UI, and RFT, and has experience in VBScript, JavaScript, Java, and C#. He has experience in technically mentoring the junior team members to learn automation and test automation tools. He has experience in teaching automation and designing courses for test automation and manual testing. The author is the key
                contributor at

                Ashish has the following professional certifications:

                • HP Certified QTP Professional
                • ISTQB Certified
                • Certified Software Test Manager (CSTM)
                Sorry, we don't have any reviews for this title yet.

                Code Downloads

                Download the code and support files for this book.

                Submit Errata

                Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                Sample chapters

                You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                Frequently bought together

                Designing and Implementing Test Automation Frameworks with QTP +    (MCTS) Microsoft BizTalk Server (70-595) Certification and Assessment Guide: Second Edition =
                50% Off
                the second eBook
                Price for both: ₨576.80

                Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                What you will learn from this book

                • Understand the test automation lifecycle, as well as the goals that drive and guide its framework design
                • Grasp the basic features of QTP that help in creating frameworks
                • Learn about the various goals of each level of framework and how they drive the designing of the framework
                • Create basic building block supports
                • Understand the types of framework and how to design and use them
                • Use Javascript and HTMLDOM effectively
                • Capture lessons learnt in framework designing and share those experiences
                • Deploy and maintain frameworks
                • Build an XPath expression, locate the elements and perform an action on it

                In Detail

                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.

                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.

                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.


                A tutorial-based approach, showing basic coding and designing techniques to build test automation frameworks.

                Who this book is for

                If you are a beginner, an automation engineer, an aspiring test automation engineer, a manual tester, a test lead or a test architect who wants to learn, create, and maintain test automation frameworks, this book will accelerate your ability to develop and adapt the framework.

                Code Download and Errata
                Packt Anytime, Anywhere
                Register Books
                Print Upgrades
                eBook Downloads
                Video Support
                Contact Us
                Awards Voting Nominations Previous Winners
                Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software