Q T Users Guide 9.2

236,695 views
236,621 views

Published on

User guide for Quick Test Professional version 9.2

Published in: Business, Technology
7 Comments
7 Likes
Statistics
Notes
No Downloads
Views
Total views
236,695
On SlideShare
0
From Embeds
0
Number of Embeds
128
Actions
Shares
0
Downloads
3,489
Comments
7
Likes
7
Embeds 0
No embeds

No notes for slide

Q T Users Guide 9.2

  1. 1. Mercury QuickTest Professional User’s Guide Version 9.2 Document Release Date: February 26, 2007
  2. 2. Mercury QuickTest Professional User’s Guide, Version 9.2 This document, and the accompanying software and other documentation, is protected by U.S. and international copyright laws, and may be used only in accordance with the accompanying license agreement. Features of the software, and of other products and services of Mercury Interactive Corporation, may be covered by one or more of the following patents: United States: 5,511,185; 5,657,438; 5,701,139; 5,870,559; 5,958,008; 5,974,572; 6,137,782; 6,138,157; 6,144,962; 6,205,122; 6,237,006; 6,341,310; 6,360,332, 6,449,739; 6,470,383; 6,477,483; 6,549,944; 6,560,564; 6,564,342; 6,587,969; 6,631,408; 6,631,411; 6,633,912; 6,694,288; 6,738,813; 6,738,933; 6,754,701; 6,792,460 and 6,810,494. Australia: 763468 and 762554. Other patents pending. All rights reserved. U.S. GOVERNMENT RESTRICTED RIGHTS. This Software Documentation is a “commercial item” as defined at 48 C.F.R. 2.101 (October 1995). In accordance with 48 C.F.R. 12.212 (October 1995), 48 C.F.R. 27.401 through 27.404 and 52.227-14 (June 1987, as amended) and 48 C.F.R. 227.7201 through 227.7204 (June 1995), and any similar provisions in the supplements to Title 48 of the C.F.R. (the “Federal Acquisition Regulation”) of other entities of the U.S. Government, as applicable, all U.S. Government users acquire and may use this Documentation only in accordance with the restricted rights set forth in the license agreement applicable to the Computer Software to which this Documentation relates. Mercury, Mercury Interactive, the Mercury logo, the Mercury Interactive logo, LoadRunner, WinRunner, SiteScope and TestDirector are trademarks of Mercury Interactive Corporation and may be registered in certain jurisdictions. The absence of a trademark from this list does not constitute a waiver of Mercury's intellectual property rights concerning that trademark. All other company, brand and product names may be trademarks or registered trademarks of their respective holders. Mercury disclaims any responsibility for specifying which marks are owned by which companies or which organizations. Mercury provides links to external third-party Web sites to help you find supplemental information. Site content and availability may change without notice. Mercury makes no representations or warranties whatsoever as to site content or availability. Mercury Interactive Corporation 379 North Whisman Road Mountain View, CA 94043 Tel: (650) 603-5200 Fax: (650) 603-5300 http://www.mercury.com © 1992 - 2007 Mercury Interactive Corporation, All rights reserved If you have any comments or suggestions regarding this document, please send them by e-mail to documentation@mercury.com. QTPUG9.2/01
  3. 3. 3 Table of Contents Welcome to This Guide .......................................................................17 How This Guide Is Organized .............................................................18 Who Should Read This Guide .............................................................20 QuickTest Professional Online Documentation .................................20 Additional Online Resources...............................................................22 Documentation Updates .....................................................................23 Typographical Conventions................................................................24 PART I: INTRODUCING QUICKTEST PROFESSIONAL Chapter 1: Introduction ......................................................................27 Testing with QuickTest........................................................................28 Understanding the Testing Process.....................................................30 Programming in the Expert View........................................................34 Understanding Functions and Function Libraries ..............................34 Managing the Testing Process Using Quality Center .........................35 Understanding Business Process Testing.............................................36 Setting Required Access Permissions...................................................37 Using the Sample Site..........................................................................38 Modifying License Information ..........................................................38 Updating the QuickTest Software .......................................................39
  4. 4. Table of Contents 4 Chapter 2: QuickTest at a Glance .......................................................41 Starting QuickTest ...............................................................................42 QuickTest Window..............................................................................44 Keyword View......................................................................................47 Expert View .........................................................................................49 Function Library..................................................................................50 Active Screen .......................................................................................51 Information Pane ................................................................................52 Missing Resources Pane.......................................................................53 Data Table............................................................................................54 Debug Viewer Pane..............................................................................54 QuickTest Window Layout..................................................................55 Working With Multiple Documents...................................................63 Using QuickTest Commands...............................................................65 Browsing the QuickTest Professional Program Folder ........................87 Viewing Product Information .............................................................91 Chapter 3: Understanding the Test Object Model.............................95 About Understanding the Test Object Model.....................................95 Applying the Test Object Model Concept ..........................................99 Viewing Object Properties and Methods Using the Object Spy .......104 PART II: CREATING TESTS Chapter 4: Designing Tests...............................................................111 About Designing Tests.......................................................................112 Planning and Preparing to Create a Test ..........................................113 Creating a Test Using the Keyword-Driven Methodology................114 Recording a Test ................................................................................120 Understanding Your Recorded Test ..................................................124 Choosing the Recording Mode .........................................................125 Enhancing Your Test .........................................................................134 Managing Your Test ..........................................................................135
  5. 5. Table of Contents 5 Chapter 5: Working with the Keyword View....................................143 About Working with the Keyword View...........................................144 Understanding the Keyword View ....................................................145 Understanding the QuickTest Recorded Object Hierarchy...............150 Adding a Standard Step to Your Test ................................................152 Adding Other Types of Steps to Your Test ........................................165 Modifying the Parts of a Step............................................................168 Working with Comments .................................................................168 Managing Action Steps......................................................................169 Using Keyboard Commands in the Keyword View ..........................172 Defining Keyword View Display Options .........................................172 Viewing Properties of Step Elements in the Keyword View..............178 Working with Breakpoints in the Keyword View .............................178 Chapter 6: Working with Test Objects .............................................181 About Working with Test Objects.....................................................182 Understanding Object Repository Types ..........................................183 Understanding the Object Repository Window................................188 Viewing and Modifying Test Object Properties ................................195 Mapping Repository Parameter Values .............................................218 Adding Objects to the Object Repository..........................................222 Defining New Test Objects................................................................233 Copying, Pasting, and Moving Objects in the Object Repository....235 Deleting Objects from the Object Repository...................................238 Locating Objects................................................................................239 Working with Test Objects During a Run Session ............................246 Managing Shared Object Repository Associations............................247 Exporting Local Objects to an Object Repository.............................250 Chapter 7: Working with the Active Screen .....................................253 About Working with the Active Screen.............................................253 Increasing or Decreasing the Active Screen Information Saved with a Test...........................................................................255 Changing the Active Screen ..............................................................257 Tips for Improving Active Screen Performance ................................258 Chapter 8: Understanding Checkpoints ...........................................259 About Understanding Checkpoints ..................................................259 Adding Checkpoints to a Test ...........................................................261 Understanding Types of Checkpoints...............................................262
  6. 6. Table of Contents 6 Chapter 9: Checking Tables ..............................................................267 About Checking Tables .....................................................................267 Creating a Table Checkpoint ............................................................268 Understanding the Table Checkpoint Properties Dialog Box...........272 Checking Table Content ...................................................................273 Checking Table Properties.................................................................283 Modifying a Table Checkpoint .........................................................286 Chapter 10: Checking Text ...............................................................289 About Checking Text ........................................................................289 Creating a Text Checkpoint ..............................................................291 Creating a Text Area Checkpoint......................................................292 Understanding the Text / Text Area Checkpoint Properties Dialog Box.....................................................................................295 Modifying a Text or Text Area Checkpoint ......................................305 Creating a Standard Checkpoint for Checking Text.........................305 Chapter 11: Checking Object Property Values .................................309 About Checking Object Property Values ..........................................309 Creating Standard Checkpoints ........................................................310 Understanding the Checkpoint Properties Dialog Box ....................312 Understanding the Image Checkpoint Properties Dialog Box.....................................................................................316 Modifying Checkpoints.....................................................................318 Chapter 12: Checking Bitmaps .........................................................319 About Checking Bitmaps ..................................................................319 Checking a Bitmap ............................................................................320 Modifying a Bitmap Checkpoint ......................................................327 Chapter 13: Checking Databases......................................................331 About Checking Databases................................................................331 Creating a Check on a Database .......................................................332 Understanding the Database Checkpoint Properties Dialog Box.....337 Modifying a Database Checkpoint....................................................346 Chapter 14: Checking XML ...............................................................347 About Checking XML........................................................................348 Creating XML Checkpoints...............................................................350 Updating the XML Hierarchy for XML Test Object Operation Checkpoints (for WebService Test Objects Only).......368 Modifying XML Checkpoints............................................................376 Reviewing XML Checkpoint Results.................................................376 Using XML Objects and Methods to Enhance Your Test .................377
  7. 7. Table of Contents 7 Chapter 15: Configuring Values........................................................379 About Configuring Values.................................................................379 Configuring Constant and Parameter Values ...................................380 Understanding and Using Regular Expressions ................................386 Defining Regular Expressions.........................