I am getting "groovy.lang.MissingPropertyException: No such property:" for my groovy script.
Hi
I'm using the SoapUI free version.
My groovy script below is throwing me this error "groovy.lang.MissingPropertyException: No such property: DEC for class: com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner error at line: 20"
Groovy script:
def effectiveDate = new Date().format("yyyy-MM-dd'T'03:56:29+13:00")
log.info effectiveDate
def LastRenDate = new Date().format("yyyy-MM-dd'T'03:56:29+13:00")
log.info LastRenDate
def RenewalDate = new Date().plus(365).format("yyyy-MM-dd'T'03:56:29+13:00")
log.info RenewalDate
def ExpiryDate = new Date().plus(365).format("yyyy-MM-dd'T'03:56:29+13:00")
log.info ExpiryDate
def globalProperty = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("EffectiveDate")
log.info globalProperty
testRunner.Dec_Quote.setPropertyValue("EffectiveDate", effectiveDate)
I have already got this property in my test case, not sure why its throwing this error