title: Jmeter Assertion failure reason
body: <p>I'm running a test on Jmeter. this is part of the sampler result-</p>
  
  <pre><code>Load time: 520
  Connect Time: 0
  Latency: 520
  Size in bytes: 504
  Headers size in bytes: 458
  Body size in bytes: 46
  Sample Count: 1
  Error Count: 1
  Response code: 201
  Response message: Created
  </code></pre>
  
  <p>so I have added 'Response Assertion' that configured as follows-</p>
  
  <p>Apply to:Main sample only, Response Field to test:Response Code, Pattern Matching Rules:Equals, Patterns to test: 201.</p>
  
  <p>when running it, the request fails and the reason is this:</p>
  
  <pre><code>Assertion error: false
  Assertion failure: true
  Assertion failure message: Test failed: code expected to equal /
  
  ****** received  : 201[[[  ]]]
  
  ****** comparison: 201[[[
  
  ]]]
  
  /
  </code></pre>
  
  <p>What is exactly the problem?</p>