1

Is there a way to verify entire JSON response in JMeter 5.3? I saw some answers in different threads but need to verify the best solution in the latest version of JMeter?

I tried to use JSON assertion as below but it's gives an error.

enter image description here

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
Flashmark
  • 119
  • 2
  • 10

1 Answers1

0

JSON response is a regular response which you can use Response Assertion

Set Field to Test as Text Response 

the response text from the server, i.e. the body, excluding any HTTP headers.

And in Pattern Matching Rules if you can validate JSON text as is use Equals

Equals - true if the whole text equals the pattern string (case-sensitive)

If you need regular expression use Matches

Matches - true if the whole text matches the regular expression pattern

Ori Marko
  • 56,308
  • 23
  • 131
  • 233