1

In the example below, I would like to set the end date to a date which is 3 or 5 days from the start date, for now my request is sending:

startDate=2019-01-03T09:38:00.452Z&endDate=2019-01-03T09:38:00.452Z

But I need to be sent as:

startDate=2019-01-03T09:38:00.452Z&endDate=2019-01-06T09:38:00.452Z

enter image description here

2

There is a __timeShift() function which can generate times and dates in different formats with different offsets so function call like:

${__timeShift(yyyy-MM-dd'T'hh:mm:ss:SS'Z',,P3D,,)}

should be something you're looking for:

enter image description here

Check out Creating Dates in JMeter Using the TimeShift Function article for more information if needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.