Forum Discussion

slautier's avatar
slautier
Occasional Contributor
3 years ago

JsonPath Match and JsonPath RegEx Match assertions fail with SoapUI 5.7.0 (and worked with v5.6.1)

Hi, I'm totally new to SoapUI and I'm taking over the integration tests of a colleague who left the company. Our security department requires us to use log4j 2.17 which is embedded in SoapUI 5.7.0. ...
  • slautier's avatar
    3 years ago

    I finally figured out what the pb was: this is most likely related to the upgrade of the Jayway jsonpath library from 0.9.1 (SOAPUI 5.6) to 2.4.0 (SOAPUI 5.7). See SOAPUI release notes:


    • We've updated a number of third-party libraries, including the following:

      - Apache Log4j library to 2.17.1.

      - Jayway jsonpath to 2.4.0.


    In the project file, replacing "$..status[0]" with " $[0].status" solved the issue.

    I used this website for JSONPath implementation differences and validation: https://jsonpath.herokuapp.com/.