Dynamically setting concurrent browser connections during a test run
Does ACT allow me to set the number of concurrent browser connections through code? Can I change the number of connections during a test run? If so, can you post some code?
Thanks in advance,
[This message has been edited by kMcLeod (edited 12-13-2002).]
Re: Dynamically setting concurrent browser connections during a test run
Does ACT allow me to set the number of concurrent browser connections through code?
ACT is a script based tool the connections are made by the following call:-
Set oConnection = Test.CreateConnection(strServer )
' check for connection errors
If (oConnection Is Nothing) Then
Test.Trace("Error: Unable to create connection.")
Control will return to your script at this point so you could repeat this call using another (ie oConnection2) connection variable and have two 'concurrent' connections open. The 'issue' is that you will not be able to send 'concurrent requests' on the 'concurrent connections' as the Send Request is Synchronous (or blocking) so the thread will wait on the 'oConnection.Send(oRequest)' call before processing the oConnection2.Send(oRequest) if you had two connections open.
This differs from Web Browser behaviour (which allows for two, for http1.1, connections to be processed asynchrously ie non-blocking), and if this difference is an issue for you, then ACT is not the tool for you.