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 How to 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.
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 the WinSock Recording Options.
After recording and saving the script:
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.