This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a5cac0  JSON Assertion always successful with indefinite paths
6a5cac0 is described below

commit 6a5cac0ad75e72d5313f3c795845c6cea9ff6520
Author: Felix Schumacher <[email protected]>
AuthorDate: Tue Jan 18 17:36:49 2022 +0100

    JSON Assertion always successful with indefinite paths
    
    Add a note to the component reference for JSON Path Assertions
    
    Bugzilla Id: 65794
---
 xdocs/changes.xml                        | 2 ++
 xdocs/usermanual/component_reference.xml | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index e80edad..6f56b60 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -253,6 +253,7 @@ however, the profile can't be updated while the test is 
running.
 
 <h3>Documentation</h3>
 <ul>
+  <li><bug>65794</bug>JSON Assertion always successful with indefinite 
paths</li>
 </ul>
 
 <h3>General</h3>
@@ -300,6 +301,7 @@ however, the profile can't be updated while the test is 
running.
 <p>We also thank bug reporters who helped us improve JMeter.</p>
 <ul>
   <li>Nikola Aleksic (nalexic at gmail.com)</li>
+  <li>Vladimir Rosu (rosuvladimir at gmail.com)</li>
 </ul>
 <p>
 Apologies if we have omitted anyone else.
diff --git a/xdocs/usermanual/component_reference.xml 
b/xdocs/usermanual/component_reference.xml
index 02b9cf9..985918c 100644
--- a/xdocs/usermanual/component_reference.xml
+++ b/xdocs/usermanual/component_reference.xml
@@ -5035,6 +5035,9 @@ please ensure that you select "<code>Store the message 
using MIME (raw)</code>"
             Second, it will search for specified path, using syntax from <a 
href="https://github.com/json-path/JsonPath"; >Jayway JsonPath 1.2.0</a>. If the 
path is not found, it will fail.
             Third, if JSON path was found in the document, and validation 
against expected value was requested, it will perform validation. For the 
<code>null</code> value there is special checkbox in the GUI.
             Note that if the path will return array object, it will be 
iterated and if expected value is found, the assertion will succeed. To 
validate empty array use <code>[]</code> string. Also, if patch will return 
dictionary object, it will be converted to string before comparison.
+           <note>When using <a 
href="https://github.com/json-path/JsonPath#what-is-returned-when";>indefinite 
JSON Paths</a>
+             you must assert the value due to the existing JSON library 
implementation, otherwise the assertion could always
+             return successful</note>
         </p>
     </description>
     <properties>

Reply via email to