View/Modify scripts in the scenario

This section describes how to view and modify scripts used in your load test scenario.

You view or modify the details of the scripts in the Group Information dialog box (for details, see Group Information dialog box) or in the Script Information dialog box (for details, see Script Information dialog box).

View script details

You can view the details of a script by right-clicking the script in the Scenario Groups/Scripts pane and selecting Details.

In the Group/Script Information dialog box that opens, you can:

  • View details about the script, including:

    • Script path

    • Command line options

    • Rendezvous points included in the script

    • Vusers associated with the script

    • Files associated with the script

  • Note: If you do not see some of the details listed above, click More.

  • Open the script in VuGen by clicking the View Script button

  • View the script's runtime settings by clicking the Runtime Settings button

Back to top

Modify a script's runtime settings

    Modifying the runtime settings for one Vuser in a group modifies the runtime settings for all the Vusers in that group that are using the same script.

    For details about specific runtime settings, see Configure runtime settings in the VuGen help center (select the relevant version).

  • When you modify the runtime settings from Controller, LoadRunner Professional runs the script using the modified settings. The modified runtime settings apply only in the current scenario. The runtime settings in the original script file are not affected.

  • To view or modify a script's runtime settings, in the Scenario Groups/Scripts pane right-click the script and select Runtime Settings.

  • To view or modify runtime settings of a script associated with a particular Vuser, in the Vusers dialog box (Scenario Groups pane > Vusers ) right-click the Vuser and select Runtime Settings.

Back to top

Modify multiple scripts' runtime settings

This section describes how to modify runtime settings of multiple scripts or of a Vuser group that includes multiple scripts.

  1. In the Scenario Groups/Scripts pane select multiple scripts or the Vuser group that includes multiple scripts.

  2. Right-click the selection and select Runtime Settings.

  3. In the Multiple runtime settings Mode dialog box that opens:

    • To modify runtime settings for all of the scripts simultaneously, click Shared RTS.

    • To modify runtime settings per script, click Individual RTS.

      For user interface details, see Multiple Runtime Settings Mode dialog box.

Back to top

View/Edit a script in VuGen

To view/edit a script included in your scenario, right-click the script and select View Script. The script opens in VuGen. For more information on editing scripts, see the information on debugging features in the Virtual User Generator Help Center (select the relevant version).

Back to top

Specify command line options

You can specify command line options to use when running a script.

  1. In the Scenario Groups/Scripts pane, right-click the script and select Details.

  2. In the Group/Script Information dialog box that opens, if Command line is not displayed near the bottom, click More.

  3. Enter a command in the command line, for example: -x value -y value.

Back to top

View rendezvous points included in the script

If there are rendezvous points included in the script, they are displayed in the Rendezvous tab. For details about rendezvous points, see Rendezvous points overview.

  1. In the Scenario Groups/Scripts pane, right-click the script and select Details.

  2. In the Group/Script Information dialog box, if the Rendezvous tab is not displayed near the bottom, click More.

Back to top

View Vusers associated with the script

The Vusers tab displays the Vusers associated with the script:

  1. In the Scenario Groups/Scripts pane, right-click the script and select Details.

  2. In the Group/Script Information dialog box, if the Vusers tab is not displayed near the bottom, click More.

Back to top

View files associated with the script

By default, the Files tab lists all the files in the script's folder (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.

  1. In the Scenario Groups/Scripts pane, right-click the script and select Details.

  2. In the Group/Script Information dialog box, if the Files tab is not displayed near the bottom, click More.

  3. To add a file to the list, click Add.

  4. Example:  

    To run Visual C++ Vusers on a remote load generator, you must add the .dll of the Vuser to the list of files.

    You can delete the files that you add, but not the other files listed.

Back to top