Java Reference
In-Depth Information
E.3
Installing Selenium
Download Selenium Remote Control (Selenium RC ) from http://seleniumhq.org/
download/, unzip it to your local drive, and add the Selenium Java client driver to
your classpath. As of this writing, the current Selenium version is 1.0 Beta 2, and the
client JAR file is selenium-remote-control-1.0-beta-2\selenium-java-client-driver-1.0-
beta-2\selenium-java-client-driver.jar.
E.4
Installing RhinoUnit
RhinoUnit is a library of scripts used to run JavaScript unit tests from Ant, tested
here with Ant 1.7.1. If you're running Java 6 or later, you don't need any additional
setup because Java 6 includes the Java Scripting Framework ( http://jakarta.apache .
org/bsf/ ) and the Mozilla Rhino JavaScript engine. So, for Java 5 and earlier, use
the following steps.
The Ant script task is an optional task package with the core tasks. It requires
Apache BSF , which you can download from http://jakarta.apache.org/site/down-
loads/downloads_bsf.cgi. Unzip the download and copy the file bsf-2.4.0\lib\bsf.jar to
one of the Ant locations used for optional tasks as documented in Ant ( http://
ant.apache.org/manual/install.html#optionalTasks), fo r example, in ANT_HOME /lib
to make the JAR file available to all Ant users and builds.
Next, get the Mozilla Rhino JavaScript ( http://www.mozilla.org/rhino/ ) engine
from http://www.mozilla.org/rhino/download.html. For Java 5, copy the file js.jar; for
Java 1.4.2, copy the file js-1.4.jar to an Ant location used for optional tasks.
Apache BSF uses Apache Commons Logging, which has been included with Ant
since version 1.6. If you must use a version of Ant older than 1.6.x, you can download
Apache Commons Logging from http://commons.apache.org/logging/ and copy
commons-logging-1.1.1.jar to an Ant location used for optional tasks.
E.5
Installing JsUnit
You can find JsUnit at http://jsunit.net/ . We've included in the source for chap-
ter 13 the build for version 2.2. This build is located in the jsunit directory in
the chapter 13 source.
 
 
 
Search WWH ::




Custom Search