Book description
Over 60 practical recipes to help you accomplish automation tasks using UFT 12 and VBScript
In Detail
UFT (QTP) is a functional test automation tool by HP that supports a wide array of technologies for both GUI and API testing. Advanced UFT 12 for Test Engineers Cookbook will provide you with simple solutions to quite complex tasks and leverage your skills in programming with VBScript.
Unlock the full potential of UFT 12 with an introduction to its new features and functionality. Learn the industry's best-kept secrets such as how to enhance toolset capabilities, which you never thought possible. Learn how to extend UFT 12 by overriding methods, perform DB and XML checks, and handle unexpected dialogs. We also cover the topics of object identification using descriptive programming, classes, utility and reserved objects, Windows Scripting Host (WSH), and most importantly API testing and building testware frameworks. This book is an invaluable source of reference for test engineers with clear and powerful coding examples.
What You Will Learn
- Use code design patterns in test automation to improve maintenance
- Identify objects using Object Repository as well as with descriptive programming to achieve object identification at runtime
- Build an event handler to handle unexpected dialogs
- Use the objects and methods of the Windows Script Host (WSH)
- Build an automation framework that works for you
- Unleash the power of API and SOA testing
- Use and build UFT reserved objects
Table of contents
-
Advanced UFT 12 for Test Engineers Cookbook
- Table of Contents
- Advanced UFT 12 for Test Engineers Cookbook
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Data-driven Tests
- Introduction
- Creating a DataTable parameter
- Retrieving data from a DataTable
- Storing data in a DataTable
- Importing an Excel file to a test
- Exporting a DataTable
- Parameterizing Test Object properties
- Defining test cases using a DataTable
- Storing data in the Environment object
- Retrieving data from the Environment object
- Reading values from an INI file
- Using a configuration file to manage test environments
- Using a global dictionary for fast shared data access
- Using a global dictionary for fast shared code access
-
2. Testing Web Pages
- Introduction
- Checking whether page links are broken
- Deleting cookies
- Managing multiple browser windows
- Handling pop-up dialogs
- Downloading a file using XMLHttp
- Checking whether a website is up
- Uploading a file using FTP
- Identifying elements based on anchors
- Synchronizing a test with a web page loading
- Accessing web elements through DOM
- 3. Testing XML and Database
- 4. Method Overriding
- 5. Object Identification
- 6. Event and Exception Handling
- 7. Using Classes
-
8. Utility and Reserved Objects
- Introduction
- Using global variables (Environment)
- Customizing mouse operations (DeviceReplay)
- Managing processes (SystemUtil)
- Measuring time (MercuryTimers)
- Resolving file locations (PathFinder)
- Loading shared object repositories (RepositoriesCollection)
- Loading and creating XML documents (XMLUtil)
- Drawing a rectangle on the screen with Win32 API methods (Extern)
- Verifying binary file contents (FileCompare)
- Implementing a custom reserved object
- Using remote objects
- Utility statements
- 9. Windows Script Host
- 10. Frameworks
- A. Design Patterns
- Index
Product information
- Title: Advanced UFT 12 for Test Engineers Cookbook
- Author(s):
- Release date: November 2014
- Publisher(s): Packt Publishing
- ISBN: 9781849688406
You might also like
book
Mastering Mobile Test Automation
Master the full range of mobile automation and testing techniques to develop customized mobile automation solutions …
book
Apple Pro Training Series Final Cut Pro 6: Beyond the Basics
In this Apple-authorized training book, director and filmmaker Michael Wohl teaches advanced skills that editing professionals …
book
IBM DB2 9.7 Advanced Application Developer Cookbook
This cookbook is essential reading for every ambitious IBM DB2 application developer. With over 70 practical …
book
Microsoft® VBScript Step by Step
Get guidance from a well-known scripting expert—and teach yourself the fundamentals of Microsoft Visual Basic Scripting …