Who uses JsUnit for unit testing dynamic pages

F

flashadow

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?
 
D

dhtmlkitchen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top