Is it possible use more than one xpath matcher for...
# help
d
Is it possible use more than one xpath matcher for logic and evaluation? For example I want to check if a XML file has a certain tag and if another tag has certain value. `... bodyPatterns": [ { "matchesXPath": "//ElementA`" `}, { "matchesXPath": { "expression": "//ElementB/text()", "contains": "XXX`"
Copy code
}
  }
]
l
Hi, yes you can put as many body matchers in your stub as you like. all matchers will need to match in order for the stub to be matched
d
Thank you 😊
👍 1