Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
XML comments will counted as "normal" child element #86
If client sends to citrus-server an XML which contains a comment inside of a XML element, citrus will count the comment element as normal XML child element. This will break the test, only if some add an additional comment to the client request.
<?xml version="1.0" encoding="UTF-8"?> <request> <!-- some example comment --> <fields>test</fields> </request>
http().server(httpserver) .post("/request-endpoint/xml") .payload(getResource("/request.xml")) .timeout(10000)
<?xml version="1.0" encoding="UTF-8"?> <not-valid-request> <fields>test</fields> </not-valid-request>
validation error message: