Hi Sebb,
>>> Try it and see?
Nope, didn't work...
I'm looking at HttpClient's prefs page:
http://hc.apache.org/httpclient-3.x/preference-api.html
...and I see other prefs (besides http.method.retry-handler) which take a value
that can't be expressed in a known/documented String format. For example:
http.protocol.version => HttpVersion
http.connection-manager.max-per-host => Map
http.default-headers => Collection
Maybe JMeter wasn't designed to use httpclient prefs that can't be expressed in
String form... do you know if this is the case? Maybe these kinds of options
need to be surfaced in the Sample GUI instead of the prefs file?
Cheers,
Will
--- On Thu, 2/12/09, sebb <[email protected]> wrote:
> From: sebb <[email protected]>
> Subject: Re: Setting the max retry count when using "HTTP Request HTTPClient"
> Sampler?
> To: "JMeter Users List" <[email protected]>,
> [email protected]
> Date: Thursday, February 12, 2009, 4:06 PM
> On 12/02/2009, Will McQueen <[email protected]>
> wrote:
> >
> > Hi,
> >
> > How can I set the max retry count for the HTTP
> Request HTTPClient (ie, the sample that uses Apache's
> http client)?
> >
> > In the jmeter.properties file, I see:
> > http.java.sampler.retries=
> > ...but that seems to be for the default "Http
> Javat" Java HTTP implementation ("HTTP
> Request" sampler) rather than for the Apache http
> client.
> >
> > The jmeter.properties file includes this reference:
> >
> http://jakarta.apache.org/commons/httpclient/preference-api.html
> > ...which shows a property that seems to be what I
> need:
> > http.method.retry-handler=
> > ...but I'm not sure what value to set it to.
> >
> > Do I need to set it to a fully-qualified class name
> that I create (as an implementation of interface
> HttpMethodRetryHandler)?
>
> Looks like it.
>
> > In that case, I think I'd just need to ensure that
> my implementation of this interface is in the classpath, and
> JMeter should automatically call the retryMethod(..) method
> each time it wants to retry? And I can just set the body the
> method to simply return false.
>
> Try it and see?
>
> > Thank you.
> >
> > Cheers,
> > Will
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [email protected]
> > For additional commands, e-mail:
> [email protected]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [email protected]
> For additional commands, e-mail:
> [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]