我正在使用Ready!Api,new soupui界面。 我正在做的是制作一个脚本,将响应XML与文本文件进行比较。结果将写在另一个文件中(但是,没有喷射)。
我在github(https://gist.github.com/karlin/789830)上发现了一个很好的脚本,我正在改变它。
现在,我收到一条消息,指出MessageExchange不是有效的属性。作为一种解决方法,我开始使用:com.eviware.soapui.model.iface.MessageExchange
例如
compareWithExpected(context,com.eviware.soapui.model.iface.MessageExchange)
def中传递的变量为mex
。
当我使用mex.responseContentAsXml
时,我会收到下一条消息:
groovy.lang.MissingPropertyException:没有这样的属性:classConceptionContentAsXml:com.eviware.soapui.model.iface.MessageExchange可能的解决方案:在行的responseContentAsXml错误:10
有什么想法吗?