[Webtest] Connection timed out error

John and Pip John and Pip" <pipandjohn@gmail.com
Tue, 21 Nov 2006 13:20:24 +1300


------=_Part_59036_19381914.1164068424236
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I am running through the Air NZ flight booking process and when I get to the
final step of confirmation, I get this error:

            <step>
                <parameter name="description" value="Submit"/>
                <parameter name="href"
value="javascript:pleaseWait();calFormChecksum();MM_findObj('reviewAndPurchaseCashForm').submit();"/>
                <parameter name="resultFilename"
value="response_1164065340027_clickLink.html"/>
                <parameter name="taskName" value="clickLink"/>
                <result>
                    <failed duration="32272"/>
                </result>
            </step>

with more detail at the bottom of the results:

<failure message="com.canoo.webtest.engine.StepFailedException:
Step[clickLink &quot;Submit&quot; (47/50)]: Script error loading page
executing webtest at: clickLink Wrapped
com.gargoylesoftware.htmlunit.ScriptException: Connection timed out: connect
(Wrapper definition for javascript url#1)&#xa;Source
code:&#xa;GargoyleWrapper7(), Step: ClickLink at
C:\WebTest\doc\ISIS\tempTest.xml:88:  with
(resultFilename=&quot;response_1164065340027_clickLink.html&quot;,
taskName=&quot;clickLink&quot;)"/>

The submission of the previous page must have worked because I get an
E-Ticket generated, but the html captured by WebTest for the step in
response_1164065340027_clickLink.html shows the same page as the previous
step i.e. the payment page not the confirmation page.


I have my timeout set to 120 seconds and as you can see it fails in 32
seconds. When I run the process in a browser that step is by far the slowest
in the process. The previous steps, which all succeed in WebTest with
durations of 2 to 7 seconds, take a couple of seconds and this one takes 10
seconds and sometimes more, but it still doesn't seem like a genuine
timeout.

Here are the config settings I am using:

        <config>
            <parameter name="protocol" value="http"/>
            <parameter name="summary" value="yes"/>
            <parameter name="saveresponse" value="yes"/>
            <parameter name="timeout" value="120"/>
            <parameter name="haltonerror" value="yes"/>
            <parameter name="resultfile" value="results.xml"/>
            <parameter name="port" value="57106"/>
            <parameter name="showhtmlparseroutput" value="no"/>
            <parameter name="autorefresh" value="yes"/>
            <parameter name="resultpath"
value="C:\WebTest\doc\ISIS\webtest-results"/>
            <parameter name="host" value="aklia781"/>
            <parameter name="haltonfailure" value="yes"/>
            <parameter name="basepath" value="/isbook_en_NZ/book/"/>
            <parameter name="saveprefix" value="response"/>
        </config>

Unfortunately you can't duplicate this as the public site has anti-robot
stuff so I'm running in a private test environment.

I get same result in version R_1389 and R_1438 of WebTest.

Can anyone give me any advise on how to track this one down (I am not a java
programmer).

thanks and regards,
           John

------=_Part_59036_19381914.1164068424236
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,<br><br>I am running through the Air NZ flight booking process and when I get to the final step of confirmation, I get this error:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;step&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;description&quot; value=&quot;Submit&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;href&quot; value=&quot;javascript:pleaseWait();calFormChecksum();MM_findObj('reviewAndPurchaseCashForm').submit();&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;resultFilename&quot; value=&quot;response_1164065340027_clickLink.html&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;taskName&quot; value=&quot;clickLink&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;result&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;failed duration=&quot;32272&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/result&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/step&gt;<br><br>with more detail at the bottom of the results:<br><br>&lt;failure message=&quot;com.canoo.webtest.engine.StepFailedException: Step[clickLink &amp;quot;Submit&amp;quot; (47/50)]: Script error loading page executing webtest at: clickLink Wrapped 
com.gargoylesoftware.htmlunit.ScriptException: Connection timed out: connect (Wrapper definition for javascript url#1)&amp;#xa;Source code:&amp;#xa;GargoyleWrapper7(), Step: ClickLink at C:\WebTest\doc\ISIS\tempTest.xml:88:&nbsp; with (resultFilename=&amp;quot;response_1164065340027_clickLink.html&amp;quot;, taskName=&amp;quot;clickLink&amp;quot;)&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>The submission of the previous page must have worked because I get an E-Ticket generated, but the html captured by WebTest for the step in response_1164065340027_clickLink.html shows the same page as the previous step 
i.e. the payment page not the confirmation page.<br><br><br>I have my timeout set to 120 seconds and as you can see it fails in 32 seconds. When I run the process in a browser that step is by far the slowest in the process. The previous steps, which all succeed in WebTest with durations of 2 to 7 seconds, take a couple of seconds and this one takes 10 seconds and sometimes more, but it still doesn't seem like a genuine timeout.
<br><br>Here are the config settings I am using:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;protocol&quot; value=&quot;http&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;summary&quot; value=&quot;yes&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;saveresponse&quot; value=&quot;yes&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;timeout&quot; value=&quot;120&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;haltonerror&quot; value=&quot;yes&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;resultfile&quot; value=&quot;results.xml&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;port&quot; value=&quot;57106&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;showhtmlparseroutput&quot; value=&quot;no&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;autorefresh&quot; value=&quot;yes&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;resultpath&quot; value=&quot;C:\WebTest\doc\ISIS\webtest-results&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;host&quot; value=&quot;aklia781&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;haltonfailure&quot; value=&quot;yes&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;basepath&quot; value=&quot;/isbook_en_NZ/book/&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name=&quot;saveprefix&quot; value=&quot;response&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/config&gt;<br><br>Unfortunately you can't duplicate this as the public site has anti-robot stuff so I'm running in a private test environment.<br><br>I get same result in version R_1389 and R_1438 of WebTest.
<br><br>Can anyone give me any advise on how to track this one down (I am not a java programmer).<br><br>thanks and regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; John<br>

------=_Part_59036_19381914.1164068424236--