HP LoadRunner Tutorial

HP LoadRunner Tutorial

Documents
142 pages
Lire
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

HP LoadRunner
for the Windows operating systems
Software Version: 9.00
Tutorial
Document Number: LRTUT9.00/01
Document Release Date: June 2007
Software Release Date: June 2007 Legal Notices
Warranty
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be construed
as constituting an additional warranty. HP shall not be liable for technical or editorial errors
or omissions contained herein.
The information contained herein is subject to change without notice.
Restricted Rights Legend
Confidential computer software. Valid license from HP required for possession, use or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software,
Computer Software Documentation, and Technical Data for Commercial Items are licensed
to the U.S. Government under vendor's standard commercial license.
Third-Party Web Sites
HP provides links to external third-party Web sites to help you find supplemental
information. Site content and availability may change without notice. HP makes no
representations or warranties whatsoever as to site content or availability.
Copyright Notices
© 1994 - 2007 Mercury Interactive Corporation, All rights reserved
Trademark Notices
Java™ is a US trademark of Sun Microsystems, Inc.
Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation.
Oracle® is a registered US trademark of Oracle Corporation, Redwood ...

Sujets

Informations

Publié par
Nombre de visites sur la page 1 364
Langue English
Signaler un problème
HP LoadRunner for the Windows operating systems Software Version: 9.00 Tutorial Document Number: LRTUT9.00/01 Document Release Date: June 2007 Software Release Date: June 2007 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. Restricted Rights Legend Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. Third-Party Web Sites HP provides links to external third-party Web sites to help you find supplemental information. Site content and availability may change without notice. HP makes no representations or warranties whatsoever as to site content or availability. Copyright Notices © 1994 - 2007 Mercury Interactive Corporation, All rights reserved Trademark Notices Java™ is a US trademark of Sun Microsystems, Inc. Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation. Oracle® is a registered US trademark of Oracle Corporation, Redwood City, California. UNIX® is a registered trademark of The Open Group. 2 Documentation Updates This manual’s title page 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 re lease date of this version of the software To check for recent updates, or to verify that you are using the most recent edition of a document, go to: http://ovweb.external.hp.com/lpe/doc_serv/ 3 Support Mercury Product Support You can obtain support information for products formerly produced by Mercury as follows: If you work with an HP Software Services Integrator (SVI) partner ( www.hp.com/ managementsoftware/svi_partner_list), contact your SVI agent. If you have an active HP Software support contract, visit the HP Software Support Web site and use the Self-Solve Knowledge Search to find answers to technical questions. For the latest information about support processes and tools available for products formerly produced by Mercury, we encourage you to visit the Mercury Customer Support Web site at: http://support.mercury.com. If you have additional questions, contact your HP Sales Representative. HP Software Support You can visit the HP Software Support Web site at: www.hp.com/managementsoftware/services HP Software online support provides an efficient way to access interactive technical support tools. As a valued support customer, you can benefit by using the support 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 training Most of the support areas require that you register as an HP Passport user and sign in. Many also require a support contract. To find more information about access levels, go to: www.hp.com/managementsoftware/access_level To register for an HP Passport ID, go to: www.managementsoftware.hp.com/passport-registration.html 4 Table of Contents Welcome to the LoadRunner Tutorial ..................................................9 Chapter 1: Introducing LoadRunner...................................................11 Why should you automate performance testing? .............................12 What are the LoadRunner components? ............................................12 Understanding LoadTerminology..........................................13 What is the load testing process?........................................................13 Getting Familiar with HP Tours ..........................................................14 Application Requirements...................................................................15 Chapter 2: The Power of LoadRunner ................................................17 Creating the Load Test ........................................................................18 Running the Load Test ........................................................................21 Monitoring the Load Test ...................................................................22 Analyzing Results ................................................................................24 Chapter 3: Building Scripts .................................................................27 Introducing the Virtual User Generator (VuGen)...............................27 How do I start recording user activities?.............................................28 Using VuGen Wizard Mode ................................................................30 How do I record a business process to create a script? .......................31 How do I view the script?....................................................................35 Chapter 4: Playing Back Your Script ...................................................39 How do I set the run-time behavior? ..................................................39 How do I watch my script running in real time? ...............................43 Where can I view information about the replay?...............................45 How do I know if my test passed?.......................................................47 How do I search in or filter the results?..............................................48 Chapter 5: Solving Common Playback Problems ...............................53 Preparing HP Tours for Playback Errors ..............................................54 How do I work with unique server values?.........................................54 5 Table of Contents Chapter 6: Preparing a Script for Load Testing..................................59 How do I measure business processes?................................................60 How do I emulate multiple users?.......................................................63 How do I verify Web page content?....................................................66 How can I produce debugging information?......................................69 Did my test succeed?...........................................................................71 Chapter 7: Creating a Load Testing Scenario.....................................73 Introducing the LoadRunner Controller.............................................74 What mixture of users should be part of the load test? .....................76 The Controller Window at a Glance...................................................78 How do I generate a heavy load? ........................................................79 How do I emulate real load behavior? ................................................80te different types of users?.........................................85 How do I monitor the system under load?.........................................88 Chapter 8: Running The Load Test .....................................................91 The Controller Run View at a Glance .................................................92 How do I run a load test scenario?......................................................93 How do I monitor the application under load?..................................95 How do I watch a user running in real time? .....................................97 Where can I view a summary of user actions?....................................98 How can I increase the load during the test?......................................99 How is the application coping under load?......................................100 Did the application encounter errors? ..............................................101 How do I know that the test has finished running?.........................103 Did the application perform well under load? .................................103 Chapter 9: Advanced Goal-Oriented Scenario .................................105 Which goal type should I use?..........................................................106 How do I create a goal-oriented scenario? ........................................107 The Controller Window at a Glance (Goal-Oriented Scenario) .......108 How do I define the goal? .................................................................109 How do I determine load behavior?..................................................111 Which online graphs should I monitor? ..........................................113 How do I run a goal-oriented scenario?............................................114 Did I achieve my goal?......................................................................117 6 Table of Contents Chapter 10: Analyzing Your Scenario...............................................119 How does an analysis session work? .................................................120 How do I start my analysis session?..................................................121 The Analysis Window at a Glance ....................................................122 The Summary Report.........................................................................123 Did my server perform well? .............................................................127 How can I pinpoint the source of the problem?...............................132 What other information can I gather about my scenario run?........136ublish my findings? .......................................................138 Conclusion ........................................................................................141 7 Table of Contents 8 Welcome to the LoadRunner Tutorial Welcome to the LoadRunner Tutorial, a self-paced printable guide, designed to lead you through the process of load testing and familiarize you with the LoadRunner testing environment. The first lesson provides an introduction to LoadRunner and testing concepts. Lesson 2 provides a sample test that illustrates the power of the LoadRunner tool. Lessons 3 through 6 describe how to create a script using the HP Virtual User Generator. Lessons 7 through 9 explain how to design and run load tests using the LoadRunner Controller. Lesson 10 introduces the Analysis tool, showing you how to create graphs and reports which will help you analyze your load test. At the conclusion of this tutorial, you will be ready to design, run, and monitor a simple test on your own application. It is recommended that you move through the tutorial in the order in which the information is presented. 9 Welcome to This Guide 10