[Webtest] jscript error: loadDates is not a function, it is null, and problem in latest code with com_cenqua_clover/g

John and Pip John and Pip" <pipandjohn@gmail.com
Tue, 17 Apr 2007 01:39:11 +1200


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

Thanks Paul, I'll try to follow this through as soon as I can (got a release
this week so flat out). By the way, I've moved from the department I used to
be in at Air NZ to the team that does the development of the booking engine,
so should get better access to both java techies and knowledge of how the
engine is put together, so that may help me progress my webtests further.
Also means I've got another 6 months close to full time to work on improving
the webtest suite so I'm please about that!

regards,
        John

On 4/16/07, Paul King <paulk@asert.com.au> wrote:
>
>
> There should be plain and clover versions of the jar built.
> If you remove clover.jar from your classpath if will automatically
> build without clover (only required for measuring our test coverage).
>
> Paul.
>
> John and Pip wrote:
> > Hi,
> >
> > A couple of issues I've had today:
> >
> > 1) I tried building from source today (pretty new at this) and when I
> > ran the resulting webtest version I got an error: error in taskdef.xml
> > line 22: "A class needed by class
> > com.canoo.webtest.steps.request.ClickButton cannot be found:
> > com_cenqua_clover/g". The previous version that I had also built from
> > source, I think a couple of weeks ago, doesn't give this error. I saw a
> > couple of old posts suggesting this dependancy is optional and I can
> > comment something out in the build, but why did I not have to do that
> > before and what exactly do I do - I'm completely lost? Do I have to take
> > the webtest.jar from [directory I checked source out to]\deploy\clover
> > and use it instead of the one in [directory I checked source out
> > to]build\runtime\lib or something like that?
> >
> > 2) I'm having another go at the Air New Zealand home page. With the
> > recent build (from a couple of weeks ago as mentioned above) I can now
> > load www.airnewzealand.co.nz <http://www.airnewzealand.co.nz> if I turn
> > javascript error checking off. Without doing that I get:
> >            <failure filename="C:\webtest\doc\isis\testTest.xml" line="7"
> > message="JavaScript error loading page http://www.airnewzealand.co.nz/:
> > TypeError: loadDates is not a function, it is null. (Embedded script in
> > http://www.airnewzealand.co.nz/ <http://www.airnewzealand.co.nz/> from
> > (3141, 32) to (0, 0)#31)">
> >                 <detail name="javascript error"><![CDATA[TypeError:
> > loadDates is not a function, it is null. (Embedded script in
> > http://www.airnewzealand.co.nz/ from (3141, 32) to (0,
> 0)#31)]]></detail>
> > [snip]
> >     loadDates('', '', '', '',1);
> >     loadDates('h_', "", "", "", 2);
> > Neither Firefox 1.5 nor IE 6 has a problem with the page.
> > I looked at the javascript for the loadDates function and it all looks
> > normal to me.
> > Any idea what might be causing this? Is it because the calls to
> > loadDates are in a div of a form and the function is defined in the head
> > element? With my limited knowledge that doesn't seem wrong. Is it
> > perhaps just that the page has absolute shitloads (technical term) of
> > script both in it and in included js files?
> >
> > Thanks for all the ongoing work - webtest just gets better and better.
> >
> > regards,
> >         John
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

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

Thanks Paul, I&#39;ll try to follow this through as soon as I can (got a release this week so flat out). By the way, I&#39;ve moved from the department I used to be in at Air NZ to the team that does the development of the booking engine, so should get better access to both java techies and knowledge of how the engine is put together, so that may help me progress my webtests further. Also means I&#39;ve got another 6 months close to full time to work on improving the webtest suite so I&#39;m please about that!
<br><br>regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; John<br><br><div><span class="gmail_quote">On 4/16/07, <b class="gmail_sendername">Paul King</b> &lt;<a href="mailto:paulk@asert.com.au">paulk@asert.com.au</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>There should be plain and clover versions of the jar built.<br>If you remove clover.jar from your classpath if will automatically<br>build without clover (only required for measuring our test coverage).<br><br>Paul.<br>
<br>John and Pip wrote:<br>&gt; Hi,<br>&gt;<br>&gt; A couple of issues I&#39;ve had today:<br>&gt;<br>&gt; 1) I tried building from source today (pretty new at this) and when I<br>&gt; ran the resulting webtest version I got an error: error in 
taskdef.xml<br>&gt; line 22: &quot;A class needed by class<br>&gt; com.canoo.webtest.steps.request.ClickButton cannot be found:<br>&gt; com_cenqua_clover/g&quot;. The previous version that I had also built from<br>&gt; source, I think a couple of weeks ago, doesn&#39;t give this error. I saw a
<br>&gt; couple of old posts suggesting this dependancy is optional and I can<br>&gt; comment something out in the build, but why did I not have to do that<br>&gt; before and what exactly do I do - I&#39;m completely lost? Do I have to take
<br>&gt; the webtest.jar from [directory I checked source out to]\deploy\clover<br>&gt; and use it instead of the one in [directory I checked source out<br>&gt; to]build\runtime\lib or something like that?<br>&gt;<br>&gt; 2) I&#39;m having another go at the Air New Zealand home page. With the
<br>&gt; recent build (from a couple of weeks ago as mentioned above) I can now<br>&gt; load <a href="http://www.airnewzealand.co.nz">www.airnewzealand.co.nz</a> &lt;<a href="http://www.airnewzealand.co.nz">http://www.airnewzealand.co.nz
</a>&gt; if I turn<br>&gt; javascript error checking off. Without doing that I get:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;failure filename=&quot;C:\webtest\doc\isis\testTest.xml&quot; line=&quot;7&quot;<br>&gt; message=&quot;JavaScript error loading page 
<a href="http://www.airnewzealand.co.nz/">http://www.airnewzealand.co.nz/</a>:<br>&gt; TypeError: loadDates is not a function, it is null. (Embedded script in<br>&gt; <a href="http://www.airnewzealand.co.nz/">http://www.airnewzealand.co.nz/
</a> &lt;<a href="http://www.airnewzealand.co.nz/">http://www.airnewzealand.co.nz/</a>&gt; from<br>&gt; (3141, 32) to (0, 0)#31)&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;detail name=&quot;javascript error&quot;&gt;&lt;![CDATA[TypeError:
<br>&gt; loadDates is not a function, it is null. (Embedded script in<br>&gt; <a href="http://www.airnewzealand.co.nz/">http://www.airnewzealand.co.nz/</a> from (3141, 32) to (0, 0)#31)]]&gt;&lt;/detail&gt;<br>&gt; [snip]
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; loadDates(&#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;,1);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; loadDates(&#39;h_&#39;, &quot;&quot;, &quot;&quot;, &quot;&quot;, 2);<br>&gt; Neither Firefox 1.5 nor IE 6 has a problem with the page.
<br>&gt; I looked at the javascript for the loadDates function and it all looks<br>&gt; normal to me.<br>&gt; Any idea what might be causing this? Is it because the calls to<br>&gt; loadDates are in a div of a form and the function is defined in the head
<br>&gt; element? With my limited knowledge that doesn&#39;t seem wrong. Is it<br>&gt; perhaps just that the page has absolute shitloads (technical term) of<br>&gt; script both in it and in included js files?<br>&gt;<br>&gt; Thanks for all the ongoing work - webtest just gets better and better.
<br>&gt;<br>&gt; regards,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; John<br><br>_______________________________________________<br>WebTest mailing list<br><a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">
http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><br>

------=_Part_36980_21136151.1176730751246--