Closed gerrym7 closed 2 years ago
XML validation is not part of the default YAKS runtime. So you need to add this validation module explicitly, You can do this in your feature file by adding the following tag at the top of the feature file:
@require(com.consol.citrus:citrus-validation-xml:@citrus.version@)
As an alternative you can add the validation module as a dependency to the yaks-config.yaml
config:
runtime:
settings:
dependencies:
- groupId: com.consol.citrus
artifactId: citrus-validation-xml
version: "@citrus.version@"
This should fix your error CitrusRuntimeException: Failed to find proper message validator for message
Thank you, it works!
I have something like the following feature file:
The response would look something like this:
The
Then expect HTTP response expression
seems to work for JSON jsonpath, but not for XML xpath with namespaces. Am I doing this wrong?