You are on page 1of 4

Load runner - Winsock Protocol

This Document shows Basic Winsock Script Development.


Init Section

End Section

Action Section

Data.ws Section:
There is another section called data.ws. All the buffer information is located in this section.

Parameterization: Any required Parameterizations will be done in data.ws section

Correlation: The offset and size of the Buffer is calculated from data.ws section. This
information is used in a function called lrs_save_Param function.
Correlation:
step1: Identify Dynamic value from the received buffer.
Step2: Find the offset and length of the buffer as shown in the below picture
Step3: Replace the dynamic value in the Received Buffer with a Parameter Value

Use lrs_save_param that saves data from a static or received


Buffer to a parameter. See the below example and the Highlighted Code in below screenshots:
lrs_receive("socket0", "buf41", LrsLastArg);
lrs_save_param("socket0", NULL, "Cor_Buf41", 349, 29);
NULL indicates that the parameter should be captured from the last received buffer
349: Offset
29 Buffer length
Cor_Buf41 is Parameter Name

You might also like