Is it possible to turn off cleanup for ATF?

Andrii
Kilo Guru

Hi, as ATF has been included into ServiceNow, we've faced new challenge - we need to see real test records. However ATF deletes records after each test.

Is there any property that disables deletion of test data?

Idea behind is to use results of one test as an input of another test (not test steps but tests)

7 REPLIES 7

Abhishek Raj3
Tera Guru

Hello ANDRII,



Answer is yes we can change the Time   (Age in Seconds).


Here you go , Please find the attached link Modify retention policy for automated test results records



Thanks,


Abhishek


Ok, I got acquainted with this information



and does it mean that if my test includes test step of creation a new user in [sys_user] table - will I be able to find that user in User [sys_user] after test finishes?




Following article - Pass values from one automated test step to another   talks about possibility to pass artifact info between test steps inside one test



Is there such functionality to pass values between Tests?


Nia McCash
Mega Sage
Mega Sage

I don't think it is currently possible to persist test records created as part of ATF.  See https://community.servicenow.com/community?id=community_blog&sys_id=4d49e7e9db6553447b337a9e0f96190a

I've also been looking for something like this but preserving records from one test to use in a different test is not currently possible.  Perhaps we should submit enhancement requests so that ServiceNow can add this option in future versions.

Disabling rollback is possible.

By adding the attribute excludeFromRollback=true to the a tables 'collection' dictionary record, the record will be preserved after the test is run.

However, there is still no direct link back to that record. The Test Transaction Test Step record is supposed to link to the record, but the 'Table' and 'System ID' field are still null.
The only reference is the summary, which has the Sys ID.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022