VuGen fails to save the parameter specified in the RunTime Setting in “Additional VM Parameters” in “default.cfg” correctly

While using a Java protocol with LoadRunner (VuGen) 12.00 to develop a script, if a parameter is specified in the "Additional VM Parameters" property in the Runtime Settings "Java Environment Settings" for the "Java VM", under some circumstances the parameter may not be written correctly to the script "default.cfg". As a result, when the script is replayed, the parameter is not correctly set and replay fails.

For example, if the following parameter is specified in the "Additional VM Parameters" property:

-Dparam=value

and the Runtime Settings are closed by clicking "OK", the following line should be present in the script "default.cfg" file:

Java_VM_Params=-Dparam=value

However in some circumstances the data may be concatenated. For example if the following parameter is specified in the "Additional VM Parameters" property:

-Did="name"

and the Runtime Settings are closed by clicking "OK", the following may be present in the script "default.cfg" file:

Java_VM_Params=-Did=

This behaviour occurs due to an issue in VuGen 12.00.

A hotfix is available for this issue at AddVMParam.zip. Follow these steps to apply this hotfix:

Close all LoadRunner components,

Take a backup copy of the file "RTSWebUtility.dll" located at "<LR_Install>\bin",

Take a backup copy of the file "dynatab.js" located at "<LR_Install>\dat\rts\js",

Take a backup copy of the file "JavaVm.xml" located at "<LR_Install>\dat",

Unzip the files from the zip "AddVMParam.zip" into a temporary folder,

Copy the file "RTSWebUtility.dll" it into the folder "<LR_Install>\bin" replacing the existing file,

Copy the file "dynatab.js" it into the folder "<LR_Install>\dat\rts\js" replacing the existing file,

Copy the file "JavaVm.xml" it into the folder "<LR_Install>\dat" replacing the existing file,

Open VuGen and retry the operation.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s