473,385 Members | 1,645 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,385 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 2170
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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.