473,224 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

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
1 2164
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Liza K. | last post by:
can we do unit testing like checking the functionality of button in Mic-ACT? Please provide me the solution. I need urgent help. Liza
3
by: Matt Kruse | last post by:
Does anyone actively use JSUnit < http://www.edwardh.com/jsunit/ > for unit testing their javascript code? For logical functions, I imagine it could be very useful. However, I'm wondering how...
14
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
3
by: | last post by:
I am working on a web/webservice application that has a service layer. Most service methods will perform an access-check before executing. This check uses the IPrincipal credentials available in...
1
by: Jody | last post by:
Hi, I'm trying to get JSUnit to work - I've tried everything I can think of, but I can't get the simplest of tests working - example 1 of the jsunit homepage - Both on my server and locally,...
72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
25
by: acemtp | last post by:
Hello, I would like to show you a new collaborative website for javascript programmer. It's quite hard to know if some specific code you wrote will work on all browsers, and if not, why it...
1
by: mitch | last post by:
Does anybody know how to get JSUnit (JavaScript unit testing framework) and Venkman (Firefox JavaScript debugger) to work together?
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.