Configuring Vusers in a Vuser Group - LoadRunner

You can define properties for individual Vusers within the Vuser groups you have defined, using the Vusers dialog box. To each Vuser you can assign a different script and/or load generator machine.

To define properties for individual Vusers:

  1. Select the Vuser group whose Vusers you want to modify, and click the Vusers button to the right of the Scenario Groups pane. The Vusers dialog box opens.

    define properties for individual Vusers

  2. To change the script for an individual Vuser, select a different script in the Script column. Alternatively, you can click the Details button, and select a different script from the script list in the Vuser Information dialog box.
  3. To change the load generator on which a Vuser runs, select a different load generator in the Load Generator column. Alternatively, you can click the Details button, and select a different load generator from the Load Generator Name list in the Vuser Information dialog box. To use a load generator that does not appear, select Add from the Load Generator Name list and add a new load generator using the Add Load Generator dialog box.

Understanding the Vusers Dialog Box

The Vusers dialog box displays the status of the Vusers in the group. Choose the scenario group from the list at the top of the dialog box.

Show the Selected Vusers: Opens a Run-Time Viewer for each selected Vuser.

Hide the Selected Vusers: Closes the Run-Time Viewers that were opened.

Open Vuser Log: Displays a log containing run-time information about the Vuser that is refreshed, by default, every 1000 milliseconds.

Close Vuser Log: Closes the Vuser log.

ID: Displays the Vuser’s ID number.

Status: Displays the Vuser’s status. The possible statuses are:

Understanding the Vusers Dialog BoxUnderstanding the Vusers Dialog Box

Script: Displays the script run by the Vuser.

Load Generator: Displays the load generator machine on which the Vuser is running.

Elapsed Time: Displays the amount of time that has elapsed in the scenario since the Vuser began running.

Run: Instructs the Controller to begin running the Vuser.

Stop: Instructs the Controller to stop running the Vuser.

Gradual Stop: Instructs the Controller to complete the current iteration or action before stopping the Vuser. This option is only available when the Vuser is in the RUN state, if you selected theWait for the current iteration to end before exiting or Wait for the current action to end before exiting options in the Run-Time Settings tab of the Options dialog box.

Reset: Resets the status of the Vuser toDown.

Details: Opens the Vuser Information dialog box.

Add Vusers: Opens the Add Vusers dialog box so that you can add one or more Vusers.

The following additional right-click options are available:

  • Renumber: Renumbers the Vusers in the group, changing each Vuser ID
  • Run-Time Settings: Opens the Run-Time Settings dialog box, enabling you to edit the script run-time settings you previously set using VuGen. If you did not set run-time settings for a script in VuGen, the default VuGen settings are displayed for all but the Log and Think Time tabs, which display the default Controller settings. For information on the run-time settings, see the VuGen Help.
    Note: Changing the run-time settings for one Vuser changes the run-time settings for all of the Vusers in the group.
  • View Script: Opens the Virtual User Generator so that you can edit the script. For more information on editing scripts, see the Mercury Virtual User Generator User’s Guide.
  • Initialize Vuser/s: Distributes the Vuser to its designated load generator so that it is ready to execute its script. If a Vuser fails to initialize, its status changes toError.
  • Pause: Temporarily pauses the Vuser’s execution of its script.
    Note: Pausing a Vuser group will affect its transaction response time.
  • Show Vuser: Opens the Run-Time Viewer and displays the Vuser executing its script.
  • Hide Vuser: Closes the Run-Time Viewer showing the Vuser executing its assigned script.
  • Show Vuser Log: Displays a log containing run-time information about the Vuser that is refreshed, by default, every 1000 milliseconds.
  • Hide Vuser Log: Closes the Vuser script log.
  • Filter Vusers:Filters the Vusers displayed in the Vusers dialog box by status. Note that you can also select the filter option you want to use from the filter selector at the top of the Vusers dialog box.
  • Sort Vusers: Sorts the Vusers in the group by ID, Status, Script, Load Generator, or Elapsed Time.

Understanding the Vuser Information Dialog Box

The Vuser Information dialog box displays details about a specific Vuser in a group, and lets you modify the load generator and script settings for the Vuser.

Group Name: Displays the name of the group to which the selected Vuser belongs.

Vuser Name: Displays the name of the selected Vuser.

Load Generator Name: Displays the name of the selected Vuser’s load generator. To specify a different load generator, select one from the Load Generator Name list. Select Add to specify a new load generator.

Select Script: Displays the available scripts in the current directory.

  • Script Name: Select the script you want the Vuser you selected to use. The script appears in the Script Name column.
  • Script Path: Displays the script directory’s path.
  • Browse: Select a script from a different directory. To select a VB Vuser script, browse to locate the .usr file.
  • Record: Opens VuGen so that you can begin recording a script.
  • Run-Time Settings: Opens the Run-Time Settings dialog box, enabling you to edit the script run-time settings you previously set using VuGen. If you did not set run-time settings for a script in VuGen, the default VuGen settings are displayed for all but the Log and Think Time tabs, which display the default Controller settings. For information on the run-time settings, see the VuGen Help.

Adding Vusers to a Vuser Group

You add Vusers to a Vuser group and define their properties using the Add Vusers dialog box.

Note: You can activate additional Vusers while the scenario is running, using the Run/Stop Vusers dialog box.

To add Vusers to a Vuser group:

  1. In the Vusers dialog box, click the Add Vuser(s)button. The Add Vusers dialog box opens.

    add Vusers to a Vuser group:

  2. From the Group Name box, select the name of the Vuser group.
  3. From the Quantity to add box, select the number of Vusers that you want to add to the group.
  4. Select a load generator from the Load Generator Name list. To use a load generator that does not appear, select Add from the Load Generator Name list and add a new load generator using the Add Load Generator dialog box.
  5. Select a script from the script list. To use a script that does not appear, click the Browse button. Browse to select the path and file name of the new script.
  6. Click OK to close the Add Vusers dialog box. The new Vuser’s properties appear in the Vusers dialog box.

Understanding the Add Vusers Dialog Box

Adds a new Vuser to the Vuser group.

Group Name: Enter the name of the group to which you want to add a Vuser.

Load Generator Name: Select the name of the load generator machine for the new Vuser. Choose a previously existing load generator from the list or create a new load generator by choosing Add. The Add Load Generator dialog box opens.

Quantity to add: Select the number of Vusers you want to add to the group.

Select Script: Displays the available scripts in the current directory.

  • Script Name: Select the script you want the Vuser you are creating to use. The script appears in the Script Name column.
  • Script Path: Displays the script directory’s path.
  • Browse: Select a script from a different directory. To use a VB Vuser script, select the .usr file.
    Note: When you specify the location of a script, you can specify a location that is relative to the current scenario directory.
  • Record: Opens VuGen so that you can begin recording a script.
  • Run-Time Settings: Opens the Run-Time Settings dialog box, enabling you to edit the script run-time settings you previously set using VuGen. If you did not set run-time settings for a script in VuGen, the default VuGen settings are displayed for all but the Log and Think Time tabs, which display the default Controller settings. For information on the run-time settings, see the VuGen Help.

Note: Modifying the run-time settings for the new Vuser will modify the run-time settings for all the Vusers in the group.


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

LoadRunner Topics