1
votes

Below is the error shown on failure of my test.

JMeter version: 3.2 Assertion error: false Assertion failure: true Assertion failure message: Value expected to be 'ptgrna9jgc1f3a77881+iamtestpass', but found 'ptgrna9jgc1f3a77881+iamtestpass'

There is a failure even if the 2 strings are exactly same. Any idea why this is happening? PS: The tests are running as expected on a different machine.

2

2 Answers

1
votes

Everything started working fine after switching to JMeter 3.1!

0
votes

If assertion fails - something is wrong, my expectation is that the reason is in:

  • Your JSON Path Expression returns a JSON Array and you are expecting its 1st element
  • There is a leading or trailing space (or both) either in the JSON Path return value or in your expected data. Double check both using i.e. Debug Sampler and View Results Tree listener combination.