Preparing Vuser Scripts for VTS Parameterization
After you record a Vuser script, you can add parameterization functionality to the script, and use VTS to supply the required parameter values. You add VTS's API functions to the Vuser script to enable the Vusers to communicate with VTS. After you include VTS API functions in a Vuser script, you are ready to run the script.
VTS upgrade scenarios
Significant changes were made to VTS beginning with version 11.52. These changes may create various compatibility issues relating to Vuser scripts and the version of VTS that is used for parameterization when the scripts are replayed. Depending on the version of VTS with which a Vuser script was developed and the version of VTS which is used to perform the parameterization when the Vuser script is replayed, you may be required to perform certain upgrade procedures to the Vuser script to resolve these compatibility issues. The various upgrade scenarios are described below.
|Version of VTS used to develop the Vuser script||Version of VTS used to perform parameterization||Action Required|
|11.52 and earlier||11.52 and earlier||
No code changes are required.
The script includes the vts2.h header, and dynamically loads the vtclient.dll file.
|11.52 and later||11.52 and earlier||No code changes are required.|
Unlike with previous versions of VTS, with the current version, it is not necessary to reference any additional files from the Vuser script.
Note: If you are using a Vuser script that was created with a previous version of VTS, it is necessary to modify the Vuser script to enable the script to run with the current version of VTS. For details, see below.
For details on the VTS functions, see Using the API to Access the VTS Table.
Modifying old Vuser scripts
If you have a Vuser script that was created using a previous version of VTS, you must modify the Vuser script to enable the script to run with the current version of VTS. The required modifications are:
- Remove all lr_load_dll("vtclient.dll") functions from the Vuser script.
- Remove all instances of #include "vts2.h" from all sections of the Vuser script.
- Update the VTS server name and port number in all vtc_connect and lrvtc_connect functions in the Vuser script.
- In the Vuser script, change all instances of PVCI to PVCI2.
- In the Vuser script, change all instances of VTCERR to VTCERR2.