Reference Material and Appendices > Configuration Files > Protocol Configuration: The LRP File |
The file <LoadRunner installation>\dat\protocols\<protocol id>.lrp
is the master configuration file for the protocol.
In addition, there is an sdkb
ase.lrp
file that contains common settings for all protocols created with the HP Protocol SDK.
Do not edit sdkbase.lrp
. To apply values different from those specified in sdkbase.lrp
, override the value in the protocol LRP file.
The most used sections of the LRP file include the following:
Setting Name |
Description |
---|---|
Category |
The general category of the protocol, for example, E-Business or ERP/CRM. For a full, current list of existing categories, open the New Virtual User dialog in Vugen and open the Category list. |
CommonName |
The display name may have spaces and punctuation. |
DerivedFrom |
The protocol ID of the protocol on which this protocol is based. All settings are taken from the LRP of this base protocol. However, if a setting in the LRP of the base protocol is also specified in the LRP of this protocol, these settings override those of the base protocol. |
Description |
A free text description of the protocol. |
DontSupportGroup |
This protocol cannot be used in a multi-protocol script with protocols from the groups specified with these codes. Do not edit this value. |
EnableAutoTranPerFunc |
Enables (1) or disables (0) display of the check box in VuGen that allows the user to configure handling each step as a transaction. Do not enable this check box unless the protocol implements this feature. |
Hidden |
Indicates whether not to list (1) or to list (0) the protocol in the New Protocol Script dialog. |
Icon |
The icon of the protocol for the New Protocol Script dialog. The icon is a 16x16 bitmap (BMP file). Use the relative path starting from the dat folder. For example, for file |
MaxThreadPerProcess |
The maximum number of threads per process. The default is 50. May be reduced to solve problems of performance on the client running on the load generator. |
Multi |
Indicates whether to enable (1) or disable (0) the protocol as a multi-protocol Vuser type. |
Name |
The protocol name. Use the same string entered for the ProtocolID parameter. |
PostSaveNotify |
The callback function for notification on a save operation. After a save operation, the specified function in the specified DLL is invoked. The format is
|
PostRecordingNotify |
The function name and DLL of the callback to be invoked when a recording session is completed. The function name is required to be
|
ProtocolId |
A string of up to eight characters that follows the rules for C language variable names. It is used internally by VuGen to identify the protocol. |
PreRecordingCheck |
The function name and DLL of the callback to be invoked before starting a recording session. The function name is required to be
|
ResultsDirUI |
Enables (1) or disables (0) the Prompt for results directory check box in the Tools->Options dialog. Set to 1 if the Test Results Report is implemented and used. |
RTS_DynamicTreeBmpDir_1 RTS_DynamicTreeBmpDir_2 ... RTS_DynamicTreeBmpDir_n |
The folder containing resources for use on dynamic tree tabs, relative to the For example:
|
SDKVersion |
The version of the HP Protocol SDK on which this version of the protocol was developed. |
Single |
Indicates whether to enable (1) or disable (0) the protocol as a single Vuser type. |
Version |
The version of this protocol. |
VISUAL_LOG |
Set to 1 if the Test Results Report is implemented and used. For protocols created with the SDK, set this value to 1. |
WINNT SUNOS |
The names of the test run processes for the platforms supported by the protocol. The process is |
This section can contain the following default settings:
@@TestName@@.usr=myReplay.usr
vuser_init.c=vuser_init.c
vuser_end.c=vuser_end.c
Action.c=Action.c
default.cfg=default.cfg
default.usp=default.usp
globals.h=globals.h
For information on these settings, see The Template Folder.
This section can contain the following default setting for changing the default for the principal protocol header file:
HEADERS=myReplay.h
For information on this setting, see Header Files.