SoapUI Testrunner提供有关TestAssertionRegistry的错误 [英] SoapUI Testrunner giving error about TestAssertionRegistry
问题描述
我能够使用有效的断言成功运行我的测试用例,但是当通过testrunner运行时,它会从这些错误开始-
I am able to run my test case successfully with valid assertions, but when running via testrunner, it starts off with these errors -
ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match]
ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match]
ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match]
ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match]
这些错误来自何处?我禁用了所有测试步骤,但无济于事.查看xml似乎是从项目级别开始的.我试图弄清楚它是从哪里产生的.
Where do these errors come from? I disabled all my test steps but to no avail. It appears to be coming form the project level looking at the xml. I am trying to figure out where it got generated from.
任何帮助将不胜感激.
推荐答案
JsonPath Match是SoapUI的5.2.x版中的一项功能.您正在尝试打开4.x版的项目,并且项目文件不向下兼容.
JsonPath Match is a feature in version 5.2.x of SoapUI. You are trying to open the project in version 4.x, and the project files are not downwards compatible.
我和您一样面临着同样的问题:如何删除所有这些问题.这是我 fake 删除它们的方式:
I was facing the same problem as you: how do I remove all of them. Here is how I fake removed them:
- 在文本编辑器中打开您的
*-soapui-project.xml
. - 将所有出现的
type="JsonPath Match"
替换为type="XPath Match" disabled="true"
.空格和双引号是相关的!
- Open your
*-soapui-project.xml
in a text editor. - Substitute all occurrences of
type="JsonPath Match"
fortype="XPath Match" disabled="true"
. Spaces and double quotes are relevant!
不漂亮,但是可以.另外,如果您想返回,只需反转替换即可.
Not pretty, but it works. Also, if you want to go back, just reverse the substitution.
这篇关于SoapUI Testrunner提供有关TestAssertionRegistry的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!