Gianugo Rabellino wrote:
Vladimir R. Bossicard wrote:
Since I haven't seen a lot of commits into the tests folder, I guess that others haven't embraced the idea. Well, it's next on my list.
Uh... not really. It's just that I haven't yet figured out how to automate a test environment for Xindice. Not having a server running is a bit a showstopper to me, since I can'r really understand how to write, say, an Xupdate test
From a complete ignorant that just throws in a hint (hey, it worked with jisp, maybe it will again ;-)
Why not use Anteater? http://aft.sourceforge.net/
"Anteater is a testing framework designed around Ant, from the Apache Jakarta Project. It provides an easy way to write tests for checking the functionality of a Web application or of an XML Web service.
The type of tests you can write using Anteater are:
* Send a HTTP/HTTPS request to a Web server. When the response comes back, test that it meets certain criteria. You can check for HTTP headers and response codes, and validate the response body with regexp, XPath, Relax NG, or contentEquals tests, plus some binary formats. New tests can be easily added.
* Listen for incoming HTTP requests at an given URL on the local machine. When a request comes on that URL, you can check its parameters and/or content, and send a response accordingly.
The ability to wait for incoming HTTP messages is something unique to Anteater, which makes it especially useful when building tests for applications that use high level SOAP-based communication, like ebXML or BizTalk. "
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------