Forum Discussion

csachaj-gtp's avatar
csachaj-gtp
New Contributor
2 years ago
Solved

HTTP requests always timeout after 60 seconds on 3.42.1/3.42.2?

I have some long running http requests that generate test data (3-4min). I've set the http preferences to allow 5min for timeout, however it seems like ReadyAPI is not accepting the change, or maybe I'm setting it in the wrong place. Anyone else experiencing this? Is this bug or just misconfigured?

 

Haven't been able to get a solution from support on this, and but I tried this fix already:

 How to avoid the socket timeout exception during load testing? | SmartBear Software

  • Hi JoostDG, thanks for your reply. I did notice that the test case options were updating from the general settings. So, I thought that the setting would populate downwards into the actual test step. Apparently not. However, based on your suggestion, I started looking closer at the navigator while examining the test case options and I was able to get it figured out.

     

    It seems like http requests don't have any timeout settings/properties available in main test panel. Additionally, http requests don't set their timeout from the test case options nor general settings. Instead, there is a context menu that allows you to set properties in the bottom left of the window labeled "HTTP Request Properties" while you have the http request test step selected. These properties must be manually set, and they're not immediately obvious in my opinion. See photos...

    Note: These options are not available through right clicking on the http request from the navigator and there is no additional pane/window that I could find to access them.

    In these properties, I found the timeout field to be blank (which defaults to 60 seconds). I added my new timeout value here and now the http request can be run longer! 

2 Replies

  • JoostDG's avatar
    JoostDG
    Frequent Contributor

    Hi csachaj-gtp . The fix you mentioned also talks about the test case options where there also is a setting for Socket Timeout:

    https://support.smartbear.com/readyapi/docs/functional/ui/case.html#options

    I guess if you created your test case BEFORE you have set the general settings to 300000 ms it will still take it from the test case options instead of the general setting.

    If at that level you also specified 300000 then I don't know why it's not taking it...

    • csachaj-gtp's avatar
      csachaj-gtp
      New Contributor

      Hi JoostDG, thanks for your reply. I did notice that the test case options were updating from the general settings. So, I thought that the setting would populate downwards into the actual test step. Apparently not. However, based on your suggestion, I started looking closer at the navigator while examining the test case options and I was able to get it figured out.

       

      It seems like http requests don't have any timeout settings/properties available in main test panel. Additionally, http requests don't set their timeout from the test case options nor general settings. Instead, there is a context menu that allows you to set properties in the bottom left of the window labeled "HTTP Request Properties" while you have the http request test step selected. These properties must be manually set, and they're not immediately obvious in my opinion. See photos...

      Note: These options are not available through right clicking on the http request from the navigator and there is no additional pane/window that I could find to access them.

      In these properties, I found the timeout field to be blank (which defaults to 60 seconds). I added my new timeout value here and now the http request can be run longer!