How to View/Modify Scripts in the Scenario

This section describes how to view and modify scripts used in your load test scenario.
You view/modify the details of the scripts in the Group Information dialog box (see Group Information Dialog Box) or in the Script Information dialog box (see Script Information Dialog Box).
In this topic:

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:
  • Note: If you do not see some of the details listed below, click More.
  • Script path
  • Command line options
  • Rendezvous points included in the script
  • Vusers associated with the script
  • Files associated with the script
  • Open the script in VuGen by clicking the View Script button
  • View the script's runtime settings by clicking the Runtime Settings button

Modify a script's runtime settings

  • 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.
  • 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.

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.
    • For details about specific runtime settings, see Runtime Settings Overview.
    • When you modify the runtime settings from the Controller, LoadRunner runs the script using the modified settings.

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 Debugging Overview.

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.
    For information about passing command line argument values to a script, see Enhance a Java Script.

View rendezvous points included in 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 Rendezvous tab is not displayed near the bottom, click More.
    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.
View 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.
    The Vusers tab displays the Vusers associated with the script.

View files 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 Files tab is not displayed near the bottom, click More.
  3. 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. To add a file to the list, click Add.
    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.

No comments:

Post a Comment