jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ger, Steven M." <s...@Z-TEL.com>
Subject RE: ServletTestRunner ant usage help
Date Tue, 16 Mar 2004 22:47:23 GMT
Thanks Vincent.  This is definitely helpful but I think this solution is
missing some things I really need.  

1.  All system defined properties (those added in the start script) are not
present.  When run through the ant target they're not found.
2.  The classpath used through the URL method is the classpath as defined by
the ear file.  When executed as an ant task the classpath is not the same as
the classpath found in my ear file.

One major benefit of exercising a URL such as
is that the tests are executed in the container identically as to how a
client would execute them through a web browser.  Is there a way to do this
through cactus?  Once again I point to the JUnitEE example:

<target name="do-run-tests">
	<junitee url="http://your.server:port/myTest/TestServlet"
		<test runall="true"/>

Thanks again,

-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com] 
Sent: Monday, March 15, 2004 5:28 PM
To: 'Cactus Users List'
Subject: RE: ServletTestRunner ant usage help

Hi Steven,

> -----Original Message-----
> From: Ger, Steven M. [mailto:sger@Z-TEL.com]
> Sent: 15 March 2004 23:09
> To: 'cactus-user@jakarta.apache.org'
> 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
> for
> an ant task that will execute the previously mentioned URL and report
> 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.


To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message