You are on page 1of 16

Analyzing Scenario Execution

• After running a scenario, you can use


LoadRunner’s graphs and reports to
analyze the performance of your
application.

Krish Hegde 1
Analyzing Scenario Execution
After running a scenario, you can view a summary of the results to
determine how your system performed. You can view the results in several
ways:
• The Vuser output file, output.txt, contains a full trace of the scenario run for
each Vuser. This file is located in the scenario results directory.
• The Controller Output window displays information about the scenario run.
If your scenario run fails, look for debug information in this window.
• The Analysis graphs and reports provide information about transactions
and Vusers that can be used to determine system performance. You can
study individual graphs or you can compare graphs from several scenarios
using Cross-Scenario analysis.
• The Spreadsheet and Raw Data views display the actual data used to
generate the graph in a spreadsheet format.
• The Export data utility enables you to export scenario results to text or
database files for use with external applications such as spreadsheet
programs.

Krish Hegde 2
Starting the Analysis
• The Analysis is the LoadRunner component that
processes results gathered during a scenario
execution and generates graphs and reports.
You can open the Analysis through the
LoadRunner program group or directly from the
Controller.
• To open the Analysis directly from the Controller,
select Results > Analyze Results. This option
is only available after running a scenario. It
automatically takes the latest result file from the
current scenario, and opens it.
Krish Hegde 3
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

Krish Hegde 4
Analysis Graphs & Reports
LoadRunner’s graphs and reports are divided into
the following categories:
• Activity: Activity graphs and reports provide
information about the number of Vusers and
the number of transactions executed during
the scenario run.
• Performance: Performance graphs and
reports analyze Vuser performance and
transaction times.
• Web: Web graphs provide information about
the throughput and hits of Web Vusers.

Krish Hegde 5
Viewing part of a Scenario
• You can instruct LoadRunner to calculate
graphs and reports based on a part of the
scenario. To do that, filter time slots.
• Choose Options > Time Filter in the
Analysis window.

Krish Hegde 6
Working with Analysis Graphs
• LoadRunner also provides tools which
enable you to modify the way that graphs
are displayed. For each graph you can:
– filter specific transactions and Vusers
– enlarge a section of the graph
– change the interval of the x-axis

Krish Hegde 7
Transaction Response Time

Krish Hegde 8
Working with Analysis Report
• In order to view a report, you must generate the
report from the LoadRunner Analysis window.
LoadRunner reports are displayed in a Report
Viewer. You can print, save, or export the data
using the viewer.
• To display a report:
1 In the Analysis window, choose File > Open to
open the desired results file.
2 From the Reports menu choose a report. The
report is generated and displayed. You can
display multiple copies of the same report.

Krish Hegde 9
Reports

Krish Hegde 10
Exporting Data from Analysis
• You can export performance data to a spreadsheet
application or to a statistical analysis application for
further processing. You can export from:
• Graphs - Use the Spreadsheet or Raw Data view to
copy and paste data directly into a spreadsheet
program or save graph data as an Excel file.
• Analysis Window - Generate raw data text files with
performance information.
• Reports - Save report data in a format compatible with
a spreadsheet application or Microsoft Mail.

Krish Hegde 11
Analyzing Scenario Activity
• After running a scenario, you can analyze the Vuser
activity that occurred during the scenario to check that
the scenario ran as planned. You can use the following
graphs or reports to analyze Vuser activity:
• Running Virtual Users Graph
• Rendezvous Graph and Report
• Transactions per Second Graph (Passed)
• Transactions per Second (Failed) Graph
• Failed Transactions Report
• Failed Vuser Report
• Scenario Execution Report

Krish Hegde 12
Performance Graphs
• LoadRunner allows you to generate
graphs that show scenario activity or
overall scenario performance. Scenario
performance graphs and reports let you
analyze Vuser behavior throughout the
scenario.
• The Performance graphs map the
transaction response time, and other
general information about the scenario.

Krish Hegde 13
Cross Scenario Analysis
• LoadRunner cross-scenario analysis graphs
allow you to compare results and performance
data from various scenarios on a single graph.
• You can filter graphs to display selected
scenarios, transactions, or Vusers.
• By comparing the scenario results, you can
determine which Vusers had acceptable
response times and what event caused a
bottleneck.

Krish Hegde 14
Web Vuser Graphs

• After a scenario run, you can use graphs


to analyze web server performance. Web
Vuser graphs can help you analyze the
behavior and performance of your web
site.

Krish Hegde 15
• Questions?

Krish Hegde 16

You might also like