http://readyapi.smartbear.com/features/scripts/start 查找API
今天跑 ready!API 的时候 , 遇到下面这个问题
1. org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3):' ' error at lineXXX
2. org.apache.xmlbeans.XmlException:error: Unexpected element:CDATA error at line:XX
原因都是response里面有个中文输入符号导致的 ,把它删了就可以了
还可以这样:
def response3X = context.expand('${Get3XList#responseAsXml}')
response 返回为Xml
3. 昨天因为大小写的问题,查了好久, 因为soapui的没有调试的功能, 以后要是坚信自己代码没问题,就要查语法了。 大小写啊,空格啊,输入符这些