Hello, i would like to know if wiremock-jre8 2.33....
# help
j
Hello, i would like to know if wiremock-jre8 2.33.2 supports xmlunit placeholder (RegEx) for e.g. <date>${xmlunit.matchesRegex(20230622.*)}</date> to check if the xml element value matches with a regex defined in the placeholder for request matching.
t
I don’t think this is possible in any version, but you can achieve something similar by combining the XPath matcher with a regex value match e.g. (JSON form):
Copy code
"matchesXPath" : {
         "expression": "//date/text()",
         "matches": "20230622.*"
      }
j
@Tom i am using the wiremock recorder and the equalToXml is used after recording is stopped and it works perfectly with ${xmlunit.ignore} placeholder to ignore an element value for request matching. why isn’t it also possible for ${xmlunit.matchesRegex(20230622.*)}?