aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Testing Javascript/AJAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Testing Javascript/AJAX" Watch "Testing Javascript/AJAX" New topic
Author

Testing Javascript/AJAX

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10093
    
164

This question might not be directly related to the book. I was wondering if there are any strategies for testing Javascript or AJAX code in applications? Something like JUnit tests or other test utilities that we have for testing Java code.


[My Blog] [JavaRanch Journal]
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Hi Jaikiran,

I don't cover unit testing specifically in the book, but the following project looks very promising:

http://sourceforge.net/projects/jsunit/

I haven't had a chance to play with it yet, but I've seen some good comments about it.


-- <br />Frank W. Zammetti<br />Founder and Chief Software Architect<br />Omnytex Technologies<br /><a href="http://www.omnytex.com" target="_blank" rel="nofollow">http://www.omnytex.com</a><br />AIM/Yahoo: fzammetti<br />MSN: fzammetti@hotmail.com<br />Author of "Practical Ajax Projects With Java Technology"<br /> (2006, Apress, ISBN 1-59059-695-1)<br />and "JavaScript, DOM Scripting and Ajax Projects"<br /> (2007, Apress, ISBN 1-59059-816-4)<br />Java Web Parts - <a href="http://javawebparts.sourceforge.net" target="_blank" rel="nofollow">http://javawebparts.sourceforge.net</a><br /> Supplying the wheel, so you don't have to reinvent it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing Javascript/AJAX