You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by l_u_c_f_e_r_13 <sy...@globallogic.com> on 2009/06/14 10:06:20 UTC

Hot to stop http request execution in case of no response

Hi,

Does anybody know how can I stop execution of http request in case when I
get no response (there is no response at all. I've been waiting for more
then 20 min and get nothing).
Can I handle such situation somehow and fail that transaction?

TIA.
-- 
View this message in context: http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24019369.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Hot to stop http request execution in case of no response

Posted by ankush jethi <an...@gmail.com>.
First use a response assertion and then add "Post processros -> HTTP request
defaults" nd select the appropriate actino that you want

Thanks

On Sun, Jun 14, 2009 at 1:36 PM, l_u_c_f_e_r_13 <sy...@globallogic.com>wrote:

>
> Hi,
>
> Does anybody know how can I stop execution of http request in case when I
> get no response (there is no response at all. I've been waiting for more
> then 20 min and get nothing).
> Can I handle such situation somehow and fail that transaction?
>
> TIA.
> --
> View this message in context:
> http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24019369.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


-- 
Regards
Ankush Jethi
It Is Very Easy To Be Brave From A Safe Distance.

Re: Hot to stop http request execution in case of no response

Posted by l_u_c_f_e_r_13 <sy...@globallogic.com>.

Tony, thanks a lot!

-- 
View this message in context: http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24034993.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Hot to stop http request execution in case of no response

Posted by Tony Lotts <tl...@gmail.com>.
In JMeter 2.3.3 you can set a response timeout in the HTTP Request, or HTTP
Request HTTPClient nodes.

JMeter 2.3.3 release notes:
"HTTP Samplers now support connection and request timeouts (requires Java
1.5 for Java Http sampler)"

If this doesn't suit your needs, you could use a beanshell component:

   1. Get the timestamp of the start of the sample.
   2. In a loop check for null response, compare current time with
   timestamp.
   3. If the difference is greater than your requirement, mark the sample as
   failed.

On Mon, Jun 15, 2009 at 1:13 AM, l_u_c_f_e_r_13 <sy...@globallogic.com>wrote:

>
> As I said I have ho response (it just hangs) so I can't use 'Response
> Assertion'. Also I couldn't found 'Post Processor -> HTTP request
> defaults',
> I don't have mentioned sample for "Post Processor".
> --
> View this message in context:
> http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24028905.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Hot to stop http request execution in case of no response

Posted by l_u_c_f_e_r_13 <sy...@globallogic.com>.
As I said I have ho response (it just hangs) so I can't use 'Response
Assertion'. Also I couldn't found 'Post Processor -> HTTP request defaults',
I don't have mentioned sample for "Post Processor".
-- 
View this message in context: http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24028905.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org