Successfully reported this slideshow.
Your SlideShare is downloading. ×

Load runner 8.0

Loading in …3

Check these out next

1 of 139 Ad

More Related Content

Slideshows for you (20)

Similar to Load runner 8.0 (20)


Recently uploaded (20)


Load runner 8.0

  1. 1. LoadRunner 8.0 <ul><ul><li>Mercury </li></ul></ul>
  2. 2. D a y - 1
  3. 3. Agenda – Day 1 ( LoadRunner Overview)‏ <ul><li>Introducing LoadRunner </li></ul><ul><li>What’s New in LoadRunner 8.0? </li></ul><ul><li>LoadRunner Terminology </li></ul><ul><li>LoadRunner Components </li></ul><ul><li>Load Test Workflow </li></ul><ul><li>How LoadRunner Works? </li></ul><ul><li>LoadRunner Solution </li></ul><ul><li>Types of Performance Testing </li></ul><ul><li>Objectives of Performance Testing </li></ul><ul><li>When is Load Testing Needed? </li></ul><ul><li>Why Load Test your Application? </li></ul><ul><li>Questions A Performance Test Should Answer. </li></ul><ul><li>Supporting Environments </li></ul>
  4. 4. Introduction to Load Runner 8.0 <ul><li>Load Runner is a Mercury Interactive Tool that predicts performance and behavior of the system </li></ul><ul><li>By creating lots of load, you can see how the system reacts at peak levels or with simultaneous Users </li></ul><ul><li>To test the application, LoadRunner emulates an environment where multiple users work concurrently. While the application is under load, LoadRunner accurately measures and analyzes the system performance, and its functionality. </li></ul>
  5. 5. What's New in LoadRunner 8.0 ? <ul><li>What’s new In Load Testing? </li></ul><ul><li>The first unified application for Performance Testing, Tuning and Diagnostics. </li></ul><ul><li>Accurate prediction of system performance, pinpoint application bottlenecks and resolve infrastructure bottlenecks </li></ul><ul><li>Provides a web-based, enterprise-wide load testing solutions </li></ul>Contd… Load Testing
  6. 6. What's New in LoadRunner 8.0 ? <ul><li>What’s new In Diagnosing? </li></ul><ul><li>Introduces J2EE Diagnostics, Siebel Diagnostics, and Oracle Diagnostics </li></ul><ul><li>Gives the complete visibility into J2EE, Siebel and Oracle component Performance under Load </li></ul><ul><li>First time you can drill down from a slow end user transaction all the way to the slow method </li></ul>Diagnosing Contd…
  7. 7. What’s New in LoadRunner 8.0 ? <ul><li>What’s new In Tuning? </li></ul><ul><li>A complete solution to help you identify, isolate, and resolve performance problems in your infrastructure </li></ul><ul><li>Tuning console is a part of Mercury Interactive’s performance center product line, which is a comprehensive solution for performance testing, tuning, and diagnostics. </li></ul>Tuning
  8. 8. LoadRunner Terminology <ul><li>Scenarios </li></ul><ul><ul><li>Using LoadRunner, you divide your application performance testing requirements into scenarios. </li></ul></ul><ul><ul><li>A scenario defines the events that occur during each testing sessions. </li></ul></ul><ul><ul><li>For example, a scenario defines and controls the number of users to emulate, the actions that they perform, and the machines on which they run their emulations. </li></ul></ul><ul><li>Vusers </li></ul><ul><ul><li>In a scenario, LoadRunner replaces human users with virtual users or Vusers. </li></ul></ul><ul><ul><li>When you run a scenario, Vusers emulate the actions of human users—submitting input to the server. </li></ul></ul><ul><ul><li>A scenario can contain tens, hundreds, or even thousands of Vusers. </li></ul></ul>Contd….
  9. 9. LoadRunner Terminology <ul><li>Vuser Scripts </li></ul><ul><ul><li>The actions that a Vuser performs during the scenario are described in a Vuser script. </li></ul></ul><ul><ul><li>When you run a scenario, each Vuser executes a Vuser script. Vuser scripts include functions that measure and record the performance of the server during the scenario. </li></ul></ul><ul><li>Transactions </li></ul><ul><ul><li>To measure the performance of the server, you define transactions. </li></ul></ul><ul><ul><li>Transactions measure the time that it takes for the server to respond to tasks submitted by Vusers. </li></ul></ul>Contd….
  10. 10. LoadRunner Terminology <ul><li>Rendezvous Points </li></ul><ul><ul><li>You insert rendezvous points into Vuser scripts to emulate heavy user load on the server. </li></ul></ul><ul><ul><li>Rendezvous points instruct multiple Vusers to perform tasks at exactly the same time. </li></ul></ul><ul><ul><li>For example, to emulate peak load on the bank server, you insert a rendezvous point to instruct 100 Vusers to simultaneously deposit cash into their accounts. </li></ul></ul><ul><li>Controller </li></ul><ul><ul><li>You use the LoadRunner Controller to manage and maintain your scenarios. </li></ul></ul><ul><ul><li>Using the Controller, you control all the Vusers in a scenario from a single workstation. </li></ul></ul>Contd….
  11. 11. LoadRunner Terminology <ul><li>Hosts </li></ul><ul><ul><li>When you execute a scenario, the LoadRunner Controller distributes each Vuser in the scenario to a host. </li></ul></ul><ul><ul><li>The host is the machine that executes the Vuser script, enabling the Vuser to emulate the actions of a human user. </li></ul></ul><ul><li>Performance Analysis </li></ul><ul><ul><li>Vuser scripts include functions that measure and record system performance during load-testing sessions. </li></ul></ul><ul><ul><li>During a scenario run, you can monitor the network and server resources. </li></ul></ul><ul><ul><li>Following a scenario run, you can view performance analysis data in reports and graphs. </li></ul></ul>
  12. 12. LoadRunner Components Contd…. Controller VuGen Analysis LoadRunner Tuning
  13. 13. <ul><li>VuGen (Virtual User Generator) – records Vuser Scripts that emulate the steps of real Users using the application </li></ul><ul><li>The Controller is an administrative center for creating, maintaining, and executing scenarios. The controller assigns Vusers and load generators to scenarios. </li></ul><ul><li>Starts and stops load tests, and perform other Administrative tasks </li></ul>Components of LoadRunner 8.0 Contd….
  14. 14. Components of LoadRunner 8.0 <ul><li>LR Analysis uses the load test results to create graphs and reports that are used to correlate system information and identify both bottlenecks and performance issues. </li></ul><ul><li>Tuning helps you quickly isolate and resolve performance bottlenecks. By adding a centralized tuning console to LoadRunner, the Mercury Tuning Module ensures that performance bottlenecks are resolved during testing, and helps you determine the optimized configuration settings for production. </li></ul>
  15. 15. Load Test Work Flow
  16. 16. How LoadRunner Works ?
  17. 17. How LoadRunner Works?
  18. 18. The LoadRunner Solution Contd….
  19. 19. The LoadRunner Solution <ul><li>The LoadRunner automated solution addresses the drawbacks of manual performance testing: </li></ul><ul><li>LoadRunner reduces the personnel requirements by replacing human users with virtual users or Vusers. These Vusers emulate the behavior of real users — operating real applications. </li></ul><ul><li>Because numerous Vusers can run on a single computer, LoadRunner reduces the hardware requirements. </li></ul><ul><li>The LoadRunner Controller allows you to easily and effectively control all the Vusers — from a single point of control. </li></ul><ul><li>LoadRunner monitors the application performance online, enabling you to fine-tune your system during test execution. </li></ul>Contd….
  20. 20. The LoadRunner Solution <ul><li>LoadRunner automatically records the performance of the application during a test. You can choose from a wide variety of graphs and reports to view the performance data. </li></ul><ul><li>LoadRunner checks where performance delays occur: network or client delays, CPU performance, I/O delays, database locking, or other issues at the database server. LoadRunner monitors the network and server resources to help you improve performance. </li></ul><ul><li>Because LoadRunner tests are fully automated, you can easily repeat them as often as you need. </li></ul>
  21. 21. Types of Performance Testing Find out whether the system can handle the expected load upon deployment under real-world conditions. Find the application's breaking point. Apply testing that measures whether the application's environment is properly configured to handle expected or potentially unexpected high transaction volumes. Find the stability of the system with respect to handling large amounts of data over extended time periods. Find the behavior and performance of each tier . Load Testing Stress Testing Volume Testing Component Testing
  22. 22. Objectives of Performance Testing <ul><li>How long does it take to complete a task? </li></ul>Application Response Time Reliability Configuration Sizing Capacity Planning Acceptance Bottleneck Identification Regression Product Evaluation How Stable is the system under a heavy work load? Which configuration provides the best performance level? At what point does degradation in performance occur? Is the system stable enough to go into Production? What is the cause of degradation in performance? Does the new version of Software adversely affect response time? What is the best server for 100 users?
  23. 23. When is Load Testing Needed ? Production What is the cause of performance degradation? Deployment Is the system reliable enough to go into production? Development Does the system response time meet requirements? Planning and Design What is the best server to support 1000 users? Evolution How many users can be added without decreasing system performance? Change Management
  24. 24. Why Load Test? <ul><li>The failure of a mission-critical application can be costly. </li></ul><ul><li>Assure performance and functionality under real-world conditions. </li></ul><ul><li>Locate potential problems before your customers do. </li></ul><ul><li>Reduce development Time. </li></ul><ul><li>Reduce infrastructure costs </li></ul>
  25. 25. Questions a performance test should Answer <ul><li>Does the Application respond quickly enough for the intended users? </li></ul><ul><li>Will the application handle the expected user load and beyond? </li></ul><ul><li>Will the application handle the number of transactions required by the business? </li></ul><ul><li>Is the application stable under expected and unexpected user loads? </li></ul><ul><li>Are you sure that users will have a positive experience on go-live day? </li></ul>
  26. 26. Supporting Environments <ul><li>Application Deployment Solution - The Citrix protocol. </li></ul><ul><li>Client/Server - MS SQL, ODBC, Oracle Web Applications 11i, DB2 CLI, Sybase Ctlib, Sybase Dblib, Windows Sockets, and DNS protocols. </li></ul><ul><li>Custom - C templates, Visual Basic templates, Java templates, Javascript, and VBScript type scripts. </li></ul><ul><li>Distributed Components - COM/DCOM, Corba-Java, and Rmi-Java protocols. </li></ul><ul><li>E-Business - FTP, LDAP, Palm, Web (HTTP/HTML), Web Services, and the dual Web/Winsocket protocols. </li></ul><ul><li>Enerprise Java Beans -EJB Testing and RMI-Java protocols. </li></ul><ul><li>ERP/CRM - Baan, Oracle NCA, Peoplesoft 8, Peoplesoft-Tuxedo, SAP-Web, SAPGUI, SAPGUI/SAP-Web dual, and Siebel (Siebel-DB2 CLI, Siebel-MSSQL, Siebel-Web, and Siebel-Oracle) protocols. </li></ul>Contd….
  27. 27. Supporting Environments <ul><li>Legacy </li></ul><ul><li>Terminal Emulation (RTE). </li></ul><ul><li>Mailing Services </li></ul><ul><li>Internet Messaging (IMAP), MS Exchange (MAPI), POP3, and SMTP. </li></ul><ul><li>Streaming </li></ul><ul><li>MediaPlayer and RealPlayer protocols. </li></ul><ul><li>Wireless </li></ul><ul><li>i-Mode, VoiceXML, and WAP protocols. </li></ul>Internet/Intranet Web Servers Clients App. Servers Database Server
  28. 28. Supporting Environments <ul><li>Platforms </li></ul><ul><ul><li>NT, 2000, XP </li></ul></ul><ul><ul><li>Sun </li></ul></ul><ul><ul><li>HP </li></ul></ul><ul><ul><li>IBM </li></ul></ul><ul><ul><li>Linux </li></ul></ul>
  29. 29. LoadRunner Architecture
  30. 30. Gurpreet Singh QA-Lead Q & A
  31. 31. D a y - 2
  32. 32. <ul><li>Virtual User Generator </li></ul><ul><li>& </li></ul><ul><li>Controller </li></ul>Agenda – Day 2
  33. 33. What is Virtual User (Vuser) ? <ul><li>Virtual users or Vusers emulate the steps of real users. The steps that Vusers perform are recorded in a Vuser Script. </li></ul>
  34. 34. What is VuGen (Virtual User Generator) ? <ul><li>VuGen records Vuser Scripts that emulate the steps of real users using the application </li></ul><ul><li>VuGen not only records Vuser scripts, but also runs them. Running scripts from VuGen is useful for debugging </li></ul><ul><li>VuGen records sessions on Windows platforms only. However, a recorded Vuser script can run on both Windows and UNIX platform. </li></ul>Cont…
  35. 35. What is VuGen (Virtual User Generator) ? <ul><li>VuGen creates the script by recording the activity between the client and the server. For example, in database applications, VuGen monitors the client end of the database and traces all the requests sent to, and received from, the database server </li></ul>
  36. 36. Developing Vuser Script Enhance / Edit the Vuser Script Record a Basic Vuser Script Configure the Run-time Settings Run the Vuser Script in Stand-Alone Mode Integrate the Vuser Script
  37. 37. Process of Recording Script <ul><li>Record a basic script </li></ul><ul><li>Enhance the basic script by adding the control-flow statements and other Mercury API functions into the Script </li></ul><ul><li>Configure the Run-time settings </li></ul><ul><li>Verify that the script runs correctly, run it in stand-alone mode </li></ul><ul><li>Integrate into your test : a LoadRunner scenario, Performance Center load test, Tuning module session, Business process monitor profile </li></ul>
  38. 38. Understanding VuGen Code <ul><li>When you record a Vuser script, VuGen generates Vuser functions and inserts them into the script. There are two types of Vuser functions: </li></ul><ul><ul><li>General Vuser Functions </li></ul></ul><ul><ul><li>Protocol-Specific Vuser Functions </li></ul></ul><ul><li>The general Vuser functions and the protocol-specific functions together form the Mercury VuGen API. </li></ul><ul><li>This API enables Vusers to communicate directly with a server. </li></ul>
  39. 39. Starting VuGen . <ul><li>Start > Programs > LoadRunner > Applications > Virtual User Generator </li></ul>
  40. 40. Welcome Screen - VuGen Single Protocol Script Multiple Protocol Script Creates a single protocol Vuser script. This is the default option Creates a multiple protocol Vuser script. VuGen displays all of the available protocols and allows you to specify which protocols to record
  41. 41. Vuser Script Sections <ul><li>Each Vuser script contains at least three sections: </li></ul><ul><ul><li>vuser_init </li></ul></ul><ul><ul><li>one or more Actions and </li></ul></ul><ul><ul><li>vuser_end . </li></ul></ul>the Vuser finishes or is stopped a logoff procedure vuser_end the Vuser is in &quot;Running&quot; status client activity Actions the Vuser is initialized (loaded)‏ a login to a server vuser_init Is executed when... Used when recording... Script Section
  42. 42. VuGen Editor
  43. 43. Recording Your Application <ul><li>Click the Start Recording Button </li></ul><ul><li>For most Client / Server protocols, the following Screen opens </li></ul><ul><li>Recording Tool Bar (Floating Tool Bar)‏ </li></ul>
  44. 44. Ending and Saving a Recording Session <ul><li>To complete the recording: </li></ul><ul><li>After you record a typical business process, you complete the recording session by performing the closing steps of your business process and saving the Vuser script. </li></ul><ul><li>Switch to the vuser_end section in the floating toolbar, and perform the log off or cleanup procedure. </li></ul><ul><li>Click the stop Recording button on the recording Tool Bar </li></ul>
  45. 45. Enhancing Vuser Script <ul><li>After you record the Vuser Script you can enhance its capabilities by adding functions like </li></ul><ul><ul><li>General Vuser Functions </li></ul></ul><ul><ul><ul><li>General Vuser functions greatly enhance the functionality of any Vuser Script. All general Vuser functions have an LR Prefix </li></ul></ul></ul><ul><ul><li>Protocol - specific Vuser Functions </li></ul></ul><ul><ul><ul><li>Library functions used to enhance the script. ( LRS - Windows, LRT - Tuxedo)‏ </li></ul></ul></ul><ul><ul><li>Standard ANSI C functions </li></ul></ul><ul><ul><ul><li>Enhancing the Vuser script by adding general C functions. </li></ul></ul></ul><ul><ul><ul><li>Like Adding Comments, Control flow statements, and so forth to your Vuser Script </li></ul></ul></ul>Cont…
  46. 46. Enhancing Vuser Script <ul><li>Inserting Transactions into Vuser Script </li></ul><ul><ul><li>Inserting Rendezvous point </li></ul></ul><ul><ul><li>Inserting Comments </li></ul></ul><ul><ul><li>Obtaining Vuser Information </li></ul></ul><ul><li>Sending Messages to output </li></ul><ul><ul><li>Log Messages </li></ul></ul><ul><ul><ul><li>Lr_log_message </li></ul></ul></ul><ul><ul><li>Debug Messages </li></ul></ul><ul><ul><ul><li>Lr_set_debug_message </li></ul></ul></ul><ul><ul><ul><li>Lr_debug_message </li></ul></ul></ul><ul><ul><li>Error and Output Messages </li></ul></ul><ul><ul><ul><li>Lr_error_message </li></ul></ul></ul><ul><ul><ul><li>Lr_output_message </li></ul></ul></ul>Cont…
  47. 47. Enhancing Vuser Script <ul><li>Handling errors on Vuser Script during execution ( Runtime settings > Miscellaneous > Error handling )‏ </li></ul><ul><ul><li>By default when a Vuser detects an error, the Vuser stops the execution </li></ul></ul><ul><ul><li>You can use the lr_continue_on_error function to override the continue on error runtime setting </li></ul></ul><ul><ul><li>To mark the segment, enclose it with lr_continue_on_error(1); and lr_continue_on_error(0); statements </li></ul></ul><ul><li>Synchronizing Vuser Script </li></ul><ul><ul><li>Synchronize the execution of Vuser script with the output from your application </li></ul></ul><ul><ul><li>Synchronize applies only to RTE Vuser Scripts </li></ul></ul>Cont…
  48. 48. Enhancing Vuser Script <ul><li>Emulating User Think Time </li></ul><ul><ul><li>The time that a user waits between performing successive action is known as the Think Time </li></ul></ul><ul><ul><li>Vuser uses the lr_think_time function to emulate user think time </li></ul></ul><ul><ul><li>Vuser > Run-time settings > Think Time </li></ul></ul>Cont…
  49. 49. Enhancing Vuser Script <ul><li>PARAMETERIZING </li></ul>
  50. 50. Enhancing Vuser Script <ul><li>Parameterizing </li></ul><ul><ul><li>Parameterization involves the following two tasks : </li></ul></ul><ul><ul><ul><li>Replacing the constant values in the Vuser script with parameters </li></ul></ul></ul><ul><ul><ul><li>Setting the properties and data source for the parameters </li></ul></ul></ul><ul><ul><li>Parameterization Limitations </li></ul></ul><ul><ul><ul><li>You can use parameterization only for the arguments within a function </li></ul></ul></ul><ul><ul><ul><li>You can’t parameterize text strings that are not function arguments </li></ul></ul></ul>Cont…
  51. 51. Enhancing Vuser Script <ul><li>Creating Parameters </li></ul><ul><ul><li>In a script View : Select a string and select replace with parameter from the Right click menu </li></ul></ul><ul><ul><li>Type the Name of the parameter in the appropriate box or select from the list </li></ul></ul><ul><ul><li>Select parameter type from the parameter type list. The available types in the list are Date/Time, file, Group Name, Random number, Unique number, User defined function, or Vuser ID, </li></ul></ul>Cont…
  52. 52. Enhancing Vuser Script <ul><li>VuGen creates new parameter, but does not automatically replace any selected string in the script </li></ul>Cont… <ul><li>Vuser >Parameter List (or)‏ </li></ul>
  53. 53. Enhancing Vuser Script Tree View Script View Cont…
  54. 54. Enhancing Vuser Script <ul><li>Select Next Row </li></ul><ul><ul><li>Sequential </li></ul></ul><ul><ul><li>Random </li></ul></ul><ul><ul><li>Unique </li></ul></ul><ul><ul><li>Same line as <Pameter_Name> </li></ul></ul><ul><li>Update Value on </li></ul><ul><ul><li>Each iteration </li></ul></ul><ul><ul><ul><li>Instructs the Vuser to use a new value for each script iteration </li></ul></ul></ul><ul><ul><li>Each occurrence </li></ul></ul><ul><ul><ul><li>Instructs the Vuser to use a new value for each occurrence of the parameter </li></ul></ul></ul><ul><ul><li>Once </li></ul></ul><ul><ul><ul><li>Instructs the Vuser to update the parameter value only once during the execution </li></ul></ul></ul>Cont…
  55. 55. Enhancing Vuser Script DATA WIZARD Cont… 1 2 3 4
  56. 56. Enhancing Vuser Script <ul><li>CORRELATION </li></ul>
  57. 57. Enhancing Vuser Script <ul><li>Determine which value to correlate </li></ul><ul><ul><ul><li>Using WDiff you can find which string to correlate </li></ul></ul></ul><ul><li>Save the results using Web_reg_save_param and lrs_save_param </li></ul><ul><li>Replace the Saved variable in your query or in your statements </li></ul>Primary reasons for correlating - To Generate dynamic code Cont…
  58. 58. Enhancing Vuser Script <ul><li>web_reg_save_param (“ myval &quot;, &quot; LB =userSession value=&quot;, </li></ul><ul><li>&quot; RB =>&quot;, &quot;Ord=1&quot;, &quot;RelFrameId=1.2.1&quot;, &quot;Search=Body&quot;, LAST); </li></ul><ul><li>&quot;Name=userSession&quot;, &quot;Value= { myval } &quot; </li></ul>Storage Variable Left boundary Value Right boundary Value
  59. 59. LoadRunner 8.0 <ul><li>Run-time Settings </li></ul>
  60. 60. RunTime Settings <ul><li>Run Logic </li></ul><ul><li>You can instruct a Vuser to Repeat the Run section when you run the script. Each repetition is known as iteration </li></ul><ul><li>Number of Iterations </li></ul><ul><li>LoadRunner repeats all of the actions, the specified number of times. </li></ul><ul><li>If you specify a scenario duration in the controller, the duration setting overrides the Vusers iteration settings. </li></ul>Cont…
  61. 61. RunTime Settings <ul><li>Pacing </li></ul><ul><li>Control the time between iterations. </li></ul><ul><li>The pace tells the Vuser how long to wait between iterations of Vuser </li></ul><ul><li>You can instruct Vuser by following any of the method below </li></ul><ul><li>As soon as the previous iteration ends. </li></ul><ul><li>After the previous iteration ends with a fixed / random delay </li></ul><ul><li>At fixed / random intervals </li></ul>Cont…
  62. 62. RunTime Settings <ul><li>Log </li></ul><ul><li>Vusers log information about themselves and their communication between server </li></ul><ul><li>Two types of Logs </li></ul><ul><li>Standard </li></ul><ul><li>Extended </li></ul><ul><li>VuGen writes log messages that you can view in execution log. </li></ul><ul><li>lr_log_message . Messages sent manually, using lr_message , lr_output_message , and lr_error_message , are still issued </li></ul>Cont…
  63. 63. RunTime Settings <ul><li>Think Time </li></ul><ul><li>When you run a Vuser script, the Vuser uses the think time values that were recorded into the script during the recording session. VuGen allows you to use the recorded think time, ignore it, or use a value related to the recorded time: </li></ul>Cont…
  64. 64. <ul><li>Miscellaneous </li></ul><ul><li>You can set the following Miscellaneous run-time options for a Vuser script: </li></ul><ul><li>Error Handling </li></ul><ul><li>Multithreading </li></ul><ul><ul><li>Vusers support multithreaded environments. The primary advantage of a multithread environment is the ability to run more Vusers per load generator. </li></ul></ul><ul><li>Automatic Transactions </li></ul>RunTime Settings
  65. 65. LoadRunner 8.0 <ul><li>CONTROLLER </li></ul>
  66. 66. LoadRunner 8.0 - Controller <ul><li>What is Scenario? </li></ul><ul><ul><li>A scenario is a file that defines the Vusers execution, the number of Vusers to run, the goals of the test, the computer that hosts the Vusers, and the conditions under which to run the Load Test </li></ul></ul>
  67. 67. LoadRunner 8.0 - Controller <ul><li>Controller organizes and manages scenario elements </li></ul><ul><li>During scenario execution the controller : </li></ul><ul><ul><li>Runs Vuser Groups </li></ul></ul><ul><ul><li>Controls the initialize, run, pause, and stop conditions of each Vuser </li></ul></ul><ul><ul><li>Displays the status of each Vuser </li></ul></ul><ul><ul><li>Displays any messages from Vusers </li></ul></ul><ul><ul><li>Monitors system and network resources </li></ul></ul>
  68. 68. LoadRunner 8.0 - Controller <ul><li>Types of Scenarios </li></ul><ul><ul><ul><li>Manual Scenario </li></ul></ul></ul><ul><ul><ul><ul><li>Manage your Load Test by specifying the number of Virtual users to run </li></ul></ul></ul></ul><ul><ul><ul><li>Goal-Oriented Scenario </li></ul></ul></ul><ul><ul><ul><ul><li>Allow LoadRunner Controller to create a Scenario based on the goals you specify </li></ul></ul></ul></ul>
  69. 69. LoadRunner 8.0 - Controller <ul><li>Manual Scenario </li></ul><ul><ul><li>You control the number of Running Vusers at the time which they Run. </li></ul></ul><ul><ul><li>You can specify how many Vusers run simultaneously </li></ul></ul><ul><ul><li>Allows you to run the Vuser in Percentage mode </li></ul></ul>
  70. 70. LoadRunner 8.0 - Controller <ul><li>Goal-Oriented Scenario </li></ul><ul><ul><li>Determine your system to achieve the particular goal </li></ul></ul><ul><ul><li>The goal may be number of hits per second , Number of transaction per second, etc., </li></ul></ul><ul><ul><li>Manages Vusers Automatically to maintain and achieve the goal </li></ul></ul>
  71. 71. LoadRunner 8.0 - Controller <ul><li>Which scenario to use? </li></ul><ul><li>Examples </li></ul>Manual Scenario with 1000 users <ul><li>Script Should define Update </li></ul><ul><li>When running the Load Test at peak load achieve 1000 concurrent users </li></ul>Goal-Oriented with transaction time as the ‘Goal Type’ <ul><li>Define search transaction </li></ul><ul><li>Response time of 8 seconds with 2000 concurrent users during non-peak hours </li></ul><ul><li>Achieve response time of 12 Secs with 5000 concurrent users during peak hours </li></ul>Scenario Type Scenario Outline
  72. 72. LoadRunner 8.0 - Controller <ul><li>Vuser Groups </li></ul><ul><li>Scenario consists of group of Vusers which emulate the Human users to interact with your application </li></ul><ul><li>Each script you select is assigned a Vuser group </li></ul><ul><li>Each Vuser group is assigned a number of Vusers </li></ul><ul><li>You can Assign different script to each Vuser or You can assign the same script to all the Vusers </li></ul>
  73. 73. LoadRunner 8.0 - Controller <ul><li>Adding Vuser Group </li></ul><ul><ul><li>Group Name </li></ul></ul><ul><ul><li>Vuser Quantity </li></ul></ul><ul><ul><li>Load Generator name </li></ul></ul>
  74. 74. LoadRunner 8.0 - Controller <ul><li>Load Generator for your Scenario </li></ul><ul><li>Load Generator is a machine that serves as the host for running Vusers </li></ul><ul><li>Its important to know that which script need to be run from which location </li></ul><ul><li>For example customer activity, the function of location, workload of location…etc., </li></ul>
  75. 75. LoadRunner 8.0 - Controller <ul><li>Adding Load Generator </li></ul><ul><li>Click the generators button to open the dialogue box </li></ul><ul><li>Now click the add button to open the Add load generator dialogue box </li></ul><ul><li>Enter the name and load generator platform which you want to add </li></ul><ul><li>A machine must have installed LoadRunner agent to use as a Load Generator </li></ul>
  76. 76. LoadRunner 8.0 - Controller <ul><li>Assigning Number of Vusers </li></ul>Simple scenarios use just one Vuser Script To profile a more complex mix of users, assign several Vuser scripts based on “User profile” in one scenario
  77. 77. Gurpreet Singh QA-Lead Q & A
  78. 78. D a y - 3
  79. 79. Agenda – Day 3 <ul><li>Analysis </li></ul><ul><li>& </li></ul><ul><li>Reports </li></ul>
  80. 80. LoadRunner Analysis <ul><li>Analysis provides graphs and reports to help you analyze the performance of your system. These graphs and reports summarize the scenario execution. </li></ul>Using these graphs and reports, you can easily pinpoint and identify the bottlenecks in your Application
  81. 81. LoadRunner Analysis <ul><li>To view a summary of the results after test execution, you can use one or more of the following tools: </li></ul><ul><li>Vuser log files contain a full trace of the scenario run for each Vuser. These files are located in the scenario results directory. </li></ul><ul><li>Controller Output window displays information about the scenario run. </li></ul><ul><li>Analysis graphs help you determine system performance and provide information about transactions and Vusers. </li></ul><ul><li>Graph Data and Raw Data views display the actual data used to generate the graph in a spreadsheet format. </li></ul><ul><li>Report utilities enable you to view a Summary HTML report for each graph or a variety of Performance and Activity reports. You can create a report as a Microsoft Word document, which automatically summarizes and displays the test’s significant data in graphical and tabular format. </li></ul>
  82. 82. Analysis Basis
  83. 83. LoadRunner - Analysis <ul><li>Creating Analysis Session </li></ul><ul><li>When you run a scenario, data is stored in a result file with an .lrr extension. Analysis is the utility that processes the gathered result information and generates graphs and reports. </li></ul><ul><li>When you work with the Analysis utility, you work within a sessio n. An Analysis session contains at least one set of scenario results (lrr file). Analysis stores the display information and layout settings for the active graphs in a file with an .lra extension. </li></ul>
  84. 84. LoadRunner - Analysis <ul><li>Methods of opening LoadRunner Analysis </li></ul><ul><li>Open Analysis directly from the controller ( Results > Analyze Results)‏ </li></ul><ul><li>Start > Programs > Mercury LoadRunner > Applications > Analysis </li></ul><ul><li>Start > Programs > Mercury LoadRunner > LoadRunner , select the Load Testing or Tuning tab , and then click Analyze Load Tests or Analyze Tuning Sessions. </li></ul><ul><li>You can also instruct controller to open analysis automatically after the Scenario execution by selecting Results > Auto Analysis </li></ul>
  85. 85. Collating Execution Results <ul><li>When you run a scenario, by default all Vuser information is stored locally on each Vuser host </li></ul><ul><li>After scenario execution the results are automatically collated or consolidated – results from all the hosts are transfer to results directory </li></ul><ul><li>You disable automatic collation by choosing Results > Auto collate Results from the controller window </li></ul><ul><li>You can collate manually by selecting Results > Collate Results </li></ul><ul><li>If your results are not collated Analysis will automatically collate the results before generating the analysis data </li></ul>
  86. 86. Viewing Summary Data Analysis : Tools  Options Generate Summary data only View the summary data only. If this option is selected Analysis won’t Process the data for advanced use with filtration Generate Complete data only View only the complete data only after it has been Processed. Do not display the Summary Display Summary while generate Complete data only View summary data while the complete data is being processed. After the processing, view the complete data. A bar below the graph indicates the complete data generation progress.
  87. 87. Data Aggregation <ul><li>Aggregate Data: </li></ul><ul><li>Specify the data you want to aggregate in order to reduce the size of the database. </li></ul><ul><li>Select the type of data to aggregate: </li></ul><ul><li>Specify the type(s) of graphs for which you want to aggregate data. </li></ul><ul><li>Select the graph properties to aggregate: </li></ul><ul><li>Specify the graph properties— Vuser ID, Group Name, and Script Name—you want to aggregate. If you do not want to aggregate the failed Vuser data, select Do not aggregate failed Vusers. </li></ul>
  88. 88. Setting Database Options <ul><li>You can choose the database in which to store Analysis session result data and you can repair and compress your Analysis results and optimize the database that may have become fragmented. </li></ul><ul><li>By default, LoadRunner stores Analysis result data in an Access 2000 database. </li></ul><ul><li>If your Analysis result data exceeds two gigabytes, it is recommended that you store it on an SQL server </li></ul>
  89. 89. Session Information You can view the properties of the current Analysis session in the Session Information dialog box.
  90. 90. Analysis Graphs <ul><li>Vuser Graphs - Provide information about Vuser states and other Vuser statistics. </li></ul><ul><li>Error Graphs - Provide information about the errors that occurred during the scenario. </li></ul><ul><li>Transaction Graphs - Provide information about transaction performance and response time. </li></ul><ul><li>Web Resource Graphs - Provide information about the throughput, hits per second, HTTP responses per second, number of retries per second, and downloaded pages per second for Web Vusers. </li></ul><ul><li>Web Page Breakdown Graphs - Provide information about the size and download time of each Web page component . </li></ul>Analysis graphs are divided into the following categories:
  91. 91. Analysis Graphs <ul><li>User-Defined Data Point Graphs - Provide information about the custom data points that were gathered by the online monitor. </li></ul><ul><li>System Resource Graphs - Provide statistics relating to the system resources that were monitored during the scenario using the online monitor. </li></ul><ul><li>Network Monitor Graphs - Provide information about the network delays. </li></ul><ul><li>Firewall Server Monitor Graphs - Provide information about firewall server resource usage. </li></ul><ul><li>Web Server Resource Graphs - Provide information about the resource usage for the Apache, iPlanet/Netscape, iPlanet(SNMP), and MS IIS Web servers. </li></ul>
  92. 92. Analysis Graphs <ul><li>Web Application Server Resource Graphs - Provide information about the resource usage for various Web application servers. </li></ul><ul><li>Database Server Resource Graphs - Provide information about database resources. </li></ul><ul><li>Streaming Media Graphs - Provide information about resource usage of streaming media. </li></ul><ul><li>ERP/CRM Server Resource Graphs - Provide information about ERP/CRM server resource usage. </li></ul><ul><li>Java Performance Graphs - Provide information about resource usage of Java-based applications. </li></ul><ul><li>Application Component Graphs - Provide information about resource usage of the Microsoft COM+ server and the Microsoft NET CLR server. </li></ul><ul><li>Application Deployment Solutions Graphs - Provide information about resource usage of the Citrix MetaFrame and 1.8 servers. </li></ul>
  93. 93. Analysis Graphs <ul><li>Middleware Performance Graphs - Provide information about resource usage of the Tuxedo and IBM WebSphere MQ servers. </li></ul><ul><li>Security Graphs - Provide information about simulated attacks on the server using the Distributed Denial of Service graph. </li></ul><ul><li>Application Traffic Management Graphs - Provide information about resource usage of the F5 BIG-IP server. </li></ul><ul><li>Infrastructure Resources Graphs - Provide information about resource usage of FTP, POP3, SMTP, IMAP, and DNS Vusers on the network client. </li></ul><ul><li>Siebel Diagnostics Graphs - Provide detailed breakdown diagnostics for transactions generated on Siebel Web, Siebel App, and Siebel Database servers. </li></ul><ul><li>Siebel DB Diagnostics Graphs - Provide detailed breakdown diagnostics for SQLs generated by transactions on the Siebel system. </li></ul>
  94. 94. Analysis Graphs <ul><li>Oracle Diagnostics Graphs - Provide detailed breakdown diagnostics for SQLs generated by transactions on the Oracle NCA system. </li></ul><ul><li>J2EE Diagnostics Graphs - Provide information to trace, time, and troubleshoot individual transactions through J2EE Web, application, and database servers. </li></ul>
  95. 95. Adding New Graph <ul><li>Graphs that contain data are listed in blue. By default, only graphs that contain data are listed. To view the entire list of LoadRunner graphs, clear Display only graphs containing data. </li></ul><ul><li>Use the Scenario Elapsed Time field to limit the time range for which graph data is displayed. </li></ul>Graph > Add Graph, or click <New Graph> To view the entire list of LoadRunner graphs, clear Display only graphs containing data.
  96. 96. Filtering & Sorting Graph Data <ul><li>You can filter and sort data that is displayed in a graph. You sort and filter graph data using the same dialog box . </li></ul><ul><li>Filtering Graph Data </li></ul><ul><li>You can filter graph data to show fewer transactions for a specific segment of the scenario. </li></ul><ul><li>More specifically, you can display four transactions beginning from five minutes into the scenario and ending three minutes before the end of the scenario. </li></ul><ul><li>You can filter for a single graph, in all graphs in a scenario, or in the summary graph. </li></ul>
  97. 97. Filtering & Sorting Graph Data <ul><li>Sorting Graph Data </li></ul><ul><li>You can sort graph data to show the data in more relevant ways. </li></ul><ul><li>For example , Transaction graphs can be grouped by the Transaction End Status, and Vuser graphs can be grouped by Scenario Elapsed Time, Vuser End Status, Vuser Status, and VuserID. </li></ul>
  98. 98. Configuring Basic Graph Display Options View  Display Options
  99. 99. Configuring Basic Graph Display Options <ul><li>Adding Comments and Arrows </li></ul>
  100. 100. Web Page Break Down
  101. 101. Analyzing Graph Results <ul><li>Determining a Point’s Coordinates </li></ul><ul><li>Drilling Down in a Graph </li></ul><ul><li>Changing the Granularity of the Data </li></ul><ul><li>Viewing the Data as a Spreadsheet and as Raw Data </li></ul><ul><li>Viewing Measurement Trends </li></ul><ul><li>Auto Correlating Measurements </li></ul><ul><li>Using the WAN Emulation Overlay </li></ul>
  102. 102. Determining a Point’s Coordinates <ul><li>You can determine the coordinates and values at any point in a graph. Place the cursor over the point you want to evaluate and Analysis displays the axis values and other grouping information. </li></ul>
  103. 103. Drilling Down in a Graph <ul><li>Drill down enables you to focus on a specific measurement within your graph and display it according to a desired grouping. </li></ul><ul><li>The available groupings depend on the graph. For example, the Average Transaction Response Time graph shows one line per transaction. </li></ul><ul><li>To determine the response time for each Vuser, you drill down on one transaction and sort it according to Vuser ID. </li></ul><ul><li>The graph displays a separate line for each Vuser's transaction response time. </li></ul>Note: The drill down feature is not available for the Web Page Breakdown graph.
  104. 104. Changing the Granularity of the Data <ul><li>You can make the graphs easier to read and analyze by changing the granularity (scale) of the x-axis. </li></ul><ul><li>The maximum granularity is half of the graph's time range. To ensure readability and clarity, Analysis automatically adjusts the minimum granularity of graphs with ranges of 500 seconds or more. </li></ul>
  105. 105. Viewing the Data as a Spreadsheet and as Raw Data <ul><li>You can view the graph in spreadsheet format using the Graph Data tab. </li></ul><ul><li>You can view the actual Raw Data collected during test execution for the active graph. The Raw Data view is not available for all graphs. </li></ul>
  106. 106. Correlating Graph Measurements Automatically The minimum time range should be more than 5% of the total time range of the measurement. Trends which are smaller than 5% of the whole measurement will be contained in other larger segments.
  107. 107. Using the WAN Emulation Overlay <ul><li>During scenario execution, you can use WAN effects such as latency, packet loss, link faults, and dynamic routing to characterize many aspects of the WAN cloud. Using the WAN emulation overlay during Analysis, you can display the time period(s) in a scenario that the WAN emulator was active. By comparing measurements taken during WAN emulation to measurements taken with the WAN emulator feature disabled, you can see the impact of WAN settings on your network performance. </li></ul>View > Overlay with WAN Emulation
  108. 108. Cross Result and Merged Graphs <ul><li>The Analysis utility lets you compare results and graphs to determine the source of a problem. </li></ul><ul><li>Comparing results is essential for determining bottlenecks and problems. You use Cross Result graphs to compare the results of multiple scenario runs. You create Merged graphs to compare results from different graphs within the same scenario run. </li></ul>
  109. 109. Cross Result Graphs <ul><li>Cross Result graphs are useful for: </li></ul><ul><ul><li>Benchmarking hardware – Between Two Configurations </li></ul></ul><ul><ul><li>Testing software versions – Between Two Versions </li></ul></ul><ul><ul><li>Determining system capacity – To determine the capacity of the system </li></ul></ul>If you want to benchmark two hardware configurations, you run the same scenario with both configurations and compare the transaction response times using a single Cross Result graph. Suppose that your vendor claims that a new software version is optimized to run quicker than a previous version. You can verify this claim by running the same scenario on both versions of the software, and comparing the scenario results.
  110. 110. Generating Cross Result Graphs <ul><li>File > Cross With Result </li></ul><ul><li>You can create a Cross Result graph for two or more result sets. </li></ul><ul><li>The Cross Result dialog box enables you to compare the results of multiple scenario runs. </li></ul><ul><li>Click Add to add an additional result set to the Result List. </li></ul><ul><li>Locate a results directory and select its result file ( .lrr ). Click OK . The scenario is added to the Result List. </li></ul>
  111. 111. Generating Cross Result Graphs
  112. 112. Merging Graphs <ul><li>Analysis lets you merge the results of two graphs from the same scenario into a single graph. The merging allows you to compare several different measurements at once. For example, you can make a merged graph to display the network delay and number of running Vusers, as a function of the elapsed time. </li></ul><ul><li>Select a graph with which you want to merge your active graph. Only the graphs with a common x-axis to the active graph are available. </li></ul>View > Merge Graphs
  113. 113. Merging Graphs
  114. 114. Understanding the Merge Graphs Dialog Box <ul><li>The Merge Graphs dialog box enables you to merge two graphs into a single graph. In order to merge graphs, the graphs ' x-axes must be the same measurement . For example, you can merge Web Throughput and Hits per Second graphs, because their x-axes are Scenario Elapsed Time. </li></ul>Three Types of Merging : 1. Overlay 2. Tile 3. Correlate
  115. 115. Understanding the Merge Graphs Dialog Box <ul><li>Overlay: Superimpose the contents of two graphs that share a common x-axis. The left y-axis on the merged graph shows the current graph's values. The right y-axis shows the values of the graph that was merged. There is no limit to the number of graphs that you can overlay. When you overlay two graphs, the y-axis for each graph is displayed separately to the right and left of the graph. </li></ul>
  116. 116. Understanding the Merge Graphs Dialog Box <ul><li>Tile: View contents of two graphs that share a common x-axis in a tiled layout, one above the other. In the following example the Throughput and Hits per Second graph are tiled one above the other. </li></ul>
  117. 117. Understanding the Merge Graphs Dialog Box <ul><li>Correlate: Plot the y-axis of two graphs against each other. The active graph's y-axis becomes the x-axis of the merged graph. The y-axis of the graph that was merged, becomes the merged graph's y-axis. </li></ul>
  118. 118. Managing Results Using Quality Center <ul><li>LoadRunner's integration with Quality Center lets you manage Analysis result sessions using Quality Center, Mercury's test management tool. </li></ul><ul><li>LoadRunner works together with Quality Center to provide an efficient method for storing and retrieving scenarios and collecting results. </li></ul>
  119. 119. Importing External Data <ul><li>The LoadRunner Analysis Import Data tool enables you to import and integrate non-Mercury data into a LoadRunner Analysis session. </li></ul>
  120. 120. Importing External Data…Supporting Formats <ul><li>NT Performance Monitor (.csv)‏ </li></ul><ul><li>Windows 2000 Performance Monitor (.csv)‏ </li></ul><ul><li>Standard Comma Separated File (.csv)‏ </li></ul><ul><li>Master-Detail Comma Separator File (.csv)‏ </li></ul><ul><li>Microsoft Excel File (.xls)‏ </li></ul><ul><li>Master-Detail Microsoft Excel File (.xls)‏ </li></ul>
  121. 121. Analysis Diagnostics <ul><li>Siebel Diagnostics Graphs </li></ul><ul><li>Siebel DB Diagnostics Graphs </li></ul><ul><li>Oracle Diagnostics Graphs </li></ul><ul><li>J2EE Diagnostics Graphs </li></ul><ul><li>After a scenario run, you can use the Siebel diagnostics graphs to analyze Siebel CRM server performance. </li></ul><ul><li>Siebel diagnostics graphs enable you to trace, time, and troubleshoot individual transactions through Web, application, and database servers . </li></ul>
  122. 122. Analysis Reports <ul><li>Analysis Reports includes the following sections: </li></ul><ul><ul><li>Understanding Analysis Reports </li></ul></ul><ul><ul><li>Creating a Microsoft Word Report </li></ul></ul><ul><ul><li>After running a scenario, you can use the Analysis reports to analyze the performance of your application. </li></ul></ul><ul><li>About Analysis Reports </li></ul><ul><li>Viewing Summary Reports </li></ul><ul><li>Creating HTML Reports </li></ul><ul><li>Working with Transaction Reports </li></ul><ul><li>Data Point Reports </li></ul><ul><li>Failed Transaction Report </li></ul><ul><li>Failed Vuser Report </li></ul><ul><li>Data Point Report </li></ul><ul><li>Detailed Transaction Report </li></ul><ul><li>Transaction Performance by Vuser Report </li></ul>
  123. 123. Analysis Reports <ul><li>Analysis Provides the following Reports </li></ul><ul><ul><li>Summary Report </li></ul></ul><ul><ul><li>HTML Reports </li></ul></ul><ul><ul><li>Transaction Reports </li></ul></ul>
  124. 124. Summary Report The Summary report provides general information about the scenario run. You can view the Summary report at any time from the Analysis window.
  125. 125. HTML Report Reports  HTML Report You can instruct Analysis to create an HTML report. Analysis creates an HTML report for each one of the open graphs.
  126. 126. Transaction Report <ul><li>Transaction reports provide performance information about the transactions defined within the Vuser scripts. These reports give you a statistical breakdown of your results and allow you to print and export the data. </li></ul><ul><li>Transaction Reports are divided into the following categories </li></ul><ul><ul><li>Activity </li></ul></ul><ul><ul><li>Performance </li></ul></ul><ul><ul><ul><li>Data Point, Detailed Transaction, Transaction Performance by Vuser </li></ul></ul></ul>Activity reports provide information about the number of Vusers and the number of transactions executed during the scenario run. The available Activity reports are Scenario Execution , Failed Transaction , and Failed Vusers . Performance reports analyze Vuser performance and transaction times. The available Performance reports are Data Point , Detailed Transaction , and Transaction Performance by Vuser .
  127. 127. Activity Report <ul><li>Scenario Execution </li></ul><ul><li>Failed Transaction </li></ul><ul><li>Failed Vusers </li></ul>
  128. 128. Scenario Execution Report <ul><li>The Scenario Execution report is an Activity report that provides details about major events that occurred during the scenario run. This includes information on every Vuser, such as when it was ready to run and for how long it ran. </li></ul>
  129. 129. Failed Transaction Report <ul><li>The Failed Transaction report is an Activity report that provides details about the beginning time, end time, and duration of the failed, but completed transaction. </li></ul>
  130. 130. Failed Vuser Report <ul><li>The Failed Vuser report is an Activity report that provides details about all Vusers that were in the error, stopped, or done : failed states during the scenario execution. The Ready At and Running At times are relative to the computer's system clock. </li></ul>
  131. 131. Data Point Report <ul><li>LoadRunner enables you to record your own data for analysis. You instruct LoadRunner to record the value of an external function or variable, also known as a data point , during the scenario run. </li></ul><ul><li>The data point is set by including an lr_user_data_point function ( user_data_point for GUI Vusers) in your Vuser script. </li></ul><ul><li>The Data Point graph shows the value of the data point during the scenario run. The x- axis represents the number of seconds that elapsed since the start time of the run. The y-axis displays the value of each recorded data point statement. </li></ul><ul><li>The Data Point report is a Performance report that lists the name of the data point, its value, and the time its value was recorded. The values are displayed for each Group and Vuser. </li></ul>
  132. 132. Data Point Report
  133. 133. Detailed Transaction Report <ul><li>The Detailed Transaction (by Vuser) report is a Performance report that provides a list of all transactions executed by each Vuser during a scenario. The report provides details about the execution time of each transaction per Vuser. </li></ul>
  134. 134. Transaction Performance by Vuser Report <ul><li>Is a Performance report that displays the time required by each Vuser to perform transactions during the scenario. </li></ul><ul><li>The report indicates if the transaction was successful and what the minimum, maximum, and average times were for each Vuser. </li></ul><ul><li>This report is useful when you have several different types of Vusers in a scenario and you want to characterize performance for each type. </li></ul>
  135. 135. Transaction Performance by Vuser Report
  136. 136. Creating a Microsoft Word Report <ul><li>You can create a report as a Microsoft Word document. </li></ul><ul><li>Word Report generation tool to automatically summarize and display the test's significant data in graphical and tabular format and to display and describe all graphs in the current Analysis session. </li></ul><ul><li>Other features of the report include the automatic inclusion of an overview of the LoadRunner Scenario configuration, and an executive summary. </li></ul><ul><li>The report is structured into logical and intuitive sections with a table of contents and various appendices. </li></ul>
  137. 137. Creating a Microsoft Word Report Reports > Microsoft Word Reports...
  138. 138. Creating a Microsoft Word Report
  139. 139. Q & A Gurpreet Singh QA-Lead

Editor's Notes

  • Session on Load Runner8.0 by Mahesh Anton [email_address]
  • Session on Load Runner8.0 by Mahesh Anton [email_address]
  • Session on Load Runner8.0 by Mahesh Anton