How to configure a script? - LoadRunner

You can add a script to the Scenario Scripts list using the Add Script dialog box. Once you have added a script to the list, you can view the details of the script you selected, edit the script, or change its run-time settings.

To add a script:

  1. Click the Add Script button to the right of the Scenario Scripts pane, or right-click within a column and select Add Script. The Add Script dialog box opens.

    To add a script

  2. Click Browse. The Open Test dialog box opens. Select the path and file name of the new script. To select a VB Vuser script, browse to locate the .usr file.
  3. Click Open to select the files. The Open Test dialog box closes, and the new script name appears in the Add Script dialog box.
  4. Click OK to close the Add Script dialog box and enter the new script information in the Scenario Scripts pane.

Viewing Script Information

Once you have added a script to the list, you can view the details of the script you selected, edit the script, enable/disable it, or change its run-time settings.

To view script details:

  1. Click the Details button to the right of the Scenario Scripts pane, or rightclick a script and select Details. The Script Information dialog box opens, displaying the Name, Path, and Type of the script you selected.

    Viewing Script Information

  2. Click Run-Time Settings to set the script’s run-time settings (optional), which allow you to customize the way the Controller executes a Vuser script. The Run-Time Settings dialog box opens, displaying the 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. Note that several protocols, such as Web and Java, have specific settings.
  3. To edit the script, clickView Script. The script generation tool, VuGen, opens. For more information on editing scripts.
  4. Click More to expand the Script Information dialog box and view additional script information.

    Viewing Script Information

  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. If you have not yet created Vusers, the box will be empty.
  8. To see the list of files used by the script, select the Files tab. 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. Note that you can delete the files that you add, but not the other files listed.
  9. Click OK to close the Script Information dialog box.

To delete a script:

Click the Remove Script button to the right of the Scenario Scripts pane, or right-click the script and select Remove Script.

To disable a script:

Click the box to the left of the Vuser script name. The color of the script entry changes to gray, indicating that the script will not take part in the scenario. To re-enable the Vuser script, click the same box again.


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

LoadRunner Topics