cvc-complex-type.2.4.a: Invalid content was found starting with element
'TestMessage'. One of '{WC[##other:"http://www.citrusframework.org/schema/
testcase"]}' is expected.
这是 XML dsl 文件的屏幕截图 click here to see xml image柑橘
最佳答案
这是因为你的<TestMessage>
没有使用任何命名空间。在有效负载元素中不允许这样做。您应该使用正确的 XML 命名空间或使用 <data>
元素而不是 <payload>
.
关于java - 使用 <payload> 元素的 Citrus <TestMessage> 子标签时,出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47156031/