Using Relative Paths for Scripts - LoadRunner

When you specify the location of a script, you can specify a relative location. The location can be relative to the current scenario directory, or the LoadRunner installation directory. You can specify a path relative to the current scenario directory by typing either of the following notations at the start of the script path:

. indicates that the path is relative to the location of the scenario directory.

.. indicates that the path is relative to the location of the parent directory of the scenario directory.

For example, if the current scenario is located at F:scenarios, to specify a script located at F:scenariosscriptsuser1.usr, you could type:

.scriptsuser1.usr

You can specify a path relative to the LoadRunner installation directory by typing a percent sign (%) at the beginning of the script path. For example, if the LoadRunner installation directory is located at F:LoadRunner, to specify a script located at F:LoadRunnerscriptsuser1.usr, you could type

%scriptsuser1

Note: When specifying a relative path, you can include standard DOS notation (. and ..) inside the path, as shown in the following example: M:LRmy_tests....test.usr.

When you run a scenario, by default, the script is copied to a temporary directory on the Vuser group machine. This enables the Vuser group load generator to access the script locally instead of over a network. You can instruct the Controller to store the script on a shared network drive.If you configure the Controller to save the script to a network drive, you must ensure that the Vuser load generator recognizes the drive. The Script window contains a list of all the Vuser scripts and their paths. A script’s path is based on the Controller load generator’s mapping of that location. If a Vuser load generator maps to the script’s path differently, path translation is required. Path translation converts the Controller load generator’s mapping to the Vuser load generator’s mapping.


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

LoadRunner Topics