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,993 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2020 01:01 AM
There's a small hack for that:
- Create a custom server script step that does this:
(function executeStep(inputs, outputs, stepResult, timeout) {
//gs.sleep(1000*inputs.u_seconds);
gs.sleep(1000*30);
stepResult.setSuccess();
}(inputs, outputs, stepResult, timeout));
- Add the step to your test at the end
When you run it now, you have 30 sec to check all the records created by the test run.
After the test execution they will be deleted anyway, but the test execution lasts longer now.
Ofc you can parametrize the input depending on the needs (commented out code)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2020 01:18 AM
Hi
- Open a form from a table to which you want to stop rollback.For example open incident form
- Click on Form context menu-->click on Configure-->Dictionary.
- You will find a record with no column name
- Open the record → Click Advanced view
- In the attributes field add an attribute excludeFromRollback=true
- Repeat these steps for every table to which you want to stop rollback.
Thanks,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2020 04:03 AM
Hi
Thanks,
Gopi