Is it possible to turn off cleanup for ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 07:03 AM
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)
- Labels:
-
Automated Test Framework
- 2,987 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 07:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2018 12:34 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2018 11:37 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 07:21 PM
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