Quick/brief post on putting a dynamic date into a (REST) parameter in a SoapUI request.

SoapUI supports Groovy scripting. See https://www.soapui.org/scripting—properties/property-expansion.html#2-Dynamic-Properties

My specific desire was to be able to pass “tomorrow’s date” as a dynamic parameter. Thanks to the help of the SoapUI forums:


I’m able specify this snippet as the value of my date (template) parameter:

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