Hi,
I am trying to set up a small test in JMeter that sends an HTTP request to an API, gets JSON response as response and briefly parses its content. jp@gc - JSON Path Assertion is used as a post-processor which works great when a JSON path is supposed to be there. However, I fail to figure out how to use it to verify that the path is not there. It looks like "path not found" is not the same as being equal to NULL. Am I right?
The only solution that I could come up with is to use a combination of JSON Path Extractor, assign the result to a variable and then use one more step to assert that variable against '[]'. It does not look nice and I was wondering if there some more elegant solution avoiding extra variables.
Any idea or suggestion is more than welcome! Thanks!
Victor