Assigning Properties to Scripts scenario - LoadRunner

The Scenario Scripts pane displays a list of scripts you selected for the scenario.

Assigning Properties to Scripts scenario

The % of Target column indicates the percentage of the overall target number of Vusers, pages per minute, hits per second, transactions per second, or transaction response time that is automatically distributed to each Vuser script. The Load Generators column automatically contains <All Load Generators> for each Vuser script.

To modify the percentage of Vusers assigned to a script:

In the script’s % of Target column, enter a percentage of the total target number of Vusers, pages per second, hits per second, transactions per second, or transaction response time you want LoadRunner to reach during the scenario. During the scenario, LoadRunner attempts to reach the percentage of the total that you stipulate for each script in the scenario.

To add or modify load generator(s) for a script:

  1. In the script’s Load Generators column, select one or more machine(s) from the Load Generator Name list, and click OK. If you select multiple machines, the Vusers assigned to the script are distributed evenly among the load generators.
  2. Alternatively, you can choose Add to add a load generator to the list. The Add New Load Generator dialog box opens:

    To add or modify load generator(s) for a script

  3. Type the name of the load generator in the Name box.
  4. In the Platform box, select the type of platform on which the load generator is running.
  5. In the Temporary Directory box, type a location of the load generator where the Controller can store temporary files, or leave the field empty to accept the default location. By default, LoadRunner stores temporary files on the load generator during scenario execution, in a temporary directory specified by the load generator’s TEMP or TMP environment variables.
  6. To allow the load generator to take part in the scenario, check Enable load generator to take part in the scenario.
  7. Click More to expand the dialog box and show the Add Load Generator tabs.
  8. Click OK to close the Add Load Generator dialog box. LoadRunner adds the new load generator to the Load Generator Name list. To include the new load generator in your scenario, select it from the Load Generator Name list, and click OK. Note that you can select multiple load generators. Repeat the above procedure for each load generator you want to add to your scenario.

Configuring Load Generators

You can set a load generator’s attributes while adding it to the load generator list, or modify the attributes of an existing load generator at any time, using the Load Generators dialog box. You can also use the Load Generators dialog box to indicate which load generators will run Vusers in the scenario. For example, if a load generator is unavailable for a particular scenario run, you can use the Load Generators dialog box to exclude it temporarily instead of removing it entirely from your list of load generators. For instructions on using the Load Generators dialog box, see “Configuring Load Generators”. To configure additional load generator settings, see “Configuring Load Generator Settings”.

To configure global settings for all load generators participating in the scenario, use LoadRunner’s Options dialog box. For more information, see “Configuring a Scenario.”

Load Balancing

Load balancing evenly distributes the load generated by Vusers among the requested load generator machines, ensuring an accurate load test. When a Windows load generator machine’s CPU usage becomes overloaded, the Controller stops loading Vusers on the overloaded load generator, and automatically distributes them among load generators taking part in the scenario. Only where there are no other load generators in the scenario does the Controller stop loading Vusers.

You can monitor the status of a machine’s CPU usage using the icons in the Load Generators dialog box. When the CPU usage of a load generator becomes problematic, the icon to the left of the load generator name contains a yellow bar. When the machine becomes overloaded, the icon contains a red bar.


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

LoadRunner Topics