XML Test Suite

Home
Install
Intro
 API
 DTD
Project
Releases
 Compiled
 Source

SourceForge Logo

Installation:

Unpack the distribution from SourceForge, add the bin directory to your PATH, and optionally add the jar file to you classpath.

(The classpath is only required if you want to run directly from a java command. The bin directory contains run scripts for windows and *nix which construct their own classpath)

Directory Structure:

 XmlTestSuite -- the source and compiled class files
   |
   +-- bin --- shell scripts
   |
   +-- src --- the source code
   |
   +-- lib -- the jar file(s)
   |
   +-- docs -- all the documentation
         |
         +-- api ----- all the javadoc generated api docs
         |
         +-- dtd -- a description of the permitted elements in the xml

Usage

XmlTestSuite can be invoked directly or with a shell script.
Run scripts are provided in the bin directory for *nix and windows.

To run the tests from the command line type

	XmlTestSuite testFileName.xml

This assumes that the XmlTestSuite bin directory is in your shell's PATH.
(or, in *nix, create a link e.g.)

        ln -s /usr/local/xmltestsuite/bin/xmltestsuite.sh /usr/local/bin/xmltestsuite

If you have problems with *nix, there is a simpler script which can be easily modified:
        edit xmltestsuite.sh (to change the defined path)

Alternatively, java can be invoked directly. The first line below invokes the GUI test runner that comes as part of junit

    java com.netriser.xmltestsuite.Main [-v|-verbose] [-h|-help] [xmlPathname-or-directory]
    java [-Dv] [-Dd] [-Dfile=xmlpathname] com.netriser.xmltesttuite.Main
    java [-Dv] [-Dd] [-Dfile=xmlpathname] junit.textui.TestRunner com.netriser.xmltesttuite.Main
    java [-Dv] [-Dd] [-Dfile=xmlpathname] junit.swingui.TestRunner -noloading com.netriser.xmltesttuite.Main

Copyright (c)  Netriser Limited

The following jar files are required by XmlTestSuite and are included in the lib directory.

The java xml interface is provided by using xmlParserAPIs.jar and xercesImpl.jar from apache.org. (previous versions had used j2ee.jar from java.sun.com)

(This table is derived from part of the HttpUnit documenttion.)

Jar Name Needed For Documented at
nekohtml.jar
0.7.2+patch
HTML parsing. Very tolerant of sloppy HTML. Requires xerces-j 2.2 or higher www.apache.org/~andyc/neko/doc/html/index.html.
tidy.jar
04aug2000r7
HTML parsing. Very picky. Works with any jaxp-compliant parser. lempinen.net/sami/jtidy/
xmlParserAPIs.jar the generic parser APIs supported by xerces-j. xml.apache.org
xercesImpl.jar
2.2
Used by HttpUnit xml.apache.org
js.jar
1.5r4+patch
javascript support www.mozilla.org/rhino
junit.jar
3.8
running the unit tests. www.junit.org
HttpUnit.jar
1.5.3
Provdes the http, javascript and Html Dom interfaces Meterware
jaxen-full.jar Provides an xpath interface to a HTML Dom
sax.jar Used for xml processing. www.saxproject.org
sax-path.jar Used for xml processing. www.saxproject.org
xmltestsuite.jar
1.1
The XmlTestSuite jar http://sourceforge.net/projects/xmltestsuite