Assigning Properties to Scripts - LoadRunner

The Scenario Scripts pane displays a list of scripts you selected in the New Scenario dialog box, or defined in the Vuser Group Mode.

Assigning Properties to Scripts

The % column indicates the percentage of the total number of Vusers that is automatically distributed to each Vuser script. During scenario execution, each script runs the percentage of Vusers assigned to it. The Load Generators column automatically contains <All Load Generators> for each Vuser script.

Note: If you defined multiple load generators for a Vuser group, the Vusers you assign to the script(s) in the Percentage Mode will be distributed evenly among the load generators you previously assigned to the group.

For each script you can modify:

  • the percentage of the total number of Vusers assigned to the script
  • the load generator(s) on which the Vusers will execute the script

To modify the percentage of Vusers assigned to a script:

In the script’s % column, enter a percentage of the total number of Vusers you defined in the Scenario Schedule pane. The percentages assigned to the other scripts change to create a total of 100 percent for all of the Vuser scripts.

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:
  3. To add or modify load generator(s) for a script

  4. Type the name of the load generator in the Name box.
  5. In the Platform box, select the type of platform on which the load generator is running.
  6. In the Temporary Directory box, type a location on the load generator, where the Controller can store temporary files, or leave 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.
  7. To allow the load generator to take part in the scenario, check Enable load generator to take part in the scenario.
  8. Click More to expand the dialog box and show the Add Load Generator tabs.
  9. 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. Repeat the above procedure for each load generator you want to add to your scenario. 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.

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. To configure global settings for all load generators participating in the scenario, use LoadRunner’s Options dialog box.


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

LoadRunner Topics