![]() | ![]() |
Apache > Jakarta > Cactus > Running Tests | Docs for: v1.7.2 | v1.7 Last update: March 31 2009 |
JUnitEE, a TestRunner inside the Container
Since Version 1.4 Cactus contains a new Servlet Test Runner that
enables the same features than the JUnitEE was providing, but in an
even easier way. Please check the
TestRunner Howto tutorial.
You can use the JUnitEE user interface to run your all your tests inside the Container. JUnitEE is a JUnit TestRunner that has been written as a servlet with the user interface in HTML format. You cannot achieve all features of Cactus using JUnitEE as part of them depend on being executed on the client side. Executing JUnitEE from ANT commands will probably not be possible. Some benefits however of JUnitEE are:
Using JUnitEE is (relatively) simple. Assuming you have a container such as Weblogic, Tomcat or Orion functioning and you know how to configure Servlets and adding libraries to the Containers classpath and you are familiar with the basics of Cactus then the rest is easy.
How to install JUnitEE
Download the JUnitEE
zip-file. Add a reference to
add
junitee.jar in the same way as cactus.jar is added.
Configure TestServlet in your Container. You may use the example servlet
Executing the tests with JUnitEEYou request the tests from an html-page in your container. You can write the name of your testclasses according to the examples with JUnitEE as:
Tell JUnitEE to use Cactus redirector
The
|