Forum Discussion

Apoorva6's avatar
Apoorva6
Frequent Contributor
7 years ago

How to increase socket timeout in SoapUI installed on headless Linux (No GUI)

Team,

 

We are using SoapUI on Linux server. we are using testRunner.sh for our functional test. However whenever our request is huge, its getting timed out. So I know by default its 60 sec. How do i increase the time ?. I know in GUI. But not sure how to increase on SoapUI on headless Linux. Please help.

 

Below is the error log

 

10:20:25,974 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /RqstHandler/OrderLoadService HTTP/1.1
10:21:26,022 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
10:21:26,023 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection.
10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
10:21:26,027 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
10:21:26,027 ERROR [SoapUI] An error occurred [Read timed out], see error log for details
java.net.SocketTimeoutException: Read timed out

  • nmrao's avatar
    nmrao
    Champion Level 3
    You should be able to change thru Preferences.
  • nmrao's avatar
    nmrao
    Champion Level 3
    Just noticed that you want to do in non GUI.

    Just do it locally. The changes are saved in soapui-settings.xml file. Do the same change in other machine by editing the file. Have backup of the file before make any change.
  • harry's avatar
    harry
    Contributor
    <con:setting id="HttpSettings@socket_timeout">120000</con:setting>

    Apoorva6wrote:

    Team,

     

    We are using SoapUI on Linux server. we are using testRunner.sh for our functional test. However whenever our request is huge, its getting timed out. So I know by default its 60 sec. How do i increase the time ?. I know in GUI. But not sure how to increase on SoapUI on headless Linux. Please help.

     

    Below is the error log

     

    10:20:25,974 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /RqstHandler/OrderLoadService HTTP/1.1
    10:21:26,022 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
    10:21:26,023 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection.
    10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
    10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
    10:21:26,027 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
    10:21:26,027 ERROR [SoapUI] An error occurred [Read timed out], see error log for details
    java.net.SocketTimeoutException: Read timed out


     
  • Lucian's avatar
    Lucian
    Community Hero

    At some point I needed to change the socket timeout on a machine to which I had no access. What I did is I added a groovy test step in my project like:

     

    import com.eviware.soapui.SoapUI
    import com.eviware.soapui.settings.HttpSettings
    
    // Get soapUI settings
    def settings = SoapUI.getSettings()
    settings.setString(HttpSettings.SOCKET_TIMEOUT,"120000") // set timeout to 120 seconds

    This only has to be run once and it can be removed afterwards.

    Lucian.