Load Runner Executing Scenarios Chapter 4

Embed Size (px)

Citation preview

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    1/14

    Krish Hegde 1

    Executing Scenario

    When you run a scenario, the Vusers areassigned to their hosts and execute theirVuser scripts. During scenario execution,

    LoadRunner: records the durations of the transactions you

    defined in the Vuser scripts

    performs the rendezvous in the rendezvouslist

    collects error and notification messagesgenerated by the Vusers

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    2/14

    Krish Hegde 2

    Executing Scenario

    You can run an entire scenario unattended, oryou can interactively select the Vuser Groupsand Vusers that you want to run.

    When the scenario starts running, the Controller

    first checks the scenario configurationinformation. Next, it invokes the applications thatyou selected to run with the scenario. Then, itdistributes each Vuser script to its designatedhost. When the Vusers are ready, they startexecuting their Vuser scripts.

    While the scenario runs, you can pause and stopindividual Vuser Groups and Vusers.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    3/14

    Krish Hegde 3

    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.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    4/14

    Krish Hegde 4

    Executing Scenario

    Choose Scenario > Start, or click the

    Start button. The Controller startsinitializing the Vusers and distributing

    them to their designated hostswhere

    they begin to execute their Vuser scripts.

    Choose Scenario > Stop, or click the

    Stop button to terminate the scenario.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    5/14

    Krish Hegde 5

    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.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    6/14

    Krish Hegde 6

    Executing Scenario

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    7/14

    Krish Hegde 7

    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.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    8/14

    Krish Hegde 8

    Online Monitor

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    9/14

    Krish Hegde 9

    Set Monitor Options

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    10/14

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    11/14

    Krish Hegde 11

    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 graphindicates the color and measurement.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    12/14

    Krish Hegde 12

    Understand Online Monitor Graph

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    13/14

    Krish Hegde 13

    Network Monitoring

    Network configuration is a primary factor in theperformance of client/server and web systems. A poorlydesigned network can slow client activity to unacceptablelevels.

    You can use LoadRunners Network monitoring todetermine which network segment is causing the delay.Once you determine this, you can concentrate onimproving the problematic segment.

    In order to monitor a scenarios network activity, you

    must enable Network monitoring and specify the path tomonitor, before running the scenario. The monitorrecords the network activity on all of the segments of thespecified path.

  • 8/14/2019 Load Runner Executing Scenarios Chapter 4

    14/14

    Krish Hegde 14

    Questions?