You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Erez Naim <er...@theneura.com> on 2015/02/02 11:40:39 UTC

response code 304 and response code 200

Hi, 

 

I am writing a script which return both code 200 and code 304 and when I
assert code 200 and then get response code 304 from the server it fails the
sampler (the logic of my script is that it is not an error), how can I make
it for the script live both with response code 304 and response code 200
returned from the server?

 

Thanks! 

 


Erez Naim  |  QA Lead  |
<http://www.linkedin.com/profile/view?id=34323263>
<http://www.theneura.com/vCards/gilad.vcf>
<http://twitter.com/#!/giladmeiri/>   




EL AL 2 Street | Herzliya  
mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura

 


 <http://www.theneura.com/> website  |   <http://www.startupbitz.com/> blog
|   <https://twitter.com/intent/user?screen_name=theneura> twitter  |
<http://goo.gl/maps/ZRkg5> map    

 

 


RE: response code 304 and response code 200

Posted by Erez Naim <er...@theneura.com>.
This post answered my question:

 

http://tiku.io/questions/4738922/conditional-response-assertion-in-jmeter

 

 

 

From: Erez Naim [mailto:erez@theneura.com] 
Sent: Monday, February 02, 2015 12:41 PM
To: user@jmeter.apache.org
Subject: response code 304 and response code 200

 

Hi, 

 

I am writing a script which return both code 200 and code 304 and when I
assert code 200 and then get response code 304 from the server it fails the
sampler (the logic of my script is that it is not an error), how can I make
it for the script live both with response code 304 and response code 200
returned from the server?

 

Thanks! 

 


Erez Naim  |  QA Lead  |
<http://www.linkedin.com/profile/view?id=34323263>
<http://www.theneura.com/vCards/gilad.vcf>
<http://twitter.com/#!/giladmeiri/>   




EL AL 2 Street | Herzliya  
mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura

 


 <http://www.theneura.com/> website  |   <http://www.startupbitz.com/> blog
|   <https://twitter.com/intent/user?screen_name=theneura> twitter  |
<http://goo.gl/maps/ZRkg5> map