You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2022/01/15 17:06:00 UTC

[Bug 65794] JSON Assertion always successful with filter operators

https://bz.apache.org/bugzilla/show_bug.cgi?id=65794

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
I think you are stumbling upon an implementation detail of the jsonpath library
we are using. According to
https://github.com/json-path/JsonPath#what-is-returned-when the library will
always return a list, if an expression '?(<expression>)' is used. JMeter will
interpret this as an empty (but valid) result.

We might be able to tweak the parser using the options given at 
https://github.com/json-path/JsonPath#tweaking-configuration
Currently we are using the default configuration.
(./src/components/src/main/java/org/apache/jmeter/assertions/JSONPathAssertion.java
line 112)

You might get better results (without patching JMeter), if you were asserting a
value with the used assertion.

-- 
You are receiving this mail because:
You are the assignee for the bug.