Skip to content

Instantly share code, notes, and snippets.

@chumster
Created March 5, 2013 19:55
Show Gist options
  • Save chumster/5093671 to your computer and use it in GitHub Desktop.
Save chumster/5093671 to your computer and use it in GitHub Desktop.
SoapUI - Groovy Cheatsheet
// Generate Random GUID
def guidVal = "${java.util.UUID.randomUUID()}"
// Get current date and time in milliseconds
now = Calendar.instance
log.info 'now is a ' + now.class.name
date = now.time
log.info 'date is a ' + date.class.name + ' with value ' + date
millis = date.time
log.info 'millis is a ' + millis.class.name + ' with value ' + millis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment