How to set Connection Timeout in SoapUI?

Originally posted by HelpConnectTime on May 29, 2013

Hi,

does someone knows if it is possible to set a Connection Timeout in SoapUI?

I’ve added the Socket Timeout in the SoapUI Preferences → Http Settings, but if i launch a request towards an unreachable end point, neither the socket timeout nor the TestCase timeout are respected.

I continue to get the following exception: org.apache.http.conn.HttpHostConnectException.

I need to set a Connection Timeout to 10 seconds.

Thanks for help.

Originally posted by nmrao on June 03, 2013

Below link may help you
http://stackoverflow.com/questions/6413 … -timed-out

Originally posted by HelpConnectTime on June 04, 2013

Hi Rao,

the link you posted refers to the Socket Timeout and i’ve already set it, but what i would like to know is:

is it possible to set a user defined CONNECTION TIMEOUT?

Thanks in advance.

Originally posted by nmrao on June 04, 2013

Well. Here is another link which explains it
http://developers-blog.org/blog/default … ith-soapUI

Just added an screen shot, you may define a property as shown(haven’t tested though)

Originally posted by HelpConnectTime on June 04, 2013

Thanks, but it doesn’t work.

If the server that i try to contact isn’t available, that timeout isn’t considered.

Originally posted by Nastya_Khovrina on April 10, 2020

This article is more about load testing, but, it includes info about all the settings, that are needed to be changed:

How to avoid the socket timeout exception during load testing?