Created
March 5, 2013 19:55
-
-
Save chumster/5093671 to your computer and use it in GitHub Desktop.
SoapUI - Groovy Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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