Hi Steven, > -----Original Message----- > From: Ger, Steven M. [mailto:[EMAIL PROTECTED] > Sent: 15 March 2004 23:09 > To: '[EMAIL PROTECTED]' > Subject: ServletTestRunner ant usage help > > Hey all, > > I've been using the cactus browser interface (i.e., > http://localhost:7001/myapp/ServletTestRunner?suite=MyTest&xsl=cactus- > report > .xsl) to execute in container tests. All tests are written to support > this > interface. I'm trying to automate this with CruiseControl. I'm looking > for > an ant task that will execute the previously mentioned URL and report on > the > results. I've notice JUnitEE has a task such as this: > > <target name="do-run-tests"> > <junitee url="http://your.server:port/myTest/TestServlet" > printsummary="true"> > <test runall="true"/> > </junitee> > </target> > > Does cactus have anything like this? If not can anyone recommend a > different approach.
The solution with Cactus is to use the <cactus> Ant task. Please see http://jakarta.apache.org/cactus/integration/ant/index.html. It provides even more than the <junitee> task as it can also perform application deployment/start/stop of containers. You can also check the Servlet sample which is part of Cactus distribution to see it in action. Thanks -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
