Forum Discussion
sbeauvais
11 years agoContributor
FYI, the following code, in the testsuite setup or the testcase setup or as a test step, succeeds but does not remove the "Stale connection check" debug lines in the SoapUI log and does not remove the 0.5 sec delay between requests.
[s:3fto69pq]Do I need to retrieve the connection manager params from the context or testRunner itself?[/s:3fto69pq]
So, the above sets the correct param... Now how do I apply this param object to the actual connection manager / HTTP client used in the testcase?
import org.apache.commons.httpclient.params.HttpConnectionManagerParams
def params = new HttpConnectionManagerParams()
params.setStaleCheckingEnabled( false )
//log.info 'Stale Checking Enabled = ' + params.isStaleCheckingEnabled()
assert params.isStaleCheckingEnabled() == false
[s:3fto69pq]Do I need to retrieve the connection manager params from the context or testRunner itself?[/s:3fto69pq]
So, the above sets the correct param... Now how do I apply this param object to the actual connection manager / HTTP client used in the testcase?
Related Content
Recent Discussions
- 2 days agoCWalker