Share this page

# Work with existing script parameters

This task describes how to replace values with pre-defined parameters.

In this topic:

## Replace a value with a parameter

You can replace a value with an pre-defined parameter. In the script-editor, right-click on the relevant value and select one of the following options:

- Replace with Parameter > select a <pre-defined> parameter. The list of parameters include parameters which have the same original value or parameters that have not yet been used.
- Replace with Parameter > select a parameter from the Parameter List dialog box.

Back to top

## Replace multiple occurrences of a value with a parameter

You can replace multiple occurrences of a value with a parameter. To do this, in the script editor replace at least one occurrence of the value with a parameter. Right-click the parameter and select Replace more occurrences. Use Search and Replace to replace all of the values in the script with the selected parameter.

Back to top

## Restore the original value

You can undo a parameter and restore the original value by right-clicking the parameter in the script editor and selecting Restore original value.

Back to top

## Export and import VuGen script parameters

You can export parameters from a VuGen script, and import them into other VuGen scripts.

Note: This feature is useful if you are working with a new script or if you want to replace your current parameter set.

To export a VuGen script's parameter file to a parameter archive file (.prz):

1. Open the script whose parameters you want to export.
2. In the Solution Explorer, right-click the Parameters node and select Export Parameters.
3. Enter a name for the parameter archive file—include the full path.

4. Optional: Enter a password to protect the parameter archive file.

   Tip: Click Show/Hide to show/hide the password.

5. Click OK.

To import parameters into your script from a VuGen parameter archive (.prz) file:

Note:

Importing parameters overwrites all existing parameters in your script, and is irreversible.

Recommended: Back up your script folder before importing new parameters in case you want to revert to your previous parameter definitions.

For more information, contact your support representative.

1. Prerequisite: You must have access to an exported parameter archive file (.prz), and to its password if it has been password protected. See Export and import VuGen script parameters above.
2. Open the script into which you want to import the parameters.
3. In the Solution Explorer, right-click the Parameters node and select Import Parameters.
4. Navigate to and select the parameter archive file (.prz), and click Open.

5. If the file is password protected, enter the password.

6. Click OK. This action overwrites your current parameter file and cannot be undone. See note above.

Back to top

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 25.1-25.3 All View Local Help Center View Online Help Center Version: