I am afraid that the __ time () function does not provide sufficient flexibility. You will need to calculate this date value through a Beanshell Sampler or a Beanshell Preprocessor
The corresponding Beanshell code will look like
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
Date now = new Date();
Calendar c = Calendar.getInstance();
c.setTime(now);
c.add(Calendar.MINUTE, 5);
Date now_plus_5_minutes = c.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
String mydate = sdf.format(now_plus_5_minutes);
vars.put("mydate",mydate);
You can specify this value mydateas
- $ {MyDate}
- $ {__ In (MyDate)}
At this point you will need to provide an updated date.
, .