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
It says you have a problem at line 20, but the script you posted is not 20 lines long.
It says it has a problem with something called DEC in capitals, but the script you posted doesn’t contain that, so is it possible the error is in another part you haven’t posted?
Also, I see that the error is coming from MockTestRunner, which means you are running the script in isolation (without the context of the test case). That could be a problem - try running it as a complete test case.
Lastly, the error is probably in this line or a similar one: