title: How to check the response assertion is passed or failed in Jmeter using beanshell
body: <p>I want to save the request and response of the sample into a text file, if response assertion is failed. </p>
  
  <p>Here I can save the request and response it to a text file. But I am struck where,</p>
  
  <p>how to check the whether response assertion is passed or failed for the respective sample.</p>
  
  <p>How to validate the is current "Http Request" sample is passed or failed?</p>
  
  <p>Thanks In advance.</p>