smadden
10 years agoNew Contributor
Script Assertion checking dateTime
I am new to SoapUI, and have a question about a script assertion I need to put together. I have a DB DateTime in UTC value that I need to check against. So basically I have def SQL_Departure = co...
- 10 years ago
nevermind. Figured it out...
import groovy.time.TimeCategory
----
-----
------
def now = new Date()
use(TimeCategory){
adjDate = now + 4.days
}def dateFormat = adjDate.format("YYYY-MM-dd HH:mm:ss")
log.info dateFormat