QuickTest PDF tutorial guide
This QuickTest PDF tutorial 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.
Contents of this QuickTest PDF tutorial guide
PART I: STARTING THE TESTING PROCESS
Chapter 1: Introduction ….3
Testing with QuickTest……3
Understanding the Testing Process ….4
Programming in the Expert View…….7
Managing the Testing Process …………7
Using the Sample Sites ……8
Modifying License Information ………8
Chapter 2: QuickTest at a Glance…….9
Starting QuickTest ………..10
The QuickTest Window…12
Test Pane………14
Test Details Pane (Active Screen) …..17
Data Table…….17
Debug Viewer Pane……….18
Using QuickTest Commands…………18
Browsing the QuickTest Professional Program Folder …….28
PART II: WORKING WITH TEST OBJECTS
Chapter 3: Understanding the Test Object Model …………33
About Understanding the Test Object Model …33
Applying the Test Object Model Concept………37
Viewing Object Properties Using the Object Spy……………42
Viewing Object Methods and Method Syntax Using the
Object Spy…45
Chapter 4: Managing Test Objects .49
About Managing Test Objects ……….50
Understanding the Object Repository Dialog Box………….51
Understanding the Object Properties Dialog Box…………..58
Modifying Test Object Properties While Designing Your Test ………..62
Working with Test Objects During a Test Run .68
Modifying Object Descriptions ……..70
Adding Objects to the Object Repository ………76
Deleting an Object from the Object Repository …………….82
PART III: CREATING TESTS
Chapter 5: Designing Tests …………..87
About Creating Tests …….87
Planning a Test …………….89
Recording a Test …………..90
Understanding Your Test 94
Choosing Your Recording Mode……96
Changing the Active Screen ………..102
Managing a Test …………103
Creating, Opening, and Saving Tests with Locked Resources ……….107
Chapter 6: Enhancing Your Test ….113
About Enhancing Your Test ………..113
Synchronizing Your Test …………….114
Measuring Transactions 119
Chapter 7: Understanding Checkpoints ………123
About Checkpoints……..123
Adding Checkpoints to a Test ……..124
Understanding Types of Checkpoints………….125
Chapter 8: Checking Object Property Values .131
About Checking Object Properties.131
Creating Standard Checkpoints ….132
Understanding the Checkpoint Properties Dialog Box …135
Understanding the Image Checkpoint Properties Dialog Box……….141
Modifying Checkpoints.145
Chapter 9: Checking Tables and Databases …147
About Checking Tables and Databases ………..147
Creating a Table Checkpoint……….148
Creating a Check on a Database ….149
Understanding the Table/Database Checkpoint Properties
Dialog Box .154
Modifying a Table Checkpoint ……163
Modifying a Database Checkpoint.163
Chapter 10: Checking Text………….165
About Checking Text…..165
Creating a Text Checkpoint ………..167
Creating a Standard Checkpoint for Checking Text……..169
Creating a Text Area Checkpoint…171
Understanding the Text/Text Area Checkpoint Properties
Dialog Box .174
Modifying a Text or Text Area Checkpoint ….187
Chapter 11: Checking Bitmaps…….189
About Checking Bitmaps…………….189
Checking a Bitmap ……..190
Modifying a Bitmap Checkpoint….197
Chapter 12: Checking XML …………199
About Checking XML….199
Creating XML Checkpoints…………201
Modifying XML Checkpoints………220
Reviewing XML Checkpoint Results ……………220
Using XML Objects and Methods to Enhance Your Test 220
Chapter 13: Parameterizing Tests .221
About Parameterizing Tests…………221
Parameterizing Your Test Manually …………….222
Understanding Parameter Types ….226
Using the Data Driver to Parameterize Your Test …………243
Example of a Parameterized Test….249
Chapter 14: Creating Output Values ………….255
About Creating Output Values…….255
Creating Page Output Values ………259
Creating Text Output Values ………265
Creating Standard Output Values ..276
Creating Image Output Values…….282
Creating XML Output Values………287
Creating Table Output Values……..293
Creating Database Output Values ..298
Chapter 15: Using Regular Expressions ……….299
About Regular Expressions ………….299
Using Regular Expressions for Object Property Values….300
Using Regular Expressions in Standard Checkpoints ……305
Using Regular Expressions in Text Checkpoints…………..308
Understanding and Using Regular Expression Syntax…..310
Chapter 16: Learning Virtual Objects ………….319
About Learning Virtual Objects …..319
Understanding Virtual Objects ……320
Defining a Virtual Object ……………321
Removing a Virtual Object ………….326
Chapter 17: Working with Actions 329
About Working with Actions ………330
Using Multiple Actions in a Test….331
Using Global and Action Data Sheets ………….332
Using the Action Toolbar ……………334
Creating New Actions….335
Inserting Existing Actions …………..337
Nesting Actions ………….345
Splitting Actions …………346
Setting Action Properties…………….348
Sharing Action Information………..356
Exiting an Action ……….358
Removing Actions from a Test …….359
Renaming Actions ………363
Creating an Action Template ………364
Guidelines for Working with Actions …………365
Chapter 18: Working with Data Tables ……….367
About Working with Data Tables…367
Working with Global and Action Sheets ……..368
Editing and Saving the Data Table.370
Importing Data from a Database….379
Using Formulas in the Data Table..383
Using Data Table Scripting Methods……………387
Chapter 19: Defining and Using Recovery Scenarios ……389
About Defining and Using Recovery Scenarios…………….389
Defining Recovery Scenarios ……….391
Understanding the Recovery Scenario Wizard …………….393
Managing Recovery Scenarios ……..415
Setting the Recovery Scenarios List for Your Tests………..418
Programatically Controlling the Recovery Mechanism…424
PART IV: WORKING WITH SUPPORTED ENVIRONMENTS
Chapter 20: Working with QuickTest Add-Ins 427
About Working with QuickTest Add-ins………427
Loading QuickTest Add-ins …………428
Tips for Working with QuickTest Add-ins ……430
Chapter 21: Testing Web Objects ..433
About Testing Web Objects…………433
Working with Web Browsers……….435
Checking Web Objects ..437
Checking Web Pages …..439
Setting Alternative Navigation Properties…….455
Checking Web Content Accessibility…………..457
Accessing Password-Protected Resources in the Active Screen ………462
Activating Methods Associated with a Web Object………467
Using Scripting Methods with Web Objects …468
Chapter 22: Testing Visual Basic Applications 469
About Testing Visual Basic Applications………469
Recording and Running Tests on Visual Basic Applications………….470
Checking Visual Basic Objects …….472
Using Visual Basic Objects and Methods to Enhance Your Test ……473
Chapter 23: Testing Multimedia Applications 475
About Testing Multimedia Applications ………475
Working with Macromedia Flash Controls…..476
Working with RealPlayer and Windows MediaPlayer
Applications and Controls ……….478
Chapter 24: Testing ActiveX Controls …………483
About Testing ActiveX Controls ….483
Recording and Running Tests on ActiveX Controls ……..485
Checking ActiveX Controls…………487
Activating an ActiveX Control Method……….489
Using Scripting Methods with ActiveX Controls………….489
PART V: RUNNING AND DEBUGGING TESTS
Chapter 25: Running Tests …………493
About Running Tests …..493
Running a Test to Check Your Application ….494
Running a Test or Action from a Selected Step…………….497
Updating a Test ………….498
Using Optional Steps…..506
Running a Test Batch ….508
Chapter 26: Debugging Tests ……..511
About Debugging Tests .511
Using the Step Commands………….512
Pausing Test Runs……….514
Setting Breakpoints……..514
Removing Breakpoints ..515
Using the Debug Viewer516
Handling Run Errors……518
Practicing Debugging a Test ………..519
Chapter 27: Analyzing Test Results ……………521
About Analyzing Test Results ………521
Understanding the Test Results Window……..523
Viewing the Results of a Test Run..526
Viewing Checkpoint Results ……….533
Viewing Output Value Results …….558
Analyzing Smart Identification Information in the Test Results……565
Deleting Test Results …..569
Submitting Defects Detected During a Test Run ………….576
Viewing WinRunner Test Steps in the Test Results ………582
PART VI: CONFIGURING QUICKTEST
Chapter 28: Setting Global Testing Options ..587
About Setting Global Testing Options …………587
Using the Options Dialog Box …….588
Setting General Testing Options ….589
Setting Folder Testing Options…….591
Setting Active Screen Options ……..594
Setting Run Testing Options ……….602
Setting Windows Application Testing Options ……………604
Setting Web Testing Options ………608
Chapter 29: Setting Testing Options for a Single Test….619
About Setting Testing Options for a Single Test …………..619
Using the Test Settings Dialog Box 620
Defining Properties for Your Test…621
Defining Run Settings for Your Test ……………624
Defining Resource Settings for Your Test……..629
Defining Environment Settings for Your Test 632
Defining Web Settings for Your Test……………638
Defining Recovery Scenario Settings for Your Test……….640
Chapter 30: Setting Record and Run Options 643
About Setting Record and Run Options……….643
Using the Record and Run Settings Dialog Box……………644
Setting Web Record and Run Options …………646
Setting Windows Applications Record and Run Options 648
Using Environment Variables to Specify the Application
Details for Your Test …651
Chapter 31: Customizing the Expert View …..655
About Customizing Your Test in the Expert View………..655
Setting Display Options.656
Personalizing Editing Commands..661
Chapter 32: Setting Testing Options During the Test Run …………..665
About Setting Testing Options from a Test Script ………..665
Setting Testing Options.666
Retrieving Testing Options………….668
Controlling the Test Run…………….669
Adding and Removing Run-Time Settings……670
PART VII: ADVANCED FEATURES
Chapter 33: Configuring Object Identification ……………673
About Configuring Object Identification …….673
Understanding the Object Identification Dialog Box……675
Configuring Smart Identification…683
Mapping User-Defined Test Object Classes ….692
Chapter 34: Choosing the Object Repository Mode …….695
About Choosing the Object Repository Mode695
Deciding Which Object Repository Mode to Choose……697
Setting the Object Repository Mode ……………709
Chapter 35: Configuring Web Event Recording…………..715
About Configuring Web Event Recording ……715
Selecting a Standard Event Recording Configuration……716
Customizing the Event Recording Configuration ………..718
Saving and Loading Custom Event Configuration Files..729
Resetting Event Recording Configuration Settings……….730
Chapter 36: Enhancing Your Tests with Programming Statements 731
About Enhancing Your Tests with Programming …………731
Inserting Methods Using the Method Wizard 733
Using Conditional Statements …….745
Generating ‘With’ Statements for Your Test…749
Sending Messages to Your Test Results ………..754
Adding Comments ……..755
Chapter 37: Testing in the Expert View……….757
About Testing in the Expert View ..758
Programming in VBScript …………..758
Understanding the Expert View…..759
Programming in the Expert View…764
Using Programmatic Descriptions..769
Running and Closing Applications Programmatically ….776
Enhancing Tests with Comments, Control-Flow, and Other
VBScript Statements ..777
Retrieving and Setting Test Object Property Values ……..784
Accessing Run-Time Object Properties and Methods ……785
Running DOS Commands…………..788
Choosing Which Steps to Report During the Test Run…788
Chapter 38: Working with User-Defined Functions ……..791
About Working with User-Defined Functions 791
Working with Associated Library Files…………792
Executing Externally-Defined Functions from Your Test 793
Using User-Defined Test Object Methods …….795
Chapter 39: Automating QuickTest Operations …………..801
About Automating QuickTest Operations ……802
Deciding When to Use QuickTest Automation Programs …………….803
Choosing a Language and Development Environment for
Designing and Running Automation Programs…………804
Learning the Basic Elements of a QuickTest Automation Program..806
Generating Automation Scripts……807
Using the QuickTest Automation Object Model Reference…………..808
PART VIII: WORKING WITH OTHER
MERCURY INTERACTIVE PRODUCTS
Chapter 40: Working with WinRunner ………..811
About Working with WinRunner ..811
Calling WinRunner Tests ……………812
Calling WinRunner Functions …….816
Chapter 41: Working with TestDirector ………823
About Working with TestDirector..823
Connecting to and Disconnecting from TestDirector …..825
Saving Tests to a TestDirector Project ………….830
Opening Tests from a TestDirector Project …..831
Running a Test Stored in a TestDirector Project …………..835
Managing Test Versions in QuickTest………….837
Setting Preferences for TestDirector Test Runs846
Chapter 42: Working with Load Testing and Performance
Monitoring Products ..851
About Working with Load Testing and Performance
Monitoring Products ..852
Using QuickTest’s Load/Performance Management Features………..852
Designing QuickTest Tests for Use with LoadRunner or the
Topaz Business Process Monitor..854
Inserting and Running Tests in LoadRunner or Topaz….855
PART IX: APPENDIX
Appendix A: Working with QuickTest—Frequently
Asked Questions ……….859
Recording and Running Tests ……..859
Programming in the Expert View…860
Working with Dynamic Content …861
Advanced Web Issues ….862
Test Maintenance ……….863
Testing Localized Applications…….865
Improving QuickTest Performance 866
Index………….871