Scheduling a Scenario - LoadRunner

Using the Schedule Builder, you can control the execution of your scenario by:

  • limiting the scenario duration.
  • gradually running Vusers within a scenario
  • gradually stopping Vusers within a scenario

To set the scheduling options for a scenario:

  1. Select the Schedule by Scenario option.

    To set the scheduling options for a scenario

  2. To determine how to start the scenario, click the Ramp Up tab. Choose one of the following options:
    • Load all Vusers simultaneously: Starts all the Vusers in the scenario at once.
    • Start X Vusers every X (HH:MM:SS): Begins running the specified number of Vusers concurrently, and waits the specified time between Vuser ramp ups.

    Note: While a scenario is running, you can add Vuser groups/scripts to a scenario and enable them. In the gradual ramp up mode, if you add a Vuser group/script after all the Vusers in the scenario have been ramped up, the new group/script will start loading immediately

  3. To instruct LoadRunner to initialize Vusers before beginning to load them, select Initialize all Vusers before ramp up. Note that LoadRunner will only begin to load the Vusers once they have all reached the Ready status.
  4. To set the duration of the scenario, select the Duration tab. Choose one of the following options:

    To set the scheduling options for a scenario

    • Run until completion
    • Run for X (HHH:MM:SS) after the ramp up has been completed: Runs the scenario for a specified amount of time, once all the Vusers have been ramped up.
    • Run indefinitely

    Note: The duration setting overrides the Vuser iteration settings. This means that if the duration is set to five minutes, the Vusers will continue to run as many iterations as required in five minutes, even if the run-time settings specify only one iteration. In a scenario of limited duration, the duration time starts to run after all the Vusers reach the Init status. Vusers that take a long time to initialize may not reach the Run status before the scenario ends. To ensure that all Vusers run in the scenario, check the Initialize all Vusers before Run check box. Duration time only starts when all Vusers reach the Run status

  5. To determine how to stop the scenario, click the Ramp Down tab.

    To set the scheduling options for a scenario

    Choose one of the following options:

    • Stop all Vusers simultaneously: Stops all the Vusers in the scenario at once.
    • Stop X Vusers every X (HH:MM:SS): Stops a certain number of Vusers within a specified time frame.
  6. Click OK to close the Schedule Builder and save your settings.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

LoadRunner Topics