Configuring Scripts - LoadRunner

Once you select a script for a Vuser or Vuser group, you can edit the script, or view the details of the script you selected, from the Vusers or Group Information dialog boxes.

To edit and view the details of a script used by a Vuser group:

  1. Select the Vuser group whose script you want to modify, and click the Details button to the right of the Scenario Groups pane, or right-click the Vuser group and select Details. The Group Information dialog box opens displaying the current Name, Path, and Type of the script.

    Configuring-Scripts

  2. Click Run-Time Settings to set the script’s run-time settings (optional).
    Note: If you modify the run-time settings from the Controller, LoadRunner runs the script using the modified settings. To restore the initial settings, click the Refresh button and select Run-Time Settings.
  3. To edit the script, click View Script. The script generation tool, VuGen, opens. For more information on editing scripts, see the Mercury Virtual User Generator User’s Guide.
    Note: If you use VuGen to make changes to a script while the Controller is running, click the Refresh button and select Script to update the script details in the scenario.
  4. Click More to expand the Group Information dialog box and view additional script information.

    Configuring-Scripts

  5. In the Command Line box, type any command line options to use when running the script. For example: -x value -y value
  6. To see the rendezvous points included in the selected script, click the Rendezvous tab.
  7. To see the list of Vusers associated with the selected script, click the Vusers tab.

    Configuring-Scripts

    If you have not yet created Vusers, the box will be empty.

  8. To see the list of files used by the script, click the Files tab.

    Configuring-Scripts

    By default, this list shows all files in the script’s directory (only after your script has been added to the script list). These files include the configuration settings file, the init, run, and end portions of the script, the parameterization definitions file, and the .usr file. To add a file to the list, click Add and add the file name. You can delete the files that you add, but not the other files listed.
    Note: To run Visual C++ Vusers on a remote load generator machine, you must add the .dll of the Vuser to the Files used by script list.

  9. Click OK to close the Group Information dialog box.

To edit and view the details of a script used by an individual Vuser:

  1. Click the Vusers button to the right of the Scenario Groups pane. The Vusers dialog box opens.

    edit and view the details of a script used by an individual Vuser

  2. To view details of a script, click Details. The script’s name and path are displayed in the Vuser Information dialog box. To select a different script, click the Browse button and select the path and file name of the new script. To select a VB Vuser script, browse to locate 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.
  3. To edit a script, right-click the script in the Vusers dialog box, and select View Script. The script generation tool, VuGen, opens.
  4. To modify the run-time settings you specified while recording a script using VuGen, right-click the script in the Vusers dialog box, and select Run-Time Settings. Note that modifying the run-time settings for one Vuser will modify the run-time settings for all the Vusers in the group that are using the same script.

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

LoadRunner Topics