loadrunner-analyzing scenario execution chapter 5

16
Krish Hegde 1 Analyzing Scenario Execution • After running a scenario, you can use LoadRunner’s graphs and reports to analyze the performance of your application.

Upload: api-3738664

Post on 11-Apr-2015

1.202 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 1

Analyzing Scenario Execution

• After running a scenario, you can use LoadRunner’s graphs and reports to analyze the performance of your application.

Page 2: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 2

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 foreach 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 transactionsand Vusers that can be used to determine system performance. You canstudy individual graphs or you can compare graphs from several scenariosusing Cross-Scenario analysis.• The Spreadsheet and Raw Data views display the actual data used togenerate the graph in a spreadsheet format.• The Export data utility enables you to export scenario results to text ordatabase files for use with external applications such as spreadsheetprograms.

Page 3: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 3

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.

Page 4: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 4

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

Page 5: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 5

Analysis Graphs & Reports

LoadRunner’s graphs and reports are divided into the following categories:

1. Activity: Activity graphs and reports provide information about the number of Vusers and the number of transactions executed during the scenario run.

2. Performance: Performance graphs and reports analyze Vuser performance and transaction times.

3. Web: Web graphs provide information about the throughput and hits of Web Vusers.

Page 6: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 6

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.

Page 7: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 7

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

Page 8: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 8

Transaction Response Time

Page 9: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 9

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.

Page 10: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 10

Reports

Page 11: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 11

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:

1. 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.

2. Analysis Window - Generate raw data text files with performance information.

3. Reports - Save report data in a format compatible with a spreadsheet application or Microsoft Mail.

Page 12: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 12

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:

1. Running Virtual Users Graph2. Rendezvous Graph and Report3. Transactions per Second Graph (Passed)4. Transactions per Second (Failed) Graph5. Failed Transactions Report6. Failed Vuser Report7. Scenario Execution Report

Page 13: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 13

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.

Page 14: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 14

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.

Page 15: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 15

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.

Page 16: LoadRunner-Analyzing Scenario Execution Chapter 5

Krish Hegde 16

• Questions?