JMeter, how to assert a dynamic value, that contains special characters using response assertions



  • I have a value with the following format [aadrzr@r2za$l919d@ldzkld], but when asserting this value in the response assertion, I am getting a failed response assertion. Since it contains special characters.

    How I can solve this. Notice that the value is auto generated and I don't know what value format will be retieved.

    Example: "key": "aadrzr@r2za$l919d@ldzkld",

    Response assertion : failed

    enter image description here



  • If the value is "auto generated" what are you going to "assert" here?

    The presence of key property can be checked using https://jmeter.apache.org/usermanual/component_reference.html#JSON_Assertion or https://www.blazemeter.com/blog/the-jmeter-json-jmespath-extractor-andassertion-a-guide

    Going forward please consider including at least partial response and your Assertion setup as without being able to reproduce the issue we are not able to help as well




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2