Ask a Question

ReadyAPI timeout causing failure within TestComplete test run.

Ryu
Contributor

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 13
Marsha_R
Champion Level 2

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

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

Marsha_R
Champion Level 2

The TestComplete code please

@Marsha_R 

 

# Create Unresolved Call
ReadyAPIAutomationTestCases.PBI29521_UnresolvedCall.Execute()

Marsha_R
Champion Level 2

An actual screenshot is more helpful, along with some code before and after the problem code.  For example:

Marsha_R_0-1622741573743.png

 

I'm not sure what good a screenshot would do for a ReadyAPI call?  This is literally happening with every ReadyAPI call I make across several different scripts.  Here are some examples:

 

Ryu_0-1622745415324.png

 

Ryu_1-1622745501380.png

 

Marsha_R
Champion Level 2

You said that it runs if you do it manually and doesn't when you run within TestComplete, therefore I'm looking for a problem in the code or the code right around it in TestComplete.  

 

 

@Marsha_R Gotcha.  Maybe I need some kind of delay between commands?  This seems to be a new problem with ReadyAPI 3.8 (or maybe even the latest TC update) as it wasn't happening until just a few weeks ago.

Marsha_R
Champion Level 2

Do you have something that you can check after that Delay and then after that setup line to make sure that everything actually started up and was setup the way you expect before you start with the Execute?  TC doesn't slow down any in between any of those things, so even though you had a delay, the service may not be ready and TC is going on with the SetupAVL line (which could be not ready on it's own) and then going on to Execute lines immediately. 

 

 

 

 

cancel
Showing results for 
Search instead for 
Did you mean: