简体   繁体   English

空手道异常 'com.intuit.karate.exception.KarateException

[英]Karate exception 'com.intuit.karate.exception.KarateException

I got the below setup.Its in the following repository.我在以下存储库中获得了以下设置。 https://github.com/Yogeshwari21/karatecheck/tree/master/src/test/java/FeatureTest1 https://github.com/Yogeshwari21/karatecheck/tree/master/src/test/java/FeatureTest1

I have not shared the actual variables used, i have created a sample set up in the above repository.我没有分享使用的实际变量,我在上面的存储库中创建了一个示例设置。

I am trying to create multiple data for a request and whenever i trigger the test, i get below exception我正在尝试为一个请求创建多个数据,每当我触发测试时,我都会遇到异常

KarateException: AlertParadef.feature:4 - org.xml.sax.SAXParseException;空手道异常:AlertParadef.feature:4 - org.xml.sax.SAXParseException; org.xml.sax.SAXParseException; org.xml.sax.SAXParseException; lineNumber: 1;行号:1; columnNumber: 9;列数:9; XML document structures must start and end within the same entity. XML 文档结构必须在同一实体内开始和结束。 at ✽.Given def param1=在 ✽.Given def param1=

Any help is greatly appreciated.任何帮助是极大的赞赏。

Since <field4> is missing in the CSV, it became invalid XML in the feature file.由于 CSV 中缺少<field4> ,它在功能文件中变成了无效的 XML。

Also please read this section carefully: https://github.com/intuit/karate#scenario-outline-enhancements另外请仔细阅读本节: https : //github.com/intuit/karate#scenario-outline-enhancements

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM