We need a way to populate a variable with the current date or time.
In one of our API calls, the API is expecting a start date and end date. Those dates need to be somewhere within the last 6 months.
Aside from calling some 3rd party API that would return the current date (which would make our test dependent on another API being available and increase our credit usage), I'm not finding a way to populate a variable with the current date.
In SoapUI tests we are doing the following
startDate=${=def now = new Date();now.month=now.month-1;now++;now.format("yyyy-MM-dd")}
endDate=${=def now = new Date();now.format("yyyy-MM-dd")}