[Webtest] JavaScript support (again)

Lisa Crispin webtest@lists.canoo.com
Thu, 18 Nov 2004 22:12:41 +0000


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

I don't know of any doc related to Javascript, but there have been lots of postings about it lately on the mailing list, since the new HtmlUnit-based WebTest has more Javascript support.  Some of the discussion is on how things should be made to work, eg., http://lists.canoo.com/pipermail/webtest/2004q4/002721.html

Other than that I don't know how to answer your question, but no doubt someone will.  I am just now starting to use the HtmlUnit-based WebTest on pages that have Javascript, and I'm just using standard XML WebTest files.  I have been able to verify a title of a window popped up with Javascript, and click on Javascript buttons, that's as far as I have gone.
-- Lisa


-------------- Original message from Costin <cos.de.gunoi@gmail.com>: -------------- 


> Hi. 
> 
> I have looked over the mailing list but I couldn't find a proper 
> response. Also on the wiki and on the selftest. Seems like I'm missing 
> a part from documentation related to JavaScript. I see the archive 
> (js.jar) inside the lib but I couldn't find any mention on how to 
> handle the JavaScript with WebTest Canoo (but found in the doc that 
> the JavaScript is not executed). 
> 
> Is there any tutorial available somewhere ? What exactly is the 
> support for JavaScript? 
> 
> All our tests are planned to be written in xml (one main reason for 
> choosing Canoo) - is it possible to handle JavaScript this way? I have 
> seen some mails but nothing clear and at this stage I am confused 
> about this topic. 
> 
> We are not looking for anything complex with JavaScript (but it would 
> be nice) but rather small things that most websites have ("are you 
> sure" popup windows and such). 
> 
> If anyone has some links or emails for guidance I would greatly appreciated. 
> 
> Thanks. 
> 
> Costin 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 
--NextPart_Webmail_9m3u9jl4l_29959_1100815961_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV>I don't know of any doc related to Javascript, but there have been lots of&nbsp;postings about it&nbsp;lately on the mailing list, since the new HtmlUnit-based WebTest has more Javascript support.&nbsp; Some of the discussion is on how things should be made to work, eg., <A href="http://lists.canoo.com/pipermail/webtest/2004q4/002721.html">http://lists.canoo.com/pipermail/webtest/2004q4/002721.html</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Other than that I don't know how to answer your question, but no doubt someone will.&nbsp; I am just now starting to use the HtmlUnit-based WebTest on pages that have Javascript, and I'm just using standard XML WebTest files.&nbsp; I have been able to verify a title of a window popped up with Javascript, and click on Javascript buttons, that's as far as I have gone.</DIV>
<DIV>-- Lisa</DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Costin &lt;cos.de.gunoi@gmail.com&gt;: -------------- <BR><BR><BR>&gt; Hi. <BR>&gt; <BR>&gt; I have looked over the mailing list but I couldn't find a proper <BR>&gt; response. Also on the wiki and on the selftest. Seems like I'm missing <BR>&gt; a part from documentation related to JavaScript. I see the archive <BR>&gt; (js.jar) inside the lib but I couldn't find any mention on how to <BR>&gt; handle the JavaScript with WebTest Canoo (but found in the doc that <BR>&gt; the JavaScript is not executed). <BR>&gt; <BR>&gt; Is there any tutorial available somewhere ? What exactly is the <BR>&gt; support for JavaScript? <BR>&gt; <BR>&gt; All our tests are planned to be written in xml (one main reason for <BR>&gt; choosing Canoo) - is it possible to handle JavaScript this way? I have <BR>&gt; seen some mails but nothing clear and at this stage I am confused <BR>&gt; about this topic. <BR>&gt; <BR>&gt; We are not looking for anything complex with JavaScript (but it would <BR>&gt; be nice) but rather small things that most websites have ("are you <BR>&gt; sure" popup windows and such). <BR>&gt; <BR>&gt; If anyone has some links or emails for guidance I would greatly appreciated. <BR>&gt; <BR>&gt; Thanks. <BR>&gt; <BR>&gt; Costin <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_29959_1100815961_0--