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
Modify a script's runtime settings
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.
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).
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.
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).
Specify command line options
You can specify command line options to use when running a script.
In the Scenario Groups/Scripts pane, right-click the script and select Details.
In the Group/Script Information dialog box that opens, if Command line is not displayed near the bottom, click More.
Enter a command in the command line, for example:
-x value -y value.
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.
In the Scenario Groups/Scripts pane, right-click the script and select Details.
In the Group/Script Information dialog box, if the Rendezvous tab is not displayed near the bottom, click More.
View Vusers associated with the script
The Vusers tab displays the Vusers associated with the script:
In the Scenario Groups/Scripts pane, right-click the script and select Details.
In the Group/Script Information dialog box, if the Vusers tab is not displayed near the bottom, click More.
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.
In the Scenario Groups/Scripts pane, right-click the script and select Details.
In the Group/Script Information dialog box, if the Files tab is not displayed near the bottom, click More.
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.