Forum Discussion

Ryu's avatar
Ryu
Contributor
3 years ago

ReadyAPI timeout causing failure within TestComplete test run.

I have several ReadyAPI calls as part of my project suite and for some reason many of them fail during a test run because of exceeding the read timeout.  I can run each of these ReadyAPI calls individually by right-clicking on the project tree and clicking Run and there is never any error.  Put it in a test script with the .Execute() command and there is almost always fail on the timeout.  I increased the timeout within ReadyAPI and saved the changes, but TestComplete still timeout and sometimes even says that the original timout was exceeded.  Has anyone else encountered this and how do I fix it?  This is from the Details tab for the failed step in TestComplete:

 

Type: The test run was cancelled due to a failed test step.

<h3><b>SOAP Request Failed</b></h3><pre>java.net.SocketTimeoutException: Read timed out
Status: FAIL
Time Taken: 3633
Size: 0
Timestamp: Fri May 28 10:57:17 CDT 2021
TestStep: SOAP Request

----------------- Messages ------------------------------
java.net.SocketTimeoutException: Read timed out

----------------- Properties ------------------------------
Endpoint: http://localhost:16499/3ac/soap/OA_Server
Encoding: UTF-8

---------------- Request ---------------------------
&lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
   &lt;s:Header&gt;
      &lt;MultiSpeakMsgHeader Version=&quot;3.0&quot; UserID=&quot;MIL&quot; Pwd=&quot;milOMS4&quot; AppName=&quot;SoapUI&quot; AppVersion=&quot;5&quot; Company=&quot;Milsoft&quot; xmlns=&quot;http://www.multispeak.org/Version_3.0&quot;/&gt;
   &lt;/s:Header&gt;
   &lt;s:Body&gt;
      &lt;ODEventNotification xmlns=&quot;http://www.multispeak.org/Version_3.0&quot;&gt;
         &lt;ODEvents&gt;
            &lt;outageDetectionEvent objectID=&quot;{01C991C6-5159-47A9-877D-E6C8AB7D0000}&quot; errorString=&quot;&quot;&gt;
               &lt;comments&gt;IVR Test Call&lt;/comments&gt;
               &lt;eventTime&gt;2021-05-28T10:57:18.172-05:00&lt;/eventTime&gt;
               &lt;!--NoResponse, Outage, PowerOff, Restoration, PowerOn--&gt;
               &lt;outageEventType&gt;Outage&lt;/outageEventType&gt;
               &lt;!--Call, CustomerServiceRep, InboundTelephoneDevice, Meter, Other--&gt;
               &lt;outageDetectDeviceType&gt;Call&lt;/outageDetectDeviceType&gt;
               &lt;outageLocation&gt;
                  &lt;servLoc&gt;1721011135&lt;/servLoc&gt;
               &lt;/outageLocation&gt;
               &lt;messageList&gt;
                  &lt;message objectID=&quot;{01C991C6-5159-47A9-877D-E6C8AB7D2001}&quot;&gt;
                     &lt;recordID&gt;{01C991C6-5159-47A9-877D-E6C8AB7D0000}&lt;/recordID&gt;
                     &lt;eventTime&gt;2021-05-28T10:57:18.179-05:00&lt;/eventTime&gt;
                     &lt;listenedOn&gt;2015-12-25T10:00:00-06:00&lt;/listenedOn&gt;
                     &lt;listenedBy&gt;Richard&lt;/listenedBy&gt;
                  &lt;/message&gt;
               &lt;/messageList&gt;
               &lt;outageCustomer&gt;
                  &lt;callBackFlag&gt;true&lt;/callBackFlag&gt;
                  &lt;!--&lt;callBackStatus&gt;NoResponse&lt;/callBackStatus&gt;--&gt;
                  &lt;callerIDAC&gt;458&lt;/callerIDAC&gt;
                  &lt;callerIDPhone&gt;1112222&lt;/callerIDPhone&gt;
               &lt;/outageCustomer&gt;
               &lt;!--Normal, NeedsAttention, Urgent--&gt;
               &lt;priority&gt;Normal&lt;/priority&gt;
               &lt;problemCode&gt;1&lt;/problemCode&gt;
               &lt;!--Meter, Address, Unresolved--&gt;
               &lt;resolvedLevel&gt;Meter&lt;/resolvedLevel&gt;
            &lt;/outageDetectionEvent&gt;
         &lt;/ODEvents&gt;
      &lt;/ODEventNotification&gt;
   &lt;/s:Body&gt;
&lt;/s:Envelope&gt;

---------------- Response --------------------------
- missing response / garbage collected -
</pre><hr/>

13 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Let's see a screenshot of the code that is failing please.

    • Ryu's avatar
      Ryu
      Contributor

      Marsha_R Which code?  Do you mean the command in the TestComplete script that runs the ReadyAPI call or the ReadyAPI SOAP call itself?