[Webtest] Debug output from HtmlUnit

Lisa Crispin webtest@lists.canoo.com
Wed, 10 Nov 2004 18:28:15 +0000


--NextPart_Webmail_9m3u9jl4l_6897_1100111295_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Thanks, we did figure out this particular problem, although not from the debug.  In case anyone else has this problem, here it is.  We had what may be considered a hack to put the tab focus in the right text box.  
<SCRIPT> document.forms["searchByName"].lastName.focus() </SCRIPT>

HtmlUnit doesn't like this when it goes to invoke the page.

We can't seem to get the focus set any other way (I don't know the particulars) so we are going to set a flag to remove this bit of Javascript for running tests.  

Does anyone have any ideas on my other post - about the clickbutton not working in the new WebTest?  I'm stumped on that one.
thanks,
Lisa  


-------------- Original message from Marc Guillemot <mguillemot@yahoo.fr>: -------------- 


> Hi Lisa, 
> 
> in $WebtestHome/lib/log4j.properties try adding: 
> 
> log4j.logger.com.gargoylesoftware.htmlunit.javascript=debug 
> 
> Marc. 
> 
> Lisa Crispin wrote: 
> > Hi, 
> > We got a popup calendar that HtmlUnit likes, so it's on to the next problem. 
> > 
> > The doc for HtmlUnit states: "A custom logger has been added to 
> > HtmlUnit to support this. If you set 
> > 'com.gargoylesoftware.htmlunit.javascript' to debug level, the inline 
> > code will be logged with the wrapper function to help you determine what 
> > line of code is failing." 
> > 
> > Is there a way to set this in WebTest so we can figure out why our 
> > Javascript is failing with HtmlUnit? 
> > Thanks, 
> > Lisa 
> 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 
--NextPart_Webmail_9m3u9jl4l_6897_1100111295_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>Thanks, we did figure out this particular problem, although not from the debug.&nbsp; In case anyone else has this problem, here it is.&nbsp; We had what may be considered a hack to&nbsp;put the tab focus in the right text box.&nbsp; </DIV>
<DIV>&lt;SCRIPT&gt; document.forms["searchByName"].lastName.focus() &lt;/SCRIPT&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>HtmlUnit doesn't like&nbsp;this&nbsp;when it goes to invoke the page.</DIV>
<DIV>&nbsp;</DIV>
<DIV>We can't seem to get the focus set any other way&nbsp;(I don't know the particulars) so we are going to set a flag to remove this bit of Javascript for running tests.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone have any ideas on my other post - about the clickbutton not working in the new&nbsp;WebTest?&nbsp; I'm stumped on that one.</DIV>
<DIV>thanks,</DIV>
<DIV>Lisa&nbsp; </DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Marc Guillemot &lt;mguillemot@yahoo.fr&gt;: -------------- <BR><BR><BR>&gt; Hi Lisa, <BR>&gt; <BR>&gt; in $WebtestHome/lib/log4j.properties try adding: <BR>&gt; <BR>&gt; log4j.logger.com.gargoylesoftware.htmlunit.javascript=debug <BR>&gt; <BR>&gt; Marc. <BR>&gt; <BR>&gt; Lisa Crispin wrote: <BR>&gt; &gt; Hi, <BR>&gt; &gt; We got a popup calendar that HtmlUnit likes, so it's on to the next problem. <BR>&gt; &gt; <BR>&gt; &gt; The doc for HtmlUnit states: "A custom logger has been added to <BR>&gt; &gt; HtmlUnit to support this. If you set <BR>&gt; &gt; 'com.gargoylesoftware.htmlunit.javascript' to debug level, the inline <BR>&gt; &gt; code will be logged with the wrapper function to help you determine what <BR>&gt; &gt; line of code is failing." <BR>&gt; &gt; <BR>&gt; &gt; Is there a way to set this in WebTest so we can figure out why our <BR>&gt; &gt; Javascript is failing with HtmlUnit? <BR>&gt; &gt; Thanks, <BR>&gt; &gt; Lisa <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; WebTest mailing list <BR>&gt; WebTest@lists.canoo.com <BR>&gt; http://lists.canoo.com/mailman/listinfo/webtest </BLOCKQUOTE>
<!-- END WEBMAIL STATIONERY -->

</body>
</html>

--NextPart_Webmail_9m3u9jl4l_6897_1100111295_0--