Through ATF if i Delete the Incident still i can see after completion of ATF testing

kranthi2
Tera Expert

Hi,

By suing the ATF test steps i am trying to Delete the Incident and one of the Alert but once the testing is finished still i can see that Incident

Please find the below screenshot for the ATF test steps.

kranthi2_0-1752458248796.png

Thanks,

 

1 ACCEPTED SOLUTION

@kranthi2 

on both the tables see the Collection type field from sys_dictionary and see if that attribute is present

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@kranthi2 

check this

Automated Test Framework (ATF) tests do not rollback the records which have been created / deleted /... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

Thanks for your response

As i have checked this article, any possibility to delete the Incident after completion of ATF testing 

Because if i try to run the same ATF same alert and  incident is opening again and which should not be happen.

My requirement is if i try to run the ATF multiple times all the records should be Rolledback but it is not happening in this case.

--Creating Event from the event Alert is generating 

---From the Alert Incident is generating and i want to assign that incident to someone and Resolve the incident.

But it is working if the record is rolled back but in this case records are creating with the same number(alert and Incident)

 

Please help me out how can i achieve this.

My intention is if i run n no.of times still it has to create new record and all the created records should be rolled back.

 

Thanks

@kranthi2 

yes it does rollback

Check if both the table have the excludeFromRollback=true dictionary attribute, which prevents rollback.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

Could you please elaborate your response.

on which 2 tables should i need to check fir the excludeFromRollback=true this 

 

Thanks