cdunne
17 years agoContributor
Script Library - StringBuffer not reconised
Hi,
I'm having some issues with using a StringBuffer in my script library, when call the following in a method (soapUIXmlUtils is custom jar package we have developed),
SoapUIXmlUtils soapUIXmlUtils = new SoapUIXmlUtils(getCurrentResponse(messageExchange))
soapUIXmlUtils.excelDocumentAndSheetNames(filePath, datasheet)
def errors = new StringBuffer()
succeed = soapUIXmlUtils.validateResponseAgainstFile(parentNode, errors, rangeStart, rangeEnd)
I get this exception -
Wed May 21 11:51:21 BST 2008:INFO:groovy.lang.MissingMethodException: No signature of method: com.tmcn.xmlutilities.SoapUIXmlUtils.validateResponseAgainstFile() is applicable for argument types: (java.lang.String, java.lang.StringBuffer, java.lang.String, java.lang.String) values: {"//ref:ReferenceDataResponse/ref:DataItem", , "1", "2"}
I can call the exact same code from a script assertion and groovy step and I do not get the exception.
Anyone got any ideas? This one has me completely scratching my head :-(
Cheers
Cormac
I'm having some issues with using a StringBuffer in my script library, when call the following in a method (soapUIXmlUtils is custom jar package we have developed),
SoapUIXmlUtils soapUIXmlUtils = new SoapUIXmlUtils(getCurrentResponse(messageExchange))
soapUIXmlUtils.excelDocumentAndSheetNames(filePath, datasheet)
def errors = new StringBuffer()
succeed = soapUIXmlUtils.validateResponseAgainstFile(parentNode, errors, rangeStart, rangeEnd)
I get this exception -
Wed May 21 11:51:21 BST 2008:INFO:groovy.lang.MissingMethodException: No signature of method: com.tmcn.xmlutilities.SoapUIXmlUtils.validateResponseAgainstFile() is applicable for argument types: (java.lang.String, java.lang.StringBuffer, java.lang.String, java.lang.String) values: {"//ref:ReferenceDataResponse/ref:DataItem", , "1", "2"}
I can call the exact same code from a script assertion and groovy step and I do not get the exception.
Anyone got any ideas? This one has me completely scratching my head :-(
Cheers
Cormac