Closed grebrov closed 3 years ago
the XML message validator is not part of the default YAKS runtime. You will have to add it as an explicit dependency to the test runtime.
You can do this via yaks-config.yaml
or using the require Cucumber tag in your feature file.
yaks-config.yaml
config:
runtime:
settings:
dependencies:
- groupId: com.consol.citrus
artifactId: citrus-validation-xml
version: "@citrus.version@"
require tag_
@require('com.consol.citrus:citrus-validation-xml:@citrus.version@')
Feature: Foo
Scenario: xml
...
Dear Christoph, thank you very much and sorry, that I didn't find out myself. Works perfectly
When "testing" http request with xml content I get the error:
com.consol.citrus.exceptions.TestCaseFailedException: Failed to find proper message validator for message
Doing the same request with json body works.
Can be reproduced with this feature file (the api supports xml and json, depending on the header):
`Feature: http request with xml-body
First scenario fails with the above error, second is successful