You are on page 1of 14

Executing Scenario

When you run a scenario, the Vusers are


assigned to their hosts and execute their
Vuser scripts. During scenario execution,
LoadRunner:
– records the durations of the transactions you
defined in the Vuser scripts
– performs the rendezvous in the rendezvous
list
– collects error and notification messages
generated by the Vusers
Krish Hegde 1
Executing Scenario
• You can run an entire scenario unattended, or
you can interactively select the Vuser Groups
and Vusers that you want to run.
• When the scenario starts running, the Controller
first checks the scenario configuration
information. Next, it invokes the applications that
you selected to run with the scenario. Then, it
distributes each Vuser script to its designated
host. When the Vusers are ready, they start
executing their Vuser scripts.
• While the scenario runs, you can pause and stop
individual Vuser Groups and Vusers.
Krish Hegde 2
Prepare to execute Scenario

1. Open an existing scenario or create a


new one.
2. Configure the scenario.
3. Set the results directory.
4. Run and monitor the scenario.

Krish Hegde 3
Executing Scenario

• Choose Scenario > Start, or click the


Start button. The Controller starts
initializing the Vusers and distributing
them to their designated hosts—where
they begin to execute their Vuser scripts.
• Choose Scenario > Stop, or click the
Stop button to terminate the scenario.
Krish Hegde 4
Executing Scenario
• While the scenario runs, the Vusers and
hosts send error and notification
messages to the Controller. You can view
these messages in the Output window.
• The messages in this window are cleared
at the start of each scenario execution.

Krish Hegde 5
Executing Scenario

Krish Hegde 6
Online Monitoring
• You use the online monitors to monitor Vuser
status, transactions, server resources, Web
server resources, and Web application server
resources while running a scenario.
• Start the scenario. Select the Vusers you want to
run and choose Scenario > Start. Click the
Online Monitors tab to open the Online Monitor
view. The default graphs are displayed.
• Tools>Options>Monitor to set monitor options.

Krish Hegde 7
Online Monitor

Krish Hegde 8
Set Monitor Options

Krish Hegde 9
Configuring Online Graphs
• Select the online graph you want to
configure (in either the right or left pane)
and choose Monitors > Online Graphs >
Configure. Alternatively, right-click a
graph and select Configure.

Krish Hegde 10
Understand Online Monitor Graph
• Online monitor graphs display information
about the measurements listed below the
graph. Each value is represented by a
colored line. A legend beneath the graph
indicates the color and measurement.

Krish Hegde 11
Understand Online Monitor Graph

Krish Hegde 12
Network Monitoring
• Network configuration is a primary factor in the
performance of client/server and web systems. A poorly
designed network can slow client activity to unacceptable
levels.
• You can use LoadRunner’s Network monitoring to
determine which network segment is causing the delay.
Once you determine this, you can concentrate on
improving the problematic segment.
• In order to monitor a scenario’s network activity, you
must enable Network monitoring and specify the path to
monitor, before running the scenario. The monitor
records the network activity on all of the segments of the
specified path.
Krish Hegde 13
• Questions?

Krish Hegde 14

You might also like