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

            Bug ID: 63455
           Summary: XPath Assertion: "True if nothing matches" does not
                    work if XPath expression returns a boolean
           Product: JMeter
           Version: 5.1.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.1.1

If you have this response:

<response>
 <code>1</code>
 <error>Print Error</error>
 <error>Network Error</error>
</response>

With:

- XPath: count(//*[code=1])=1
- True if nothing matches checked


The expected result would be to have the Assertion fails as the XPath result is
true.


The result you get is that there is no difference wether you check or not True
if nothing matches checked and assertion succeeds.

There are in fact 2 issues:

- True if nothing matches checked is confusing, and should be named "Invert
assertion" as that's what one is expecting
- Since the boolean function returns a node (True /False), True if nothing
matches checked will always succeed

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

Reply via email to