You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@apache.org> on 2005/05/26 11:12:52 UTC
http tasks
Matt Benson wrote:
> --- Steve Loughran <st...@apache.org> wrote:
>
>>Nice. I like it! If we ever get round to finishing
>>the httpPost task in
>>the sandbox, we have a Rest client system :)
>>
>
>
> So what, exactly, do these need?
what they really need is a functional test harness. I had some .pl code
up on iseran.com that tested a bit of it, but we should really create a
WAR and bring it up in Jetty or something.
The reason I stopped working on it (only temporary, but I got
distracted) was that java1.2 vs 1.3 had differently broken java.net stuff.
ex.
-multi cookie support
-automatic markdown of content-length attribute if the size of the
received message is < content-length header in some circumstances (small
packets, i think)
-bad handling of error pages. Depending on the ending of the file, you
either got the text or an exception.
All of these really hurt us at at work; for #2 and #3 we had to modify
the RESTy bits of our app with an X-ContentLength and X-ErrorCode
headers, because java.net.HttpUrl was interfering with the W3C versions.
If we do finish the stuff off, we should say "Java1.4+ only".
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: http tasks
Posted by Paul King <pa...@asert.com.au>.
You might want to consider WebTest (webtest.canoo.com).
WebTest "test" scripts are like ant "build" scripts.
You can mix and match whatever ant tasks you want with
webtest tasks (called steps because they are actually
extend ant's Task and provide a reference to a context
which contains the state associated with a series of
http requests). It can do all of the things you are
after below (and quite a bit more too). It doesn't have
XML post yet but should do within a few weeks.
Have a look at WebTest's build file for an example
of how it brings it's own site up in Jetty and tests it.
Cheers, Paul.
Steve Loughran wrote:
> James Fuller wrote:
>
>>> what they really need is a functional test harness. I had some .pl
>>> code up on iseran.com that tested a bit of it, but we should really
>>> create a WAR and bring it up in Jetty or something.
>>>
>>
>> why not jmeter ?
>>
>
> All the test harness really is is some things that are served up on a site
>
> -text file files/something.txt
> -binary file files/something.bin
> -error codes errors/404/
> -lie about content length (send more/less than asked)
> -basic auth section
> -digest auth section
> -stuff to test POST
>
> Nothing too complex, a few jsp pages really.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: http tasks
Posted by Steve Loughran <st...@apache.org>.
James Fuller wrote:
>>what they really need is a functional test harness. I had some .pl
>>code up on iseran.com that tested a bit of it, but we should really
>>create a WAR and bring it up in Jetty or something.
>>
>
> why not jmeter ?
>
All the test harness really is is some things that are served up on a site
-text file files/something.txt
-binary file files/something.bin
-error codes errors/404/
-lie about content length (send more/less than asked)
-basic auth section
-digest auth section
-stuff to test POST
Nothing too complex, a few jsp pages really.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: http tasks
Posted by James Fuller <ji...@ruminate.co.uk>.
>
> what they really need is a functional test harness. I had some .pl
> code up on iseran.com that tested a bit of it, but we should really
> create a WAR and bring it up in Jetty or something.
>
why not jmeter ?
jim fuller
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org