set planned start/end date in test step of ATF

gtk
Mega Sage

we have created a test step on change management module, now our challenge is to set planned start/end date to be dynamic - like if I run the test step in march 3 then the planned start date is set to march 4 and planned end date is set to march 6 like this 

we know it can be done with server script prior to the set field values step, but is there a way to do this in set field values step with help of coding/scripting

any help appreciated

1 ACCEPTED SOLUTION

sai195
Tera Contributor

Hi,

You can use "javascript:gs.daysAgo(-1)" for Planned start date and "javascript:gs.daysAgo(-2)" for Planned end date.

Regards,

Sai

Mark āœ… Correct if this solves your issue and also mark šŸ‘ Helpful if you find my response worthy based on the impact.

View solution in original post

5 REPLIES 5

Hi, did you find the solution for this? I also need it  minutes or even in seconds