Record a Windows Sockets script
This task describes optional steps that you can perform when recording using Windows Sockets.
For details on starting a recording session, see Record a Vuser script.
Before you start recording:
-
Open the recording options.
After creating a Winsock script, select Record > Recording Options and click the WinSock node.
-
Select a translation table.
In the EBCDIC section, select a translation table. If your data is in ASCII format, select the None option. Otherwise VuGen will convert the ASCII data. For details, see Translation tables.
-
Exclude any non-relevant sockets.
In the Exclude Settings section, add any non-relevant sockets to the list. You should exclude hosts and ports that do not influence the server load under test, similar to the local host and the DNS port (53), which are excluded by default.
To exclude the entries from the recording, but include them in the log, clear the Do not include excluded sockets in log option.
For user interface details, see WinSock recording options.
-
Set a think time threshold.
Indicate a think time threshold. If VuGen detects a pause in action less than the threshold time, it will not generate a Think Time step/ lr_think_time function. For details, see WinSock recording options.
After recording and saving the script:
-
Parameterize the script.
Replace recorded values with parameters using the shortcut menu. For more information, see Parameterize scripts.
-
Regenerate the script.
If you need to regenerate the script, for example if you want to include an excluded host:port, or if the translation was not correct:
- Select Record > Regenerate Script.
- Click the Options link.
- Under General, select Protocols, and then under Active Protocols, ensure that the Windows Sockets check box is selected.
- Under Sockets, select Winsock, and then modify the settings.
Note: Options for script regeneration are available for multi-protocol scripts only.