Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

can we set dynamic date(or current date) in date field in ATF ?

Trupti2
Kilo Expert

Hi,

I want to set start/end date dynamically in ATF? is this possible?

Regard,

Trupti

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Trupti,

Can you explain what is the meaning of dynamic date?

This is possible

the below worked for me

javascript: gs.daysAgo(-7)

screenshot below is for older example; when I run it sets date to 7 days in future i.e. 11th May

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Hi ankur,

 

I need small Help , while giving Set field value in test step  say like out input value is dynamically ,

is it possible, supose after run the test is it possible to give filed value name

 

 

@MReddy 

Can you post a new question and tag me there as this is quite older thread

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader