How can I test that within ATF that one incident is getting closed after 5 days by itself or not??

nandini18
Tera Contributor
I Have created one ATF test case where I am testing incident management properly. Here as per our development when any incident gets resolved then after 5 days its gets closed automatically .How can we check that using ATF??
Please suggest.
1 REPLY 1

Abhijit4
Mega Sage

Hi,

There must be one scheduled job which identifies incident which were resolved 5 days back, you need to check what parameter scheduled job checks to verify 5 days gap before closing. On incident form we have "resolved" field which stores date-time on which incident was resolved, I think scheduled job must have been using this field. If yes then you can make resolved field value five days back through "Run Server Script" in ATF and execute scheduled job through same step and keep some timer then check if incident is resolved or not. This should work as your validation.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP