Contributions
Java datetime groovy.lang.MissingPropertyException: No such property: executionTime for class: Scrip
I am trying to read current datetime in SOAPUI groovy script class. The code works in CST timezone. On a different machine in India IST timezone (Java version is matched 1.8) it is giving error ERROR [errorlog] groovy.lang.MissingPropertyException: No such property: executionTime for class: Script1 groovy.lang.MissingPropertyException: No such property: executionTime for class: Script1 Here are the code lines def executionTime = new java.text.SimpleDateFormat("MM-dd-yyyy' 'hh:mm").format(new Date()) groovyUtils.setPropertyValue("Results", "executionTime", executionTime.toString()) I have NOT included import java.util.*; import java.util.Date; Interestingly In another groovy script class this is working. import java.util.*; import java.util.Date; //Set current date and time in 24hr Date Format def currentDateAndTime = new java.text.SimpleDateFormat("yyyy_MM_dd'_'HH_mm").format(new Date()) testRunner.testCase.setPropertyValue("currDateTime", currentDateAndTime) I am not getting much overlap time to debug, So it is tricky. Appreciate any hint or tips that would resolve the issue. Kindly request for any more info.3KViews0likes5Comments- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0Comments