MikeLoundes
12 years agoContributor
No signature of method: com.eviware.soapui.impl.wsdl.testcas
Hi folks
can somebody please explain why I'm getting this error??
No signature of method: com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext.setVariable() is applicable for argument types: (java.lang.String, java.lang.String) values:[XXXXXXX, N] (note substitutions of actual strings with X's)
I have the code below in a script assertion of a test request and get the No sig error, I have near duplicate code in another script which is fine and works as expected but cant see for the life of me whats wrong with this
my thanks in advance
can somebody please explain why I'm getting this error??
No signature of method: com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext.setVariable() is applicable for argument types: (java.lang.String, java.lang.String) values:[XXXXXXX, N] (note substitutions of actual strings with X's)
I have the code below in a script assertion of a test request and get the No sig error, I have near duplicate code in another script which is fine and works as expected but cant see for the life of me whats wrong with this
my thanks in advance
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
//get reference data for comparison
def DBData = context.expand( '${DataSource - SPV Data#XXXXXXXX}' )
def ResponseData = context.expand( '${XXXXXXXXXXXXXXX - XXXXXXXXXXXX - Verify Response Content#Response#declare namespace con1=\'http://www.XXXXXX.co.uk/XXXX/schema/v1.0/XXXXXXXXXXXXXXXXXXXXX\'; declare namespace con=\'http://www.XXXXXX.co.uk/XXXX/services/v1.0/XXXXXXXXXXXXXXXXXXXXX\'; //con:XXXXXXXXXXXXXXXXResponse[1]/con1:XXXXXXX[1]/con1:XXXXX[1]/con1:address[1]/con1:goneAway[1]}' )
log.info "ResponseData = " + ResponseData
log.info "DBData = " + DBData
//check ref data and modify based on rule
if (DBData == "GONEAWAY")
{
context.setVariable(DBData, "Y")
assert DBData == ResponseData
}
else
{
context.setVariable(DBData, "N")
assert DBData == ResponseData
}