Download - Load Runner Presentation
© Copyright IBM Corporation 2005
LoadRunner8.0By MERCURY
Sairam Tripathy
© Copyright IBM Corporation 2005
D a y - 1
© Copyright IBM Corporation 20053
Agenda – Day 1 (LoadRunner Overview )
Introducing LoadRunner What’s New in LoadRunner 8.0? LoadRunner Terminology LoadRunner Components Load Test Workflow How LoadRunner Works? LoadRunner Solution Types of Performance Testing Objectives of Performance Testing When is Load Testing Needed? Why Load Test your Application? Questions A Performance Test Should Answer. Supporting Environments
© Copyright IBM Corporation 20054
Introduction to LoadRunner 8.0
LoadRunner is a Mercury Interactive Tool that predicts performance and behavior of the system
By creating lots of load, you can see how the system reacts at peak levels or with simultaneous Users
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.
© Copyright IBM Corporation 20055
What's New in LoadRunner 8.0 ?
What’s new In Load Testing?
The first unified application for Performance Testing, Tuning and Diagnostics.
Accurate prediction of system performance, pinpoint application bottlenecks and resolve infrastructure bottlenecks
Provides a web-based, enterprise-wide load testing solutions
Contd…
Load Testing
© Copyright IBM Corporation 20056
What's New in LoadRunner 8.0 ?
What’s new In Diagnosing?
Introduces J2EE Diagnostics, Siebel Diagnostics, and Oracle Diagnostics
Gives the complete visibility into J2EE, Siebel and Oracle component Performance under Load
First time you can drill down from a slow end user transaction all the way to the slow method
Diagnosing
Contd…
© Copyright IBM Corporation 20057
What’s New in LoadRunner 8.0 ?
What’s new In Tuning? A complete solution to help you identify, isolate, and
resolve performance problems in your infrastructure Tuning console is a part of Mercury Interactive’s
performance center product line, which is a comprehensive solution for performance testing, tuning, and diagnostics.
Tuning
© Copyright IBM Corporation 20058
LoadRunner Terminology
Scenarios- Using LoadRunner, you divide your application performance testing requirements into
scenarios.- A scenario defines the events that occur during each testing sessions.- 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.
Vusers- In a scenario, LoadRunner replaces human users with virtual users or Vusers.- When you run a scenario, Vusers emulate the actions of human users—submitting input
to the server. - A scenario can contain tens, hundreds, or even thousands of Vusers.
Contd….
LoadRunner 8.0
© Copyright IBM Corporation 20059
LoadRunner Terminology
Vuser Scripts- The actions that a Vuser performs during the scenario are described in a Vuser script.- 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.
Transactions- To measure the performance of the server, you define transactions. - Transactions measure the time that it takes for the server to respond to tasks
submitted by Vusers.
Contd….
© Copyright IBM Corporation 200510
LoadRunner Terminology
Rendezvous Points- You insert rendezvous points into Vuser scripts to emulate heavy user load on the server. - Rendezvous points instruct multiple Vusers to perform tasks at exactly the same time. - 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.
Controller- You use the LoadRunner Controller to manage and maintain your scenarios. - Using the Controller, you control all the Vusers in a scenario from a single workstation.
Contd….
© Copyright IBM Corporation 200511
LoadRunner Terminology
Hosts- When you execute a scenario, the LoadRunner Controller distributes each
Vuser in the scenario to a host. - The host is the machine that executes the Vuser script, enabling the Vuser to
emulate the actions of a human user.
Performance Analysis- Vuser scripts include functions that measure and record system performance
during load-testing sessions. - During a scenario run, you can monitor the network and server resources. - Following a scenario run, you can view performance analysis data in reports
and graphs.
© Copyright IBM Corporation 200512
LoadRunner Components
ControllerVuGen
Analysis
LoadRunner
Tuning
Contd….
© Copyright IBM Corporation 200513
VuGen (Virtual User Generator) – records Vuser Scripts that emulate the steps of real Users using the application
The Controller is an administrative center for creating, maintaining, and executing scenarios. The controller assigns Vusers and load generators to scenarios.
Starts and stops load tests, and perform other Administrative tasks
Components of LoadRunner 8.0 Components of LoadRunner 8.0
Contd….
© Copyright IBM Corporation 200514
Components of LoadRunner 8.0
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.
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.
© Copyright IBM Corporation 200515
Load Test Work Flow
© Copyright IBM Corporation 200516
How LoadRunner Works?
© Copyright IBM Corporation 200517
How LoadRunner Works?
© Copyright IBM Corporation 200518
The LoadRunner Solution
Contd….
© Copyright IBM Corporation 200519
The LoadRunner Solution
The LoadRunner automated solution addresses the drawbacks of manual performance testing:
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.
Because numerous Vusers can run on a single computer, LoadRunner reduces the hardware requirements.
The LoadRunner Controller allows you to easily and effectively control all the Vusers — from a single point of control.
LoadRunner monitors the application performance online, enabling you to fine-tune your system during test execution.
Contd….
© Copyright IBM Corporation 200520
The LoadRunner Solution
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.
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.
Because LoadRunner tests are fully automated, you can easily repeat them as often as you need.
© Copyright IBM Corporation 200521
Types of Performance Testing
Find out whether the system can handle the expected load upon deployment under real-world conditions.
Load Testing
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.
Stress Testing
Find the stability of the system with respect to handling large amounts of data over extended time periods.
Volume Testing
Find the behavior and performance of each tier. Component
Testing
© Copyright IBM Corporation 200522
Objectives of Performance Testing
How long does it take to complete a task?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?
© Copyright IBM Corporation 200523
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
© Copyright IBM Corporation 200524
Why Load Test?
The failure of a mission-critical application can be costly. Assure performance and functionality under real-world conditions. Locate potential problems before your customers do. Reduce development Time. Reduce infrastructure costs
© Copyright IBM Corporation 200525
Questions a performance test should Answer
Does the Application respond quickly enough for the intended users? Will the application handle the expected user load and beyond? Will the application handle the number of transactions required by the business? Is the application stable under expected and unexpected user loads? Are you sure that users will have a positive experience on go-live day?
© Copyright IBM Corporation 200526
Supporting Environments
• Application Deployment Solution - The Citrix protocol.
• Client/Server - MS SQL, ODBC, Oracle Web Applications 11i, DB2 CLI, Sybase Ctlib, Sybase Dblib, Windows Sockets, and DNS protocols.
• Custom - C templates, Visual Basic templates, Java templates, Javascript, and VBScript type scripts.
• Distributed Components - COM/DCOM, Corba-Java, and Rmi-Java protocols.
• E-Business - FTP, LDAP, Palm, Web (HTTP/HTML), Web Services, and the dual Web/Winsocket protocols.
• Enerprise Java Beans -EJB Testing and RMI-Java protocols.
• 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.
Contd….
© Copyright IBM Corporation 200527
Supporting Environments Legacy
Terminal Emulation (RTE).
Mailing Services
Internet Messaging (IMAP), MS Exchange (MAPI), POP3, and SMTP.
Streaming
MediaPlayer and RealPlayer protocols. Wireless
i-Mode, VoiceXML, and WAP protocols.
Internet/Intranet
Web Servers
Clients App. Servers
Database Server
© Copyright IBM Corporation 200528
Supporting Environments
Platforms- NT, 2000, XP- Sun- HP- IBM- Linux
© Copyright IBM Corporation 200529
LoadRunner Architecture
© Copyright IBM Corporation 2005
LoadRunner 8.0 by Mercury
Sairam Tripathy
© Copyright IBM Corporation 2005
© Copyright IBM Corporation 200533
Day 2
Virtual User Generator
&
Controller
© Copyright IBM Corporation 200534
What is Virtual User (Vuser)?
Virtual users or Vusers emulate the steps of real users. The steps that Vusers perform are recorded in a Vuser Script.
Virtual users or Vusers emulate the steps of real users. The steps that Vusers perform are recorded in a Vuser Script.
© Copyright IBM Corporation 200535
What is VuGen (Virtual User Generator) ?
VuGen records Vuser Scripts that emulate the steps of real users using the application
VuGen not only records Vuser scripts, but also runs them. Running scripts from VuGen is useful for debugging
VuGen records sessions on Windows platforms only. However, a recorded Vuser script can run on both Windows and UNIX platform.
Cont…
© Copyright IBM Corporation 200536
What is VuGen (Virtual User Generator) ?
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
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
© Copyright IBM Corporation 200537
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
© Copyright IBM Corporation 200538
Process of Recording Script
Record a basic script Enhance the basic script by adding the control-flow statements and other Mercury API
functions into the Script Configure the Run-time settings Verify that the script runs correctly, run it in stand-alone mode Integrate into your test : a LoadRunner scenario, Performance Center load test, Tuning
module session, Business process monitor profile
© Copyright IBM Corporation 200539
Understanding VuGen Code
When you record a Vuser script, VuGen generates Vuser functions and inserts them into the script. There are two types of Vuser functions: - General Vuser Functions- Protocol-Specific Vuser Functions
The general Vuser functions and the protocol-specific functions together form the Mercury VuGen API.
This API enables Vusers to communicate directly with a server.
© Copyright IBM Corporation 200540
Starting VuGen.Start > Programs > LoadRunner > Applications > Virtual User Generator
© Copyright IBM Corporation 200541
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
© Copyright IBM Corporation 200542
Vuser Script Sections
Each Vuser script contains at least three sections:- vuser_init- one or more Actions and - vuser_end.
Script Section Used when recording... Is executed when...
vuser_init a login to a server the Vuser is initialized (loaded)
Actions client activity the Vuser is in "Running" status
vuser_end a logoff procedure the Vuser finishes or is stopped
© Copyright IBM Corporation 200543
VuGen Editor
© Copyright IBM Corporation 200544
Recording Your Application
Click the Start Recording Button For most Client / Server protocols, the following Screen opens
Recording Tool Bar (Floating Tool Bar)
© Copyright IBM Corporation 200545
Ending and Saving a Recording Session
To complete the recording: 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. Switch to the vuser_end section in the floating toolbar, and perform the log off or
cleanup procedure. Click the stop Recording button on the recording Tool Bar
© Copyright IBM Corporation 200546
Enhancing Vuser Script After you record the Vuser Script you can enhance its capabilities by adding functions like
- General Vuser Functions General Vuser functions greatly enhance the functionality of any Vuser Script. All general
Vuser functions have an LR Prefix- Protocol - specific Vuser Functions
Library functions used to enhance the script. (LRS - Windows, LRT - Tuxedo)- Standard ANSI C functions
Enhancing the Vuser script by adding general C functions. Like Adding Comments, Control flow statements, and so forth to your Vuser Script
Cont…
© Copyright IBM Corporation 200547
Enhancing Vuser Script Inserting Transactions into Vuser Script
- Inserting Rendezvous point- Inserting Comments- Obtaining Vuser Information
Sending Messages to output - Log Messages
Lr_log_message- Debug Messages
Lr_set_debug_message Lr_debug_message
- Error and Output Messages Lr_error_message Lr_output_message
Cont…
© Copyright IBM Corporation 200548
Enhancing Vuser Script
Handling errors on Vuser Script during execution (Runtime settings
> Miscellaneous > Error handling)- By default when a Vuser detects an error, the Vuser stops the execution- You can use the lr_continue_on_error function to override the continue on
error runtime setting - To mark the segment, enclose it with lr_continue_on_error(1); and
lr_continue_on_error(0); statements
Synchronizing Vuser Script- Synchronize the execution of Vuser script with the output from your
application- Synchronize applies only to RTE Vuser Scripts
Cont…
© Copyright IBM Corporation 200549
Enhancing Vuser Script
Emulating User Think Time- The time that a user waits between performing
successive action is known as the Think Time- Vuser uses the lr_think_time function to emulate
user think time
- Vuser > Run-time settings > Think Time
Cont…
© Copyright IBM Corporation 200550
Enhancing Vuser Script
PARAMETERIZINGPARAMETERIZING
© Copyright IBM Corporation 200551
Enhancing Vuser Script
Parameterizing- Parameterization involves the following two tasks:
Replacing the constant values in the Vuser script with parameters Setting the properties and data source for the parameters
- Parameterization Limitations You can use parameterization only for the arguments within a function You can’t parameterize text strings that are not function arguments
Cont…
© Copyright IBM Corporation 200552
Enhancing Vuser Script
Creating Parameters1. In a script View : Select a string and select replace with parameter from the
Right click menu
2. Type the Name of the parameter in the appropriate box or select from the list
3. 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,
Cont…
© Copyright IBM Corporation 200553
Enhancing Vuser Script
VuGen creates new parameter, but does not automatically replace any selected string in the script
Cont…
Vuser >Parameter List (or)
© Copyright IBM Corporation 200554
Enhancing Vuser Script
Tree ViewTree View Script ViewScript View
Cont…
© Copyright IBM Corporation 200555
Enhancing Vuser Script
Select Next Row- Sequential- Random- Unique- Same line as <Pameter_Name>
Update Value on- Each iteration
Instructs the Vuser to use a new value for each script iteration
- Each occurrence Instructs the Vuser to use a new value for each
occurrence of the parameter
- Once Instructs the Vuser to update the parameter value only
once during the execution
Cont…
© Copyright IBM Corporation 200556
Enhancing Vuser Script
DATA WIZARDCont…
1
2
3
4
© Copyright IBM Corporation 200557
Enhancing Vuser Script
CORRELATIONCORRELATION
© Copyright IBM Corporation 200558
Enhancing Vuser Script
- Determine which value to correlate
Using WDiff you can find which string to correlate
- Save the results using Web_reg_save_param and lrs_save_param
- Replace the Saved variable in your query or in your statements
Primary reasons for correlating - To Generate dynamic code
Cont…
© Copyright IBM Corporation 200559
Enhancing Vuser Script
web_reg_save_param(“myval", "LB=userSession value=",
"RB=>", "Ord=1", "RelFrameId=1.2.1", "Search=Body", LAST);
"Name=userSession", "Value={myval}"
Storage Variable
Left boundary
Value
Right boundary
Value
© Copyright IBM Corporation 200560
LoadRunner 8.0
Run-time SettingsRun-time Settings
© Copyright IBM Corporation 200561
RunTime Settings
Run LogicYou can instruct a Vuser to Repeat the Run section when you run the script. Each repetition is known as iteration
Number of Iterations
LoadRunner repeats all of the actions, the specified number of times.
If you specify a scenario duration in the controller, the duration setting overrides the Vusers iteration settings.
Cont…
© Copyright IBM Corporation 200562
RunTime SettingsPacing
Control the time between iterations.
The pace tells the Vuser how long to wait between iterations of Vuser
You can instruct Vuser by following any of the method below
1. As soon as the previous iteration ends.
2. After the previous iteration ends with a fixed / random delay
3. At fixed / random intervals
Cont…
© Copyright IBM Corporation 200563
RunTime Settings
LogVusers log information about themselves and their communication between server
Two types of Logs
Standard Extended
VuGen writes log messages that you can view in execution log.
lr_log_message. Messages sent manually, using lr_message, lr_output_message, and lr_error_message, are still issued
Cont…
© Copyright IBM Corporation 200564
RunTime Settings
Think TimeWhen 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:
Cont…
© Copyright IBM Corporation 200565
RunTime SettingsRunTime Settings
MiscellaneousYou can set the following Miscellaneous run-time options for a Vuser script:
Error Handling Multithreading
- Vusers support multithreaded environments. The primary advantage of a multithread environment is the ability to run more Vusers per load generator.
Automatic Transactions
© Copyright IBM Corporation 200566
LoadRunner 8.0
CONTROLLERCONTROLLER
© Copyright IBM Corporation 200567
LoadRunner 8.0 - Controller
What is Scenario?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
© Copyright IBM Corporation 200568
LoadRunner 8.0 - Controller
Controller organizes and manages scenario elements During scenario execution the controller :
- Runs Vuser Groups- Controls the initialize, run, pause, and stop conditions of each Vuser- Displays the status of each Vuser- Displays any messages from Vusers- Monitors system and network resources
© Copyright IBM Corporation 200569
LoadRunner 8.0 - Controller
Types of Scenarios Manual Scenario
Manage your Load Test by specifying the number of Virtual users to run
Goal-Oriented Scenario
Allow LoadRunner Controller to create a Scenario based on the goals you specify
© Copyright IBM Corporation 200570
LoadRunner 8.0 - Controller
Manual Scenario- You control the number of Running Vusers at the time which they Run.- You can specify how many Vusers run simultaneously- Allows you to run the Vuser in Percentage mode
© Copyright IBM Corporation 200571
LoadRunner 8.0 - Controller
Goal-Oriented Scenario- Determine your system to achieve the particular goal- The goal may be number of hits per second, Number of transaction per second,
etc.,- Manages Vusers Automatically to maintain and achieve the goal
© Copyright IBM Corporation 200572
LoadRunner 8.0 - Controller
Which scenario to use?
Examples
Scenario Outline Scenario Type
Script Should define UpdateWhen running the Load Test at peak load achieve 1000 concurrent users
Manual Scenario with 1000 users
Define search transactionResponse time of 8 seconds with 2000 concurrent users during non-peak hoursAchieve response time of 12 Secs with 5000 concurrent users during peak hours
Goal-Oriented with transaction time as the ‘Goal Type’
© Copyright IBM Corporation 200573
LoadRunner 8.0 - Controller
Vuser Groups Scenario consists of group of Vusers
which emulate the Human users to interact with your application
Each script you select is assigned a Vuser group
Each Vuser group is assigned a number of Vusers
You can Assign different script to each Vuser or You can assign the same script to all the Vusers
© Copyright IBM Corporation 200574
LoadRunner 8.0 - Controller
Adding Vuser Group- Group Name- Vuser Quantity- Load Generator name
© Copyright IBM Corporation 200575
LoadRunner 8.0 - ControllerLoad Generator for your Scenario Load Generator is a machine that serves as the host for running Vusers Its important to know that which script need to be run from which location For example customer activity, the function of location, workload of location…etc.,
© Copyright IBM Corporation 200576
LoadRunner 8.0 - Controller
Adding Load Generator Click the generators button to open the
dialogue box Now click the add button to open the Add load
generator dialogue box Enter the name and load generator platform
which you want to add A machine must have installed LoadRunner
agent to use as a Load Generator
© Copyright IBM Corporation 200577
LoadRunner 8.0 - Controller
Assigning Number of Vusers
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
© Copyright IBM Corporation 200578
Sairam Tripathy
& A
© Copyright IBM Corporation 2005
LoadRunner 8.0 By Mercury
Sairam Tripathy
© Copyright IBM Corporation 2005
D a y - 3
© Copyright IBM Corporation 200581
Agenda – Day 3
Analysis
&
Reports
Analysis
&
Reports
© Copyright IBM Corporation 200582
LoadRunner Analysis
Analysis provides graphs and reports to help you analyze the performance of your system. These graphs and reports summarize the scenario execution.
Using these graphs and reports, you can easily pinpoint and identify the bottlenecks in your Application
© Copyright IBM Corporation 200583
LoadRunner Analysis
To view a summary of the results after test execution, you can use one or more of the following tools:
Vuser log files contain a full trace of the scenario run for each Vuser. These files are located in the scenario results directory.
Controller Output window displays information about the scenario run. Analysis graphs help you determine system performance and provide
information about transactions and Vusers. Graph Data and Raw Data views display the actual data used to generate the
graph in a spreadsheet format. 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.
© Copyright IBM Corporation 2005
Analysis Basis
© Copyright IBM Corporation 200585
LoadRunner - Analysis
Creating Analysis Session
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.
When you work with the Analysis utility, you work within a session. 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.
© Copyright IBM Corporation 200586
LoadRunner - Analysis
Methods of opening LoadRunner Analysis
Open Analysis directly from the controller (Results > Analyze Results) Start > Programs > Mercury LoadRunner > Applications > Analysis Start > Programs > Mercury LoadRunner > LoadRunner, select the Load Testing or Tuning tab,
and then click Analyze Load Tests or Analyze Tuning Sessions. You can also instruct controller to open analysis automatically after the Scenario execution by
selecting Results > Auto Analysis
© Copyright IBM Corporation 200587
Collating Execution Results
When you run a scenario, by default all Vuser information is stored locally on each Vuser host
After scenario execution the results are automatically collated or consolidated – results from all the hosts are transfer to results directory
You disable automatic collation by choosing Results > Auto collate Results from the controller window
You can collate manually by selecting Results > Collate Results If your results are not collated Analysis will automatically collate the results before
generating the analysis data
© Copyright IBM Corporation 200588
Viewing Summary Data
Analysis : Tools Options
Generate Summary data only
View the summary data only. If this option isselected 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.
© Copyright IBM Corporation 200589
Data Aggregation
Aggregate Data:
Specify the data you want to aggregate in order to reduce the size of the database.
Select the type of data to aggregate:
Specify the type(s) of graphs for which you want to aggregate data.
Select the graph properties to aggregate:
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.
© Copyright IBM Corporation 200590
Setting Database Options
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.
By default, LoadRunner stores Analysis result data in an Access 2000 database.
If your Analysis result data exceeds two gigabytes, it is recommended that you store it on an SQL server
© Copyright IBM Corporation 200591
Session Information
You can view the properties of the current Analysis session in the Session Information dialog box.
© Copyright IBM Corporation 200592
Analysis Graphs
Vuser Graphs - Provide information about Vuser states and other Vuser statistics.
Error Graphs - Provide information about the errors that occurred during the scenario.
Transaction Graphs - Provide information about transaction performance and response time.
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.
Web Page Breakdown Graphs - Provide information about the size and download time of each Web page component.
Analysis graphs are divided into the following categories:
© Copyright IBM Corporation 200593
Analysis Graphs
User-Defined Data Point Graphs - Provide information about the custom data points that were gathered by the online monitor.
System Resource Graphs - Provide statistics relating to the system resources that were monitored during the scenario using the online monitor.
Network Monitor Graphs - Provide information about the network delays. Firewall Server Monitor Graphs - Provide information about firewall server resource usage. Web Server Resource Graphs - Provide information about the resource usage for the Apache,
iPlanet/Netscape, iPlanet(SNMP), and MS IIS Web servers.
© Copyright IBM Corporation 200594
Analysis Graphs
Web Application Server Resource Graphs - Provide information about the resource usage for various Web application servers.
Database Server Resource Graphs - Provide information about database resources.
Streaming Media Graphs - Provide information about resource usage of streaming media.
ERP/CRM Server Resource Graphs - Provide information about ERP/CRM server resource usage.
Java Performance Graphs - Provide information about resource usage of Java-based applications.
Application Component Graphs - Provide information about resource usage of the Microsoft COM+ server and the Microsoft NET CLR server.
Application Deployment Solutions Graphs - Provide information about resource usage of the Citrix MetaFrame and 1.8 servers.
© Copyright IBM Corporation 200595
Analysis Graphs
Middleware Performance Graphs - Provide information about resource usage of the Tuxedo and IBM WebSphere MQ servers.
Security Graphs - Provide information about simulated attacks on the server using the Distributed Denial of Service graph.
Application Traffic Management Graphs - Provide information about resource usage of the F5 BIG-IP server.
Infrastructure Resources Graphs - Provide information about resource usage of FTP, POP3, SMTP, IMAP, and DNS Vusers on the network client.
Siebel Diagnostics Graphs - Provide detailed breakdown diagnostics for transactions generated on Siebel Web, Siebel App, and Siebel Database servers.
Siebel DB Diagnostics Graphs - Provide detailed breakdown diagnostics for SQLs generated by transactions on the Siebel system.
© Copyright IBM Corporation 200596
Analysis Graphs
Oracle Diagnostics Graphs - Provide detailed breakdown diagnostics for SQLs generated by transactions on the Oracle NCA system.
J2EE Diagnostics Graphs - Provide information to trace, time, and troubleshoot individual transactions through J2EE Web, application, and database servers.
© Copyright IBM Corporation 200597
Adding New Graph
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.
Use the Scenario Elapsed Time field to limit the time range for which graph data is displayed.
Graph > Add Graph, or click <New Graph>
To view the entire list of LoadRunner graphs, clear Display
only graphs containing data.
© Copyright IBM Corporation 200598
Filtering & Sorting Graph Data
You can filter and sort data that is displayed in a graph. You sort and filter graph data using the
same dialog box.Filtering Graph Data You can filter graph data to show fewer transactions for a specific segment of the scenario. More specifically, you can display four transactions beginning from five minutes into the scenario
and ending three minutes before the end of the scenario.
You can filter for a single graph, in all graphs in a scenario, or in the summary graph.
© Copyright IBM Corporation 200599
Filtering & Sorting Graph Data
Sorting Graph Data You can sort graph data to show the data in
more relevant ways. 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.
© Copyright IBM Corporation 2005100
Configuring Basic Graph Display Options
View Display Options
© Copyright IBM Corporation 2005101
Configuring Basic Graph Display Options
Adding Comments and Arrows
© Copyright IBM Corporation 2005102
Web Page Break Down
© Copyright IBM Corporation 2005103
Analyzing Graph Results
Determining a Point’s Coordinates Drilling Down in a Graph Changing the Granularity of the Data Viewing the Data as a Spreadsheet and as Raw Data Viewing Measurement Trends Auto Correlating Measurements Using the WAN Emulation Overlay
© Copyright IBM Corporation 2005104
Determining a Point’s Coordinates
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.
© Copyright IBM Corporation 2005105
Drilling Down in a Graph
Drill down enables you to focus on a specific measurement within your graph and display it according to a desired grouping.
The available groupings depend on the graph. For example, the Average Transaction Response Time graph shows one line per transaction.
To determine the response time for each Vuser, you drill down on one transaction and sort it according to Vuser ID.
The graph displays a separate line for each Vuser's transaction
response time.
Note: The drill down feature is not available for the Web Page Breakdown graph.
© Copyright IBM Corporation 2005106
Changing the Granularity of the Data
You can make the graphs easier to read and analyze by changing the granularity (scale) of the x-axis.
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.
© Copyright IBM Corporation 2005107
Viewing the Data as a Spreadsheet and as Raw Data
You can view the graph in spreadsheet format using
the Graph Data tab. 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.
© Copyright IBM Corporation 2005108
Correlating Graph Measurements Automatically
The minimum time range should be more than 5% of the total timerange of the measurement. Trends which are smaller than 5% of the whole measurement will be contained in other larger segments.
© Copyright IBM Corporation 2005109
Using the WAN Emulation Overlay
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.
View > Overlay with WAN Emulation
© Copyright IBM Corporation 2005110
Cross Result and Merged Graphs
The Analysis utility lets you compare results and graphs to determine the source of a problem.
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.
© Copyright IBM Corporation 2005111
Cross Result Graphs
Cross Result graphs are useful for: - Benchmarking hardware – Between Two Configurations- Testing software versions – Between Two Versions- Determining system capacity – To determine the capacity of the system
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.
© Copyright IBM Corporation 2005112
Generating Cross Result Graphs
File > Cross With Result
• You can create a Cross Result graph
for two or more result sets.
• The Cross Result dialog box enables you to compare the results of multiple scenario runs.
• Click Add to add an additional result set to the Result List.
• Locate a results directory and select its result file (.lrr). Click OK. The
scenario is added to the Result List.
© Copyright IBM Corporation 2005113
Generating Cross Result Graphs
© Copyright IBM Corporation 2005114
Merging Graphs
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.
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.
View > Merge Graphs
© Copyright IBM Corporation 2005115
Merging Graphs
© Copyright IBM Corporation 2005116
Understanding the Merge Graphs Dialog Box
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.
Three types of merging:
1. Overlay2. Tile3. Correlate
© Copyright IBM Corporation 2005117
Understanding the Merge Graphs Dialog Box
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.
© Copyright IBM Corporation 2005118
Understanding the Merge Graphs Dialog Box
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.
© Copyright IBM Corporation 2005119
Understanding the Merge Graphs Dialog Box
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.
© Copyright IBM Corporation 2005120
Managing Results Using Quality Center
LoadRunner's integration with Quality Center lets you manage Analysis result sessions using Quality Center, Mercury's test management tool.
LoadRunner works together with Quality Center to provide an efficient method for storing and
retrieving scenarios and collecting results.
© Copyright IBM Corporation 2005121
Importing External Data
The LoadRunner Analysis Import Data tool enables you to import and integrate non-Mercury data into a LoadRunner Analysis session.
© Copyright IBM Corporation 2005122
Importing External Data…Supporting Formats
NT Performance Monitor (.csv) Windows 2000 Performance Monitor (.csv) Standard Comma Separated File (.csv) Master-Detail Comma Separator File (.csv) Microsoft Excel File (.xls) Master-Detail Microsoft Excel File (.xls)
© Copyright IBM Corporation 2005123
Analysis Diagnostics
Siebel Diagnostics Graphs Siebel DB Diagnostics Graphs Oracle Diagnostics Graphs J2EE Diagnostics Graphs
After a scenario run, you can use the Siebel diagnostics graphs to analyze Siebel CRM server
performance. Siebel diagnostics graphs enable you to trace, time, and troubleshoot individual transactions through
Web, application, and database servers.
© Copyright IBM Corporation 2005124
Analysis Reports
Analysis Reports includes the following sections: - Understanding Analysis Reports- Creating a Microsoft Word Report
After running a scenario, you can use the Analysis reports to analyze the performance of your application.
About Analysis Reports Viewing Summary Reports Creating HTML Reports Working with Transaction Reports Data Point Reports Failed Transaction Report Failed Vuser Report Data Point Report Detailed Transaction Report Transaction Performance by Vuser Report
© Copyright IBM Corporation 2005125
Analysis Reports
Analysis Provides the following Reports- Summary Report- HTML Reports- Transaction Reports
© Copyright IBM Corporation 2005126
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.
© Copyright IBM Corporation 2005127
HTML ReportReports HTML Report
You can instruct Analysis to create an HTML report. Analysis creates an HTML report for each one of the open graphs.
© Copyright IBM Corporation 2005128
Transaction Report
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.
Transaction Reports are divided into the following categories- Activity- Performance
Data Point, Detailed Transaction, Transaction Performance by Vuser
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.
© Copyright IBM Corporation 2005129
Activity Report
Scenario Execution Failed Transaction Failed Vusers
© Copyright IBM Corporation 2005130
Scenario Execution Report
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.
© Copyright IBM Corporation 2005131
Failed Transaction Report
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.
© Copyright IBM Corporation 2005132
Failed Vuser Report
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.
© Copyright IBM Corporation 2005133
Data Point Report
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.
The data point is set by including an lr_user_data_point function (user_data_point for GUI Vusers) in your Vuser script.
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.
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.
© Copyright IBM Corporation 2005134
Data Point Report
© Copyright IBM Corporation 2005135
Detailed Transaction Report
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.
© Copyright IBM Corporation 2005136
Transaction Performance by Vuser Report
Is a Performance report that displays the time required by each Vuser to perform transactions during the scenario.
The report indicates if the transaction was successful and what the minimum, maximum, and average times were for each Vuser.
This report is useful when you have several different types of Vusers in a scenario and you want to characterize performance for each type.
© Copyright IBM Corporation 2005137
Transaction Performance by Vuser Report
© Copyright IBM Corporation 2005138
Creating a Microsoft Word Report
You can create a report as a Microsoft Word document. 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.
Other features of the report include the automatic inclusion of an overview of the LoadRunner Scenario configuration, and an executive summary.
The report is structured into logical and intuitive sections with a table of contents and various appendices.
© Copyright IBM Corporation 2005139
Creating a Microsoft Word Report
Reports > Microsoft Word Reports...
© Copyright IBM Corporation 2005140
Creating a Microsoft Word Report
© Copyright IBM Corporation 2005141
Refernce
WWW.MERCURY.COM WWW.WILSONMAR.COM WWW.PERFTEST.COM WWW.24X7BOOKS.COM
© Copyright IBM Corporation 2005142
Sairam Tripathy
Q & A