title: Jmeter BeanShell Assertion not failing the tests
body: <p>I am learning into Jmeter. </p>
  
  <p>I have a BeanShell Assertion which should make the tests fail (failure is hardcoded into the assertion). But all the tests pass. What am I doing wrong?</p>
  
  <p>My understanding is that if the BSA sets </p>
  
  <pre><code>Faliure = true;
  </code></pre>
  
  <p>the assertion fails.
  But in my case it does not fail.</p>
  
  <p>Please see:</p>
  
  <p><a href="https://i.stack.imgur.com/f4vLT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f4vLT.jpg" alt="Assertion"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qegOT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qegOT.jpg" alt="Result"></a></p>
  
  <p>You can see the disabled XPath Assertion on the screenshot which is not fulfilled, if I enable that one, that one does fail the test as I expect.</p>
  
  <p>Update: now I see why it didn't fail the tests: Failure has a typo... Then the question: Why did it even run? Isn't this java? Isn't this an undeclared variable?</p>
  
  <p>Thank you!</p>