No such property: actualBankname for class:script 19
Hi !
I am getting error message " No such property: actualBankname for class:script 19" in popup window
even if I declared variable actualBankname into my script:
Note : I am getting the values of expectedBankname et actualBankname into the lod
Here is my script
/Compare values in XML response with property values taken from the database
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
def log = this.log
// expected Bankmane for input file
def expectedBankName = context.expand('${StartLoop#ExpectedBankName}')
//def actualBankName = holder.getNodeValue["//getBankResponse/ns1:details/ns1:bezeichnung"]
def actualBankName = holder.getNodeValue("//*:bezeichnung/text()")
// Print Actual status and expected status in the log
log.info " Expected Bank name is -> " + expectedBankName
log.info " Actual Bank name is -> " + actualBankName
if (actualBankname && expectedBankName)
{
content.testCase.setPropertyValue("result","Pass")
}
else
{
content.testCase.setPropertyValue("result","Fail")
}
Anybody face to the same problem ?
Your capitalization is off again.
Instead of:if (actualBankname && expectedBankName)
You need to use:
if (actualBankName && expectedBankName)