WebCloseAllConnections

Note: This statement is only used in load test scripts. See Load Testing for more information.

Closes all open connections to all web servers.

To better simulate browser behavior, connections opened by WebGet and WebPost statements remain open while statements that follow them run. Web servers may close the connections at any time, but you can use this statement to ensure all connections are closed before the load test finishes.

To close an individual connection, use the WebCloseConnection statement.

Syntax

WebCloseAllConnections()

Example

WebPost("http://www.wysicorp.com/wysicorp/reportbug.php", "unam", "Guest", "passwd", "SoloBug", "submit", "Login")

WebCloseAllConnections()