Cover image for Designing and Implementing Test Automation Frameworks with QTP.
Designing and Implementing Test Automation Frameworks with QTP.
Title:
Designing and Implementing Test Automation Frameworks with QTP.
Author:
Bhargava, Ashish.
ISBN:
9781782171034
Personal Author:
Physical Description:
1 online resource (189 pages)
Contents:
Designing and Implementing Test Automation Frameworks with QTP -- Table of Contents -- Designing and Implementing Test Automation Frameworks with QTP -- Credits -- About the Author -- Acknowledgments -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Instant Updates on New Packt Books -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 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 -- 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 -- The Navigate and Learn toolbar -- Adding a test object using the OR Manager Add Object option -- Adding test objects to the local object repository from Active Screen -- Adding a test step -- Enhancing scripts -- Checkpoints -- Synchronization -- Exist statements -- Reporter objects -- The Reporter.RunStatus object -- Actions -- Purpose of actions -- Types of actions -- Error handling -- Parameterization -- Environment Variables -- Summary -- 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 -- 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 -- 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 -- 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 -- 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 -- Index.
Abstract:
A tutorial-based approach, showing basic coding and designing techniques to build test automation frameworks.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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: