cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <>
Subject Re: testing/performance framework for Cocoon
Date Mon, 24 Sep 2001 17:29:11 GMT
Jeff and all,

Over the weekend I worked on extracting the HttpClient test framework
that comes with Tomcat 3.3, and making it a standalone framework. I've
extended it a bit to fit the purposes of testing interactions with Web

Below is a simple running test with the current framework. It runs
against a SOAP stock quote Web service:

<target name="simple">
    <comment>Post a simple SOAP request</comment>
    <soapRequest href=""
    <httpStatusMatch match="200"/>
    <responseMatch select="/soap:Envelope/soap:Body/n:getQuoteResponse/Result"/>

So far, from the list of tasks I've published originally the most
important are implemented:

- <url-get>, <url-post> are now <httpRequest>, which allows both POST
and GET. <soapRequest> is a specialized <httpRequest> for posting SOAP

- <check> is now <responseMatch> which is extended to handle XPath
expressions in the XML/XHTML document response. It's implemented using
dom4j and Jaxen.

>From the other tasks, the biggest problem seems to be <spawn>. This
one requires changes in the Ant internals, which I'm reluctant to do,
unless I get some feedback from the Ant developers. The other tasks,
<iterate>, <database>, and <test> become pretty much useless without
<spawn>. Their reason to exist was to help logging the test results in
a database, so we can keep track of the Cocoon performance.

There are two other tasks I'm looking at to implement:

- <include> to include XML fragment files in the main Ant build.xml
file. This would allow the tests to be put in separate files, and have
them included all at once in the main Ant driver.

- <listen>. This is very specific to asynchronous SOAP
communication. In such a scenario a SOAP client sends a SOAP request
to a server, which will later on send the client on a particular URL
other SOAP messages. I'm looking at using the EmbeddedTomcat class
from Tomcat 3.3.

I'll post some source code as soon as I have the code integrated with
Cocoon and Cactus.

Ovidiu Predescu <> (inside HP's firewall only) (my SourceForge page) (GNU, Emacs, other stuff)

To unsubscribe, e-mail:
For additional commands, email:

View raw message