467,895 Members | 1,406 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,895 developers. It's quick & easy.

Who uses JsUnit for unit testing dynamic pages

Who can explain. Can JsUnit test dynamic pages?
A site uses Apache Tomcat for the start.
A site consists of starting page in which is loaded 4 jsp pages.
Functions that need testing take information from a page and after
processing return data to page using jQuery.
And also need testing object which in a constructor has methods which
also takes dynamic information from site.
The library of jQuery, ajax, JSON is used in a site.
Almost all information takes from a database (PostgreSQL) on a
server.

Please response. Give answer. It is posible or not. Can JsUnit do this?

Jul 12 '07 #1
  • viewed: 1922
Share:
1 Reply
On Jul 12, 1:31 am, flashadow <flashadowmas...@gmail.comwrote:
Who can explain. Can JsUnit test dynamic pages?
A site uses Apache Tomcat for the start.
A site consists of starting page in which is loaded 4 jsp pages.
Functions that need testing take information from a page and after
processing return data to page using jQuery.
And also need testing object which in a constructor has methods which
also takes dynamic information from site.
The library of jQuery, ajax, JSON is used in a site.
Almost all information takes from a database (PostgreSQL) on a
server.

Please response. Give answer. It is posible or not. Can JsUnit do this?

Hi ,

JSUnit can do that, but I don't feel that it's an appropriate tool for
testing page functionallity.

Selenium ( openqa.org ) is great for testing pages. Check out the
FireFox Extension called Selenium IDE. The forums are very friendly
and you'll find DFabulich is very, very helpful and smart.

JSUnit is great for testing modular bits of JavaScript. I feel that
Unit testing will encourage you to write more cohesive classes.

Widgets are harder to test with JSUnit because you have to bootstrap a
lot of cross-browser event-creation. Fortunately, Selenium
( openqa.org ) covers this nicely.

For Feature testing, you're better off using Selenium. see
openqa.org .

If you want a quick test of your pages, go with Selenium.

Use JSUnit for testing in-house library code.

Best Regards,

Garrett

Jul 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Liza K. | last post: by
3 posts views Thread by Matt Kruse | last post: by
14 posts views Thread by | last post: by
1 post views Thread by Jody | last post: by
72 posts views Thread by Jacob | last post: by
25 posts views Thread by acemtp | last post: by
1 post views Thread by mitch | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.