20060109 Monday January 09, 2006

J3Unit J3Unit Over the weekend, I learned about J3Unit - a new object oriented JavaScript testing framework.

J3Unit is an object-oriented unit testing framework for JavaScript. J3Unit runs JavaScript tests directly in the web browser and can be automated using JUnit and Jetty. J3Unit builds on previous work by JSUnit and Script.aculo.us to provide a better way to automate JavaScript unit tests. Object-oriented JavaScript unit tests are written using the Script.aculo.us Test.Unit.Runner object, which is in turn built upon the prototype JavaScript library.

J3Unit has 3 modes of operation: Static Mode, Local Browser Mode, and Remote Browser Mode

To me, this looks similar to Selenium. I'd definitely like to explore using this package or Selenium in AppFuse.

Currently, AppFuse uses Canoo WebTest, which is based on HtmlUnit. The current version of HtmlUnit doesn't support Prototype, or any libraries that depend on it. The good news is "This will be quite simple to fix". Posted in Java at Jan 09 2006, 05:41:42 AM MST 2 Comments

Comments:

Hi Matt, bit of a shameless ad here, but you might also be interested in Floyd (https://floyd.dev.java.net), which I've recently started at java.net. It allows to test web applications via an embedded browser (and embedded web server if desired) from normal Java unit tests (somewhat similar to what Watir does for Ruby). Currently supported are Mozilla and Jetty, and IE/Safari/Konqueror & Tomcat support is on the way.

Posted by Thomas Dudziak on January 09, 2006 at 06:03 AM MST #

Selenium is not a javascript testing framework. Its a tool that allows testing of web applications kinda the way test director does but better since its not as intrusive and easier to setup. There's also a kick ass recorder for Selenium called Selenium-IDE which I've been using a lot lately. It just saves a whole lot of time and makes writing tests a breeze. I have completely abandoned Canoo in favor of Selenium. Selenium also supports testing of Ajax based web apps.

Posted by Sanjiv Jivan on January 11, 2006 at 05:39 PM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« December 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

Recent Entries

Tag Cloud