Thanks Sebb,

I don't want this to happen for every non 200 OK response; just
specifically a 'Non HTTP Response' error code.  Would your suggestion
not apply only if there is not a 200 OK?

Regards,

Simon

-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: 27 September 2007 17:07
To: JMeter Users List
Subject: Re: continually checking state of origin server if non http
response received

Have you looked at using the While Controller?

${__javaScript(${JMeterThread.last_sample_ok}"=="false")}

would probably do it (not tested).

Or you could use "while LAST"
Use an Assertion to match the response code and set the sample to
failed if it is 200. (you would need to set ignore status for this to
work).


On 27/09/2007, Simon Brown <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm attempting to run a suite of automation tests which may result in
> the origin server going down.  If it goes down I have a script which
> automatically restarts this.  Currently I've allowed for this in my
> automation script by checking the HTTP response code.  If the response
> code contains the string "Non HTTP response code" then I get the
thread
> to sleep for 70s before issuing another request.  This means that the
> test run will continue for the subsequent urls in the automation
suite.
>
> I'd prefer if it was possible to continually send a request to a
status
> page if a "Non HTTP response code" is detected until a 200 OK is
> returned before continuing with the remainder of urls in the list.
Has
> anyone any suggestions as to how I can best do this?
>
> Thanks,
>
> Simon
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to