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