These are various SoapUI snippets I’m using that other might be interested in.

Snippets

Generate random GUIDs

${java.util.UUID.randomUUID()}

Random integer with two digits

${=org.apache.commons.lang.RandomStringUtils.randomNumeric(2)}

Random string with two characters

${=org.apache.commons.lang.RandomStringUtils.randomAlphabetic(2)}

Today’s date in ISO format

${=def now = new Date();now.format("yyyy-MM-dd")}

200 days into the future

${=def now = new Date();def future = now.plus(200);future.format("yyyy-MM-dd")}

Own IP address

${=java.net.InetAddress.getLocalHost().getHostAddress()}