qt users guide

1854
HP QuickTest Professional Software Version: 11.00 User Guide Document Release Date: October 2010 Software Release Date: October 2010

Upload: madhu1241

Post on 05-Dec-2014

1.972 views

Category:

Education


0 download

DESCRIPTION

QTP user guide

TRANSCRIPT

  • 1. HP QuickTest ProfessionalSoftware Version: 11.00User GuideDocument Release Date: October 2010Software Release Date: October 2010
  • 2. Legal NoticesWarrantyThe only warranties for HP products and services are set forth in the express warrantystatements accompanying such products and services. Nothing herein should be construed asconstituting an additional warranty. HP shall not be liable for technical or editorial errors oromissions contained herein.The information contained herein is subject to change without notice.Restricted Rights LegendConfidential computer software. Valid license from HP required for possession, use or copying.Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer SoftwareDocumentation, and Technical Data for Commercial Items are licensed to the U.S.Government under vendors standard commercial license.Copyright Notices 1992 - 2010 Hewlett-Packard Development Company, L.P.Trademark NoticesAdobe and Acrobat are trademarks of Adobe Systems Incorporated.Intel, Pentium, and Intel Xeon are trademarks of Intel Corporation in the U.S. andother countries.Java is a US trademark of Sun Microsystems, Inc.Microsoft, Windows, Windows NT, and Windows XP are U.S registered trademarks ofMicrosoft Corporation.Oracle is a registered US trademark of Oracle Corporation, Redwood City, California.Unix is a registered trademark of The Open Group.SlickEdit is a registered trademark of SlickEdit Inc.2
  • 3. Documentation UpdatesThe title page of this document contains the following identifying information: Software Version number, which indicates the software version. Document Release Date, which changes each time the document is updated. Software Release Date, which indicates the release date of this version of the software.To check for recent updates, or to verify that you are using the most recent edition of adocument, go to: http://h20230.www2.hp.com/selfsolve/manualsThis site requires that you register for an HP Passport and sign-in. To register for an HPPassport ID, go to: http://h20229.www2.hp.com/passport-registration.htmlOr click the New users - please register link on the HP Passport login page.You will also receive updated or new editions if you subscribe to the appropriate productsupport service. Contact your HP sales representative for details. 3
  • 4. SupportVisit the HP Software Support web site at: http://www.hp.com/go/hpsoftwaresupportThis web site provides contact information and details about the products, services, andsupport that HP Software offers.HP Software online support provides customer self-solve capabilities. It provides a fast andefficient way to access interactive technical support tools needed to manage your business. Asa valued support customer, you can benefit by using the support web site to: Search for knowledge documents of interest Submit and track support cases and enhancement requests Download software patches Manage support contracts Look up HP support contacts Review information about available services Enter into discussions with other software customers Research and register for software trainingMost of the support areas require that you register as an HP Passport user and sign in. Manyalso require a support contract. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.htmlTo find more information about access levels, go to: http://h20230.www2.hp.com/new_access_levels.jsp4
  • 5. Table of Contents Welcome to the HP QuickTest Professional User Guide.......................................................................................33 HP QuickTest Professional User Guide Overview ...............................33 How Do I Find the Information That I Need? ....................................34 Documentation Library Contents.......................................................36 Additional Online Resources...............................................................40P A R T I : I N T R O D U C IN G Q U I C K T E S T PR O F E S S I O N A L Chapter 1: QuickTest Introduction .....................................................43 QuickTest Professional Overview ........................................................44 Testing Process Overview ....................................................................45 Testing Process Workflow ...................................................................46 Additional Testing Capabilities and Tools ..........................................54 Integration with Other HP Products ...................................................55 QuickTest Program Management........................................................59 Chapter 2: QuickTest at a Glance........................................................63 Concepts QuickTest Main Window Overview ....................................................64 QuickTest Panes...................................................................................69 Tasks How to Start QuickTest .......................................................................78 5
  • 6. Table of Contents Reference QuickTest Main Window - User Interface...........................................79 QuickTest Commands .........................................................................82 QuickTest Professional Program Folder Structure.............................106 Start Page ...........................................................................................111 Add-in Manager Dialog Box ..............................................................113 About QuickTest Professional Dialog Box.........................................117 Product Information Window ..........................................................119 Troubleshooting and Limitations - QuickTest Program Management .................................................................................121P A R T I I : W O R K I N G W IT H T E S T O B J E C T S Chapter 3: The Test Object Model....................................................125 Concepts Test Object Model - Overview ..........................................................126 How QuickTest Applies the Test Object Model Concept..................130 Object Repository Types - Overview .................................................137 Deciding Whether to Use Local or Shared Object Repositories........140 Tasks How to Use the Object Spy to View Object Properties and Operations or Add an Object to a Repository ..............................144 Reference Comparison of Object Repository Window and Object Repository Manager ..........................................................147 Object Identification Process Workflow ...........................................149 Object Spy Dialog Box.......................................................................151 Object Selection Dialog Box..............................................................155 Tips for Using the Pointing Hand .....................................................157 Troubleshooting and Limitations - Object Spy.................................158 Chapter 4: Managing Test Objects in Object Repositories ..............159 Concepts Adding and Deleting Test Objects in a Local or Shared Object Repository..............................................................160 Guidelines for Copying, Pasting, and Moving Objects ....................163 Locating Objects................................................................................165 Maintaining Identification Properties - Overview ............................167 Visual Relation Identifiers .................................................................1746
  • 7. Table of ContentsTasksHow to Add a Test Object to an Object Repository ..........................176How to Copy, Paste, Move, or Delete Objects in the Object Repository..........................................................................180How to Locate an Object in an Object Repository ...........................183How to Maintain Test Objects in Object Repositories ......................184How to Define a Visual Relation Identifier for a Specific Test Object - Use-Case Scenario ....................................................190ReferenceAdd Properties Dialog Box.................................................................197Define New Test Object Dialog Box ..................................................200Define Object Filter Dialog Box ........................................................202Find and Replace Dialog Box ............................................................206Ordinal Identifier Dialog Box............................................................208Visual Relation Identifier Dialog Box................................................210Troubleshooting and Limitations - Managing Test Objects .............217Chapter 5: Working with Your Tests Object Repositories ...............219ConceptsObject Repository Window - Overview.............................................220Exporting Local Objects to a Shared Object Repository ...................221Local Copies of Objects from Shared Object Repositories ...............222Repository Parameter Value Mappings .............................................223Working with Test Objects During a Run Session ............................225TasksHow to Export Local Objects to a Shared Object Repository............226How to Copy an Object to the Local Object Repository ..................227How to Modify Identification Properties During a Run Session ......228ReferenceAssociate Repositories Dialog Box .....................................................229Map Repository Parameters Dialog Box ............................................232Object Properties Dialog Box ............................................................234Object Repository Window ...............................................................237Troubleshooting and Limitations - Object Repositories ...................247 7
  • 8. Table of Contents Chapter 6: Shared Object Repositories.............................................249 Concepts Shared Object Repositories Overview ...............................................250 Considerations for Working with Shared Object Repositories .........255 Tasks How to Manage Shared Object Repositories .....................................258 How to Manage Objects in Shared Object Repositories....................263 Reference Object Repository Manager Main Window ......................................266 Manage Repository Parameters Dialog Box ......................................278 Chapter 7: Configuring Object Identification ..................................283 Concepts Object Identification Configuration - Overview...............................284 Smart Identification ..........................................................................292 Test Object Mapping for Unidentified or Custom Classes ...............299 Tasks How to Configure Object Identification for a Test Object Class ......300 How to Manage Identification Properties of a Test Object Class .....301 How to Map an Unidentified or Custom Class to a Standard Windows Class ..............................................................................303 Reference Object Identification Dialog Box ......................................................304 Object Mapping Dialog Box ..............................................................310 Smart Identification Properties Dialog Box ......................................312 Chapter 8: Object Repository Comparison Tool...............................315 Concepts Object Repository Comparison Tool Overview ................................316 Tasks How to Compare Two Object Repositories .......................................318 Reference Object Repository Comparison Tool Main Window ........................320 New Comparison Dialog Box ............................................................3358
  • 9. Table of Contents Chapter 9: Object Repository Merge Tool........................................337 Concepts Object Repository Merge Tool Overview ..........................................338 Object Conflicts.................................................................................340 Tasks How to Merge Two Shared Object Repositories ................................344 How to Update a Shared Object Repository From a Local Object Repository ................................................................347 Reference New Merge Dialog Box ......................................................................350 Object Repository Merge Tool Main Window ..................................352 Settings Dialog Box (Object Repository Merge Tool)........................368 Object Repository Merge Tool - Multiple Merge Window................374 Update from Local Repository Dialog Box........................................378P A R T I I I : D E S I G N IN G T E S T S Chapter 10: Test Creation Overview.................................................383 Concepts Methodologies for Creating Tests .....................................................384 Enhancing Your Tests........................................................................387 Sample Test........................................................................................389 Relative Paths in QuickTest ...............................................................391 Portable Copies of Tests ....................................................................395 Opening and Saving Tests with Locked Resources ...........................396 Tasks How to Perform File Operations on Test Files ..................................398 9
  • 10. Table of Contents Reference Open Test Dialog Box........................................................................401 Open Dialog Box ............................................................406 Save Test Dialog Box .........................................................................412 Save Dialog Box..............................................................417 Save Test with Resources Dialog Box ................................................422 Export to Zip File Dialog Box ............................................................426 Import from Zip File Dialog Box .......................................................427 Print Dialog Box ................................................................................428 Troubleshooting and Limitations - Opening and Saving Testing Documents .......................................................................430 Chapter 11: Test Creation - Keyword-Driven Methodology ............435 Concepts Keyword-Driven Methodology - Overview .......................................436 Test a Flight Application Using the Keyword-Driven Methodology - Use-Case Scenario ................................................446 Tasks How to Create a Test Using the Keyword-Driven Methodology ......455 Chapter 12: Test Creation - Recording Mechanism .........................463 Concepts Recording Tests - Overview ...............................................................464 Recording Modes ...............................................................................467 Tasks How to Record a Test Using Normal Recording Mode .....................470 How to Record a Test Using Analog Recording ................................473 How to Record a Test Using Low Level Recording............................474 Reference Analog Recording Settings Dialog Box .............................................476 Record and Run Settings Dialog Box.................................................479 Troubleshooting and Limitations - Recording Tests.........................48110
  • 11. Table of ContentsChapter 13: Keyword View ...............................................................483ConceptsKeyword View Overview ...................................................................484Comments in the Keyword View ......................................................486Conditional and Loop Statements in the Keyword View .................486Standard Steps After a Conditional or Loop Block ...........................487TasksHow to Add a Standard Step to Your Test.........................................487How to Add a Standard Step After a Conditional or Loop Block ....................................................................................493How to Move an Action or Step........................................................494How to Delete a Step .........................................................................496How to Navigate in the Keyword View and Other Tips ...................497How to Insert and Remove Breakpoints in the Keyword View ........501How to View Properties of Step Elements in the Keyword View ......502ReferenceKeyboard Shortcuts in the Keyword View ........................................503Keyword View User Interface ............................................................504Columns Tab (Keyword View Options Dialog Box)..........................508Fonts and Colors Tab (Keyword View Options Dialog Box).............511Select Test Object Dialog Box............................................................513Password Encoder Tool......................................................................519Troubleshooting and Limitations - Keyword View...........................520Chapter 14: Actions...........................................................................521ConceptsActions Overview ..............................................................................523Action Types ......................................................................................525Action and Test Iterations Using the Data Table ..............................526Calls to Existing Actions and Copies of Actions ...............................529Action Parameters..............................................................................531Sharing Action Information ..............................................................533Action Syntax in the Expert View .....................................................535Considerations for Working with Actions ........................................538TasksHow to Use Actions in Your Test ......................................................542How to Nest Actions - Use-Case Scenario .........................................547How to Use Action Parameters - Use-Case Scenario .........................548 11
  • 12. Table of Contents Reference Action Call Properties Dialog Box.....................................................550 Action Properties Dialog Box ............................................................557 Action Toolbar in the Keyword View................................................576 Insert Call to New Action Dialog Box ...............................................578 Rename Action Dialog Box ...............................................................580 Select Action Dialog Box ...................................................................582 Split Action Dialog Box .....................................................................585 Troubleshooting and Limitations - Actions ......................................587PART IV: ENHANCING TESTS Chapter 15: Checkpoints Overview ..................................................591 Concepts Checkpoints Overview ......................................................................592 Checkpoint Types..............................................................................593 Tasks How to Insert a Checkpoint Step in a Test .......................................598 Reference Add Existing Checkpoint Dialog Box ...............................................601 Troubleshooting and Limitations - Creating Checkpoints...............603 Chapter 16: Standard Checkpoints...................................................605 Concepts Standard Checkpoints Overview.......................................................606 Tasks How to Create or Modify a Standard Checkpoint Step ....................607 Reference Checkpoint Properties Dialog Box ....................................................609 Image Checkpoint Properties Dialog Box .........................................615 Chapter 17: Bitmap Checkpoints ......................................................619 Concepts Bitmap Checkpoints Overview .........................................................620 Fine-Tuning the Bitmap Comparison ...............................................62112
  • 13. Table of ContentsTasksHow to Create or Modify a Bitmap Checkpoint Step .......................624ReferenceBitmap Checkpoint Properties Dialog Box .......................................626Chapter 18: Table Checkpoints.........................................................635ConceptsTable Checkpoints Overview ............................................................636TasksHow to Create or Modify a Table Checkpoint Step ..........................637ReferenceTable Checkpoint Properties Dialog Box (Table Content Tab).........639Table Checkpoint Properties Dialog Box (Properties Tab)................649Define/Modify Row Range Dialog Box .............................................652Chapter 19: Text Checkpoints...........................................................655ConceptsChecking Text Overview ...................................................................656TasksHow to Create or Modify a Text or Text Area Checkpoint Step .......657ReferenceText / Text Area Checkpoint Properties Dialog Box .........................660Chapter 20: Database Checkpoints...................................................673ConceptsDatabase Checkpoints Overview.......................................................674TasksHow to Create or Modify a Database Checkpoint Step ....................676 13
  • 14. Table of Contents Reference Database Checkpoint Properties Dialog Box ....................................679 Connect to Database Using ODBC Page (Database Query Wizard) ..............................................................689 Specify SQL Statement Page (Database Query Wizard).....................691 Troubleshooting and Limitations - Database Checkpoints ..............692 Chapter 21: XML Checkpoints ..........................................................693 Concepts XML Checkpoints - Overview ...........................................................694 XML Checkpoint Types.....................................................................696 Using XML Objects and Methods to Enhance Your Test .................697 Tasks How to Create or Modify an XML Checkpoint Step ........................698 How to Update the XML Hierarchy for XML Test Object Operation Checkpoints (WebService Test Objects Only) ..............................700 Reference XML Checkpoint Properties Dialog Box ...........................................703 Edit XML as Text Dialog Box ............................................................710 XML Source Selection - Checkpoint / Output Value Properties Dialog Box.....................................................................................712 Schema Validation Dialog Box..........................................................716 Troubleshooting and Limitations - XML Checkpoints.....................722 Chapter 22: Parameterizing Values ..................................................723 Concepts Parameterizing Values Overview ......................................................725 Test and Action Input Parameters.....................................................727 Data Table Parameters .......................................................................731 Environment Variable Parameters ....................................................734 When to Choose Global or Action Data Table Parameters ..............737 Automatically Parameterizing Steps..................................................738 Data Driver ........................................................................................744 Example of a Parameterized Test.......................................................74414
  • 15. Table of ContentsTasksHow to Parameterize Values for Operations or Local Objects ..........750How to Parameterize a Checkpoint Property Value..........................751How to Use User-Defined External Environment Variables .............753How to Create an External Environment Variables File ...................755ReferenceDefault Parameter Values ..................................................................757Built in Environment Variables.........................................................758Parameter Options Dialog Box (Test/Action Parameter) .................760Parameter Options Dialog Box (Data Table) .....................................763Parameter Options Dialog Box (Environment) ................................766Edit Complex Value Dialog Box........................................................769Parameter Options Dialog Box (Random Number) .........................770Data Driver Dialog Box .....................................................................773Data Driver Wizard - Select Parameterization Type Page .................776Data Driver Wizard - Parameterize the Selected Step Page ...............778Chapter 23: Output Values................................................................781ConceptsOutput Values Overview ...................................................................782TasksHow to Create or Modify a Standard Output Value Step .................790How to Create or Modify a Table Output Value Step .......................793How to Create or Modify a Text or Text Area Output Value Step ....794How to Create or Modify a Database Output Value Step .................797How to Create or Modify an XML Output Value Step......................798How to Update the XML Hierarchy for XML Test Object Operation Output Value Steps (For WebService Test Objects Only) .............801ReferenceOutput Value Properties Dialog Box .................................................803Table Output Value Properties Dialog Box (Table Content Tab)......812Table Output Value Properties Dialog Box (Properties Tab) .............819Text / Text Area Output Value Properties Dialog Box ......................822Database Output Value Properties Dialog Box..................................830XML Output Properties Dialog Box ..................................................835Add Existing Output Value Dialog Box.............................................841 15
  • 16. Table of Contents Chapter 24: Text Recognition for Windows-Based Objects .............847 Concepts Text Recognition for Windows-Based Objects Overview .................848 Checking Text in an Image - Use-Case Scenario...............................848 Tasks How to Configure Text Recognition Settings ...................................852 Reference Guidelines for Text Recognition .......................................................854 Text Recognition and Development Environments .........................857 Chapter 25: Value Configuration and Regular Expressions .............861 Concepts Value Configuration Overview .........................................................862 Regular Expressions Overview...........................................................863 Tasks How to Configure Constant and Parameter Values..........................866 Reference Configure Value Area .......................................................................867 Constant Value Options Dialog Box .................................................870 Value Configuration Options Dialog Box.........................................872 Regular Expression Characters and Usage Options ..........................875 Regular Expression Evaluator ............................................................882 Smart Regular Expression List ...........................................................884 Chapter 26: User Interface-Based Programming Operations ..........887 Concepts Programming Statements Overview..................................................888 Test Synchronization.........................................................................894 Message Statements...........................................................................897 Tasks How to Insert Steps Using the Step Generator..................................900 How to Insert Conditional Statements from the Keyword View......901 How to Insert Loop Statements In the Keyword View .....................904 How to Generate With Statements for Your Test .............................90616
  • 17. Table of Contents Reference Add Synchronization Point Dialog Box ............................................910 Comment Properties Dialog Box.......................................................912 Insert Comment Dialog Box .............................................................912 Insert Report Dialog Box ...................................................................914 Step Generator Dialog Box ................................................................916 Storage Location Options Dialog Box ...............................................924PART V: DEFINING FUNCTIONS AND OTHER PROGRAMMING TASKS Chapter 27: Working in the Expert View and Function Library Windows............................................................929 Concepts The Expert View and Function Library Windows Overview ...........931 Expert View and Keyword View - A Comparison .............................932 Generating Statements in the Expert View or in a Function Library ...........................................................................934 Bookmarks in an Action or Function Library ..................................945 Programmatic Descriptions ...............................................................946 Opening and Closing Applications Programmatically .....................959 Comments, Control-Flow, and Other VBScript Statements .............960 Retrieving and Setting Identification Property Values .....................961 Native Properties and Operations .....................................................962 Running DOS Commands.................................................................964 Choosing Which Steps to Report During the Run Session ...............964 Windows API .....................................................................................964 Tasks How to Navigate in the Expert View and Function Libraries ...........965 How to Enhance Your Tests and Function Libraries Using the Windows API.................................................................................966 Reference Checkpoint and Output Statements .................................................969 Basic VBScript Syntax ........................................................................970 Report Modes.....................................................................................987 Expert View and Function Library Window User Interface..............988 17
  • 18. Table of Contents Chapter 28: Customizing the Expert View and Function Library Windows..........................................................1001 Concepts Expert View and Function Library Window Customization Options .......................................................................................1002 Reference General Tab (Editor Options Dialog Box) .......................................1004 Fonts and Colors Tab (Editor Options Dialog Box) ........................1007 Key Binding Tab (Editor Options Dialog Box) ................................1009 Chapter 29: User-Defined Functions and Function Libraries .........1011 Concepts Function Library Overview .............................................................1013 Associated Function Libraries..........................................................1015 User-Defined Functions...................................................................1017 User-Defined Function Storage and Access.....................................1019 User-Defined Function Registration................................................1020 Executing Externally-Defined Functions from Your Test ...............1026 Tasks How to Manage Function Libraries.................................................1028 How to Edit a Function Library.......................................................1033 How to Manage Function Library Associations ..............................1036 How to Work with a User-Defined Function ..................................1039 How to Create and Register a User-Defined Function Using the Function Definition Generator...................................................1042 How to Execute an Externally-Defined Function from Your Test .....................................................................................1048 Reference Function Definition Generator Dialog Box ....................................1050 Troubleshooting and Limitations - Function Libraries...................105918
  • 19. Table of ContentsPART VI: RUNNING AND ANALYZING TESTS Chapter 30: QuickTest Run Sessions ...............................................1063 Concepts Run Sessions - Overview..................................................................1064 Optional Steps .................................................................................1066 Tasks How to Run Your Test .....................................................................1067 How to Set Optional Steps ..............................................................1071 Reference Default Optional Steps ....................................................................1072 Run Dialog Box: Results Location Tab (For Tests Stored in the File System) ...........................................1073 Run Dialog Box: Results Location Tab (For Tests Stored in Quality Center) ...........................................1075 Run Dialog Box: Input Parameters Tab ...........................................1078 Test Batch Runner ...........................................................................1080 Troubleshooting and Limitations - Run Sessions ...........................1082 Chapter 31: Run Results Viewer......................................................1085 Concepts Run Results Viewer Overview..........................................................1086 Run Results File Location ................................................................1091 Tasks How to Install the Run Results Viewer as a Standalone Application..................................................................................1092 How to Open Run Results ...............................................................1093 How to Navigate the Run Results Tree............................................1094 How to Customize the Run Results Viewer.....................................1096 How to Jump to a Step in QuickTest...............................................1097 How to Manually Submit Defects to Quality Center......................1098 How to Automatically Submit Defects to a Quality Center Project ........................................................................................1100 How to Export Run Results .............................................................1102 How to Play a Screen Recorder Movie in the HP Micro Player.......1104 How to Delete Run Results ..............................................................1105 19
  • 20. Table of Contents Reference Run Results Viewer User Interface ..................................................1107 Run Results Viewer Commands ......................................................1109 Run Results Viewer Panes................................................................1113 Run Results Viewer Dialog Boxes ....................................................1140 Run Results Deletion Tool...............................................................1160 Troubleshooting and Limitations - Viewing Run Results ...............1168 Chapter 32: Run Results - Understanding Step Results..................1169 Concepts Smart Identification in the Run Results..........................................1170 Checkpoint and Output Value Results ...........................................1174 Parameterized Values in the Run Results ........................................1188 QuickTest Tests Containing Calls to Service Test Tests ..................1190 Reference XML Checkpoint Results Window (Run Results Viewer) ...............1191 XML Output Value Results Window (Run Results Viewer) ............1199P A R T V I I : M A I N T A IN I N G A N D D E BU G G I N G T E S T S Chapter 33: Debugging Tests and Function Libraries....................1205 Concepts Debugging Overview ......................................................................1206 Considerations for Debugging ........................................................1207 Debug Session Speed .......................................................................1208 Single Step Commands ...................................................................1208 Running to a Step and Debugging from a Step ..............................1209 Modifying and Watching the Values of Variables and Properties of Objects During a Run Session ...............................1212 Breakpoints......................................................................................1213 Run Errors........................................................................................1214 Tasks How to Debug Your Test or Function Library.................................1215 How to Use Breakpoints ..................................................................1219 How to Debug an Action or a Function - Exercise..........................1220 How to Step Into, Out of, or Over a Specific Step - Exercise ..........122420
  • 21. Table of Contents Reference Debug Viewer Pane..........................................................................1227 Watch Tab (Debug Viewer Pane) ...................................................1229 Variables Tab (Debug Viewer Pane) ................................................1232 Command Tab (Debug Viewer Pane)..............................................1234 Run Error Message Box....................................................................1236 Troubleshooting and Limitations - Debugging...............................1238 Chapter 34: Maintaining and Updating Tests ................................1239 Concepts Why Tests Fail .................................................................................1240 Maintenance Run Mode ..................................................................1242 Updating Your Test Object Descriptions, Checkpoints, Output Values, or Active Screen Captures..................................1244 Tasks How to Use Maintenance Run Mode to Update Your Test When Your Application Changes ...............................................1248 How to Update Test Object Descriptions, Checkpoints, Output Values, or Active Screens ...............................................1252 Reference Maintenance Run Wizard................................................................1255 Update Options Tab (Update Run Dialog Box) ..............................1271 Troubleshooting and Limitations - Maintenance Mode.................1274PART VIII: WORKING WITH THE QUICKTEST PANES Chapter 35: QuickTest Window Layout ..........................................1279 Concepts QuickTest Window Layout Customization - Overview ..................1280 Tasks How to Customize the QuickTest Window ....................................1281 21
  • 22. Table of Contents Reference Tips and Considerations for Customizing the QuickTest Window Layout ..........................................................................1291 Button Appearance Dialog Box .......................................................1294 Customization Mode - Context Menu Options..............................1296 Customize Dialog Box .....................................................................1297 Windows Dialog Box.......................................................................1304 Troubleshooting and Limitations - QuickTest Window Layout.....1305 Chapter 36: Active Screen Pane......................................................1307 Concepts Active Screen Overview ...................................................................1308 Tasks How to Use the Active Screen in Your Test.....................................1312 How to Modify the Active Screen Settings......................................1314 Reference Active Screen Pane User Interface ...................................................1316 Chapter 37: Available Keywords Pane ............................................1319 Concepts Available Keywords Pane Overview ................................................1320 Tasks How to Work with the Available Keywords Pane ...........................1321 Reference Available Keywords Pane User Interface .........................................1322 Chapter 38: Data Table Pane ..........................................................1325 Concepts Data Table Overview .......................................................................1326 Data Table Sheets ............................................................................1327 Data Table - Save Options ...............................................................1330 Data Table Objects, Methods, and Properties .................................1331 Formulas in Data Tables ..................................................................133222
  • 23. Table of ContentsTasksHow to Define a Data Table in Your Test .......................................1334How to Manage Data Tables in Your Test.......................................1336How to Insert Formulas into Data Tables for Use in Checkpoints ................................................................................1338How to Import Data Using Microsoft Query ..................................1339ReferenceData Table Pane User Interface .......................................................1340Database Query Wizard ...................................................................1351Troubleshooting and Limitations - Data Table...............................1354Chapter 39: Information Pane ........................................................1357ConceptsInformation Pane Overview ............................................................1358TasksHow to Resolve VBScript Syntax Errors in the Information Pane ........................................................................1359ReferenceInformation Pane User Interface .....................................................1360Chapter 40: Missing Resources Pane ..............................................1363ConceptsMissing Resources Overview ..........................................................1364TasksHow to Handle a Missing Resource.................................................1367How to Locate a Missing Action .....................................................1368ReferenceMissing Resources Pane User Interface............................................1371Chapter 41: Process Guidance Panes..............................................1375ConceptsProcess Guidance Overview ............................................................1376TasksHow to Manage Process Guidance ..................................................1377 23
  • 24. Table of Contents Reference Process Guidance Management Dialog Box....................................1379 Process Guidance Panes User Interface ...........................................1380 Chapter 42: Resources Pane............................................................1385 Concepts Resources Pane Overview ................................................................1386 Tasks How to Modify Associations Between Resources and Your Test or Action .....................................................................1386 Reference Resources Pane User Interface .........................................................1391 Chapter 43: Test Flow Pane ............................................................1395 Concepts Test Flow Pane Overview.................................................................1396 Tasks How to Manage Actions in the Test Flow Pane ..............................1397 Reference Test Flow Pane User Interface .........................................................1401 Chapter 44: To Do Pane ..................................................................1405 Concepts To Do Pane Overview......................................................................1406 Tasks How to Manage Tasks and TODO Comments ................................1407 Reference Task Editor Dialog Box ....................................................................1408 To Do Pane User Interface...............................................................141024
  • 25. Table of ContentsP A R T I X : C O N F I G U R IN G Q U IC K T E S T S E T T I N G S Chapter 45: Global Testing Options ...............................................1419 Concepts Global Testing Options Overview ...................................................1420 Reference Options Dialog Box .........................................................................1420 General Pane (Options Dialog Box) ................................................1422 Folders Pane (Options Dialog Box) .................................................1431 Active Screen Pane (Options Dialog Box) .......................................1434 Run Pane (Options Dialog Box) ......................................................1447 Chapter 46: Individual Test Settings...............................................1455 Concepts Test Settings Overview ....................................................................1456 Add-in Associations in Your Test ....................................................1458 Associated Function Libraries..........................................................1459 Local System Monitor......................................................................1460 Log Tracking ....................................................................................1461 Tasks How to Manually Configure Log Tracking Settings........................1462 Reference Properties Pane (Test Settings Dialog Box)......................................1466 Run Pane (Test Settings Dialog Box) ...............................................1471 Resources Pane (Test Settings Dialog Box) ......................................1475 Parameters Pane (Test Settings Dialog Box) ....................................1479 Environment Pane (Test Settings Dialog Box) ................................1483 Recovery Pane (Test Settings Dialog Box) .......................................1490 Local System Monitor Pane (Test Settings Dialog Box) ..................1495 Log Tracking Pane (Test Settings Dialog Box).................................1498 Chapter 47: Setting Testing Options During the Run Session .......1503 Concepts Setting Testing Options During the Run Session - Overview .........1504 Tasks How to Set Testing Options During a Run Session.........................1506 25
  • 26. Table of ContentsPART X: WORKING WITH ADVANCED TESTING FEATURES Chapter 48: Virtual Objects.............................................................1513 Concepts Virtual Objects - Overview ..............................................................1514 How Virtual Objects are Defined and Recognized..........................1515 Tasks How to Define Virtual Objects for Unsupported Objects in Your Test .....................................................................................1516 Reference Virtual Object Manager Dialog Box ................................................1518 Virtual Object Wizard .....................................................................1519 Chapter 49: Recovery Scenarios......................................................1523 Concepts Recovery Scenarios Overview ..........................................................1524 Tasks How to Create and Manage Recovery Scenarios .............................1528 How to Manage Recovery Scenario Associations ............................1530 Reference Add Recovery Scenario Dialog Box .................................................1532 Recovery Scenario Manager Dialog Box..........................................1534 Recovery Scenario Properties Dialog Box........................................1537 Recovery Scenario Wizard ...............................................................1539 Troubleshooting and Limitations - Recovery Scenarios .................1569 Chapter 50: QuickTest Script Editor ...............................................1571 Concepts QuickTest Script Editor Overview ...................................................1572 Reference QuickTest Script Editor Window.....................................................1575 Flow Pane (Script Editor) .................................................................1582 Resources Pane (Script Editor) .........................................................1584 Customize Dialog Box (Script Editor) .............................................158726
  • 27. Table of Contents Chapter 51: QuickTest Automation Scripts ....................................1589 Concepts QuickTest Automation Object Model Overview.............................1590 When to Use QuickTest Automation Scripts ..................................1592 Application Object ..........................................................................1593 QuickTest Automation Object Model Reference.............................1594 Generated Automation Scripts ........................................................1594 Tasks How to Create a QuickTest Automation Script...............................1596 How to Run Automation Scripts on a Remote Computer ..............1600PA RT X I : W O R K I N G W I T H Q U A L I T Y C E N T E R Chapter 52: Quality Center Integration..........................................1605 Concepts Quality Center Integration Overview .............................................1607 Template Tests .................................................................................1610 Quality Center Test Run Preferences...............................................1611 QuickTest Remote Agent Preferences..............................................1613 Data Awareness in HP ALM.............................................................1613 Tasks How to Work with Tests in Quality Center ....................................1618 How to Data Drive a Test in HP ALM .............................................1621 How to Enable Quality Center to Run Tests on a QuickTest Computer...................................................................1627 How to Use the Quality Center Connectivity Add-in ....................1628 How to Create a Template Test .......................................................1629 How to Create a Test in Quality Center Using a Template Test .....1631 How to View or Modify Remote Agent Settings .............................1633 Reference HP ALM Data Awareness - Task Breakdown....................................1634 HP ALM Connection Dialog Box ....................................................1635 Remote Agent Settings Dialog Box..................................................1642 Troubleshooting and Limitations - Quality Center Integration .........................................................1648 27
  • 28. Table of Contents Chapter 53: Resources and Dependencies Model ..........................1651 Concepts Resources and Dependencies Model Overview...............................1652 Asset Dependencies - Advantages ...................................................1653 Reference Relative Paths and Quality Center ..................................................1656 Resources and Dependencies Model Terminology .........................1657 Quality Center Resources-Related User Interface............................1659 Troubleshooting and Limitations - Resources and Dependencies ......................................................1666 Chapter 54: Viewing and Comparing Versions of QuickTest Assets .........................................................................1669 Concepts Asset Comparison Tool and Asset Viewer - Overview ....................1670 Tasks How to Open the QuickTest Asset Comparison Tool .....................1673 How to Open the QuickTest Asset Viewer ......................................1676 How to Work with the Asset Comparison Tool and Asset Viewer ................................................................................1679 Reference Asset Comparison Tool ...................................................................1681 Asset Viewer.....................................................................................1690 Troubleshooting and Limitations - Asset Comparison Tool...........1693 Chapter 55: Version Control in Quality Center 10.00 or HP ALM .......................................................................................1695 Concepts Managing Versions of Assets in Quality Center Overview .............1696 Tasks How to Check In the Currently Open Asset ...................................1703 How to Check Out the Latest Version of an Asset..........................1704 How to Cancel a Check-Out Operation ..........................................170528
  • 29. Table of Contents Reference Version Management Commands ..................................................1706 Check Out Dialog Box.....................................................................1707 Check In Dialog Box ......................................................................1708 Version History Dialog Box .............................................................1709 Baseline History Dialog Box ............................................................1712 Troubleshooting and Limitations - Quality Center Version Control ..........................................................................1715 Chapter 56: Version Control in Quality Center 9.2 ........................1717 Concepts Version Control for QuickTest Tests in Quality Center 9.2 Overview .....................................................................................1718 Tasks How to Add Tests to the Quality Center 9.2 Version Control Database ......................................................................................1721 How to Perform a Version Control Operation on Tests Stored in Quality Center 9.2 ......................................................................1722 Reference Quality Center 9.2 Check In Dialog Box ........................................1724 Quality Center 9.2 Check Out Dialog Box......................................1725 Quality Center 9.2 Version History Dialog Box..............................1726 Chapter 57: HP ALM Sprinter .........................................................1729 Concepts HP ALM Sprinter Overview ............................................................1730P A R T X I I : W O R K I N G W I T H O T HE R H P P R O D U C T S Chapter 58: Service Test Integration ..............................................1735 Concepts Service Test Integration Overview...................................................1736 Tasks How to Integrate with Service Test .................................................1739 Reference Call to Service Test Test Dialog Box ................................................1741 29
  • 30. Table of Contents Chapter 59: Business Process Testing .............................................1743 Concepts Business Process Testing Overview..................................................1743 Business Process Testing Workflow.................................................1748 Business Process Testing Methodology ...........................................1750 Reference Quality Center Business Components Module...............................1755 Chapter 60: HP Performance Testing and Business Service Management Products ....................................1757 Concepts HP Performance Testing and Business Service Management Products Overview ......................................................................1758 Designing Tests for HP Performance Testing Products ...................1761 Running Tests from HP Performance Testing Products ..................1762 Designing Tests for HP Business Process Monitor ..........................1763 Running Tests from HP Business Process Monitor .........................1764 Measuring Transactions ..................................................................1765 Silent Test Runner ...........................................................................1768 Tasks How to Insert and Run Tests in Performance Center and LoadRunner.................................................................................1770 Reference End Transaction Dialog Box............................................................1771 Start Transaction Dialog Box...........................................................1772 Silent Test Runner Dialog Box ........................................................1774P A R T X I I I: A P P E N D I X E S Appendix A: Naming Conventions .................................................1779 Appendix B: Supported Checkpoints and Output Values Per Add-in ...................................................................................1783 Supported Checkpoints ...................................................................1784 Supported Output Values ................................................................178630
  • 31. Table of ContentsAppendix C: Frequently Asked Questions.......................................1789Creating Tests ..................................................................................1790Programming in the Expert View....................................................1792Working with Dynamic Content ....................................................1794Advanced Web Issues ......................................................................1796Standard Windows Environment....................................................1800Test Maintenance ............................................................................1802Testing Localized Applications........................................................1805Improving QuickTest Performance .................................................1806Appendix D: Custom Process Guidance Packages..........................1811ConceptsCustom Process Guidance Packages - Overview .............................1812Data Files for Process Guidance Packages .......................................1813TasksHow to Create a Custom Package Configuration File.....................1814How to Install Custom Process Guidance Packages in QuickTest ....................................................................................1815ReferenceXML Details for Custom Process Guidance Packages .....................1816Appendix E: Bitmap Checkpoint Customization ............................1819ConceptsAbout Bitmap Checkpoint Customization .....................................1820Custom Comparer for Images Whose Location Changes in the Application - Use-Case Scenario .................................................1821Custom Bitmap Comparer Development .......................................1823TasksHow to Develop a Custom Comparer .............................................1824How to Implement the Bitmap Comparer Interfaces .....................1828How to Install Your Custom Comparer and Register it to QuickTest ....................................................................................1832How to Use the Bitmap Checkpoint Customization Samples ........1836How to Develop a Custom Comparer - Tutorial .............................1839ReferenceThe Bitmap Checkpoint Comparer Interfaces ................................1851 31
  • 32. Table of Contents32
  • 33. Welcome to theHP QuickTest ProfessionalUser Guide This chapter includes: "HP QuickTest Professional User Guide Overview" on page 33 "How Do I Find the Information That I Need?" on page 34 "Documentation Library Contents" on page 36 "Additional Online Resources" on page 40HP QuickTest Professional User Guide Overview Welcome to the HP QuickTest Professional User Guide. This guide describes how to use QuickTest to test your applications. It provides step-by-step instructions to help you create, debug, and run tests, and report defects detected during the testing process. Prerequisite Background This guide is intended for QuickTest Professional users at all levels. Readers should already have some understanding of functional testing concepts and processes, and know which aspects of their application they want to test. 33
  • 34. Welcome to the HP QuickTest Professional User GuideHow Do I Find the Information That I Need? Within this guide, each subject area is organized into topics. A topic contains a distinct module of information for that subject. The topics are generally classified according to the type of information they contain. This structure is designed to create easier access to specific information by dividing the documentation into the different types of information you may need at different times. Three main topic types are in use: Concepts, Tasks, and Reference. The topic types are differentiated visually using icons. Topic Types Topic Type Description Usage Concepts General Concepts. Learn general information Background, descriptive, or about what a feature does. conceptual information. Use-case Scenario Concepts. Learn why or when you Real-life examples of when or may want to use the why to use a specific product feature. area.34
  • 35. Welcome to the HP QuickTest Professional User GuideTopic Type Description UsageTasks Instructional Tasks. Step-by- Learn about the overall step guidance to help you workflow of a task. work with the application and Follow the steps listed in accomplish your goals. Some a numbered task to task steps include examples, complete a task. using sample data. Perform independent Task steps can be with or operations by without numbering: completing steps in a Numbered steps. Tasks that non-numbered task. are performed by following each step in consecutive order. Non-numbered steps. A list of self-contained operations that you can perform in any order. Exercise Tasks. Step-by-step Follow the steps in these instructions for a task using a topics to practice the sample application or sample workflow of a task. data. Use-case Scenario Tasks. Learn how a task could be Examples of how to perform a performed in a realistic task for a specific situation. scenario. 35
  • 36. Welcome to the HP QuickTest Professional User Guide Topic Type Description Usage Reference General Reference. Detailed Look up a specific piece of lists and explanations of reference information reference-oriented material. relevant to a particular context. User Interface Reference. Look up specific Specialized reference topics information about what to that describe a particular user enter or how to use one or interface in detail. Pressing F1 more specific user interface in the product area generally elements, such as a open the user interface topics. window, dialog box, or wizard. Troubleshooting Troubleshooting and Increase your awareness of and Limitations Limitations. Specialized important issues before reference topics that describe working with a feature, or commonly encountered if you encounter usability problems and their solutions, problems in the software. and list limitations of a feature or product area.Documentation Library Contents This guide is part of the QuickTest Professional Documentation Library. The Documentation Library provides a single-point of access for all QuickTest Professional documentation. You can access the Documentation Library by using the following: Select Help > QuickTest Professional Help. In the Start menu, select Program Files > HP QuickTest Professional > Documentation > HP QuickTest Professional Help. Click in selected QuickTest windows and dialog boxes or press F1. View a description, syntax, and examples for a QuickTest test object, method, or property by placing the cursor on it and pressing F1.36
  • 37. Welcome to the HP QuickTest Professional User GuideThe Documentation Library includes the following: Type Included Documentation Getting Started Readme provides the latest news and information about Documentation QuickTest. Select Start > Programs > HP Mercury Product > Readme. HP Mercury Product Installation Guide explains how to install and set up QuickTest. Select Help > QuickTest Professional Help and click the link to the Installation Guide from the Documentation Library Home page. HP Mercury Product Tutorial teaches you basic QuickTest skills and shows you how to design tests for your applications. Select Help > Mercury Product Tutorial. Product Feature Movies provide an overview and step-by- step instructions describing how to use selected QuickTest features. Select Help > Product Feature Movies. Whats New provides an overview of the features, enhancements and supported environments that are new in the current version of QuickTest. Choose Help > Whats New. 37
  • 38. Welcome to the HP QuickTest Professional User Guide Type Included Documentation Feature Mercury Product Help includes: Documentation Home provides links to the Documentation Library guides in each available format (Help, PDF, and/or HTML). Whats New in QuickTest Professional describes the newest features, enhancements, and supported environments in the latest version of QuickTest. HP Mercury Product User Guide describes how to use QuickTest to test your application. HP Mercury Product for Business Process Testing User Guide provides step-by-step instructions for using QuickTest to create and manage assets for use with Business Process Testing. HP Mercury Product Add-ins Guide describes how to work with supported environments using QuickTest add-ins, and provides environment-specific information for each add-in. HP Mercury Product Object Model Reference describes QuickTest test objects, lists the methods and properties associated with each object, and provides syntax information and examples for each method and property.38
  • 39. Welcome to the HP QuickTest Professional User GuideType Included DocumentationReference HP Mercury Product Advanced References containsDocumentation documentation for the following QuickTest COM and XML references: HP QuickTest Professional Automation Object Model provides syntax, descriptive information, and examples for the automation objects, methods, and properties. It also contains a detailed overview to help you get started writing QuickTest automation scripts. The automation object model assists you in automating test management, by providing objects, methods and properties that enable you to control virtually every QuickTest feature and capability. HP QuickTest Professional Run Results Schema documents the run results XML schema, which provides the information you need to customize your run results. HP QuickTest Professional Test Object Schema documents the test object XML schema, which provides the information you need to extend test object support in different environments. HP QuickTest Professional Object Repository Schema documents the object repository XML schema, which provides the information you need to edit an object repository file that was exported to XML. HP QuickTest Professional Object Repository Automation documents the Object Repository automation object model, which provides the information you need to manipulate QuickTest object repositories and their contents from outside of QuickTest. VBScript Reference contains Microsoft VBScript documentation, including VBScript, Script Runtime, and Windows Script Ho