Load testing statements exchange data between an application and a web server in load test scripts.
| Statement | Description |
|---|---|
| GetVirtualUserID | Returns the integer ID of the current virtual user. |
| WebAddNetworkCredential | Adds a set of credentials to the cache of network credentials sent with all web requests. |
| WebAddSessionVariable | Adds a form variable to look for in input fields on responses from the WebGet and WebPost statements and replaces the variable value captured during recording with the value returned from the web server. |
| WebClearAllCustomHeaders | Clears all custom headers created by WebSetCustomHeader statements sent with all web requests. |
| WebClearNetworkCredentials | Clears the cache of network credentials created by WebAddNetworkCredential statements sent with all web requests. |
| WebCloseAllConnections | Closes all open connections to all web servers. |
| WebCloseConnection | Closes the connection to a web server. |
| WebDelete | Sends a DELETE command and returns the data received from a web page. |
| WebGet | Sends a GET command and returns the data retrieved from a web page. |
| WebGetCookie | Returns the cookie value set by a WebSetCookie, WebGet, or WebPost statement. |
| WebGetAllCustomHeaders | Returns an array of custom header names set by WebSetCustomHeader statements. |
| WebGetCustomHeader | Returns the header value set by a WebSetCustomHeader statement. |
| WebGetReferrer | Returns the referrer set by a WebSetReferrer statement. |
| WebGetUserAgent | Returns the browser user agent. |
| WebHead | Sends a HEAD command and returns the data received from a web page. |
| WebOptions | Sends an OPTIONS command and returns the requests accepted by the web server that hosts the URL. |
| WebPatch | Sends a PATCH command and returns the data received from a web page. |
| WebPatchFromFile | Sends a PATCH command from a file and returns the data received from a web page. |
| WebPatchJSON | Sends a PATCH command from a JSON statement and returns the data received from web page. |
| WebPost | Sends a POST command and returns the data received from a web page. |
| WebPostFromFile | Sends a POST command from a postdata file and returns the data received from a web page. |
| WebPostJSON | Sends a POST command from a JSON statement and returns the data received from a web page. |
| WebPut | Sends a PUT command and returns the data received from a web page. |
| WebPutFromFile | Sends a PUT command from a file and returns the data received from a web page. |
| WebPutJSON | Sends a PUT command from a JSON statement and returns the data received from a web page. |
| WebRemoveAllSessionVariables | Stops updating all form variables set by WebAddSessionVariable statements for all web requests. |
| WebRemoveCustomHeader | Removes a custom header set by a WebSetCustomHeader statement from the list of headers sent with all web requests. |
| WebRemoveSessionVariable | Stops updating a form variable set by a WebAddSessionVariable statement for all web requests. |
| WebSetCookie | Sets a cookie to send with other load testing statements. |
| WebSetCustomHeader | Sets a custom header to send with other load testing statements. |
| WebSetReferrer | Sets the referrer URL used by other load testing statements. |
| WebSetUserAgent | Overrides the browser user agent sent by the client with a custom user agent. |