Are Automated Test Framework tests and results preserved in a Clone?

mary_lindell
ServiceNow Employee
ServiceNow Employee

I presented the new Istanbul ATF at the Houston Feb 2017 SNUG meeting and was asked if the tests and results are preserved in a clone.

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Mary,



If they are on the source instance, then yes, they are cloned to the target. If they are on the target and the source doesn't have them (e.g. cloning production to test) then they will get deleted (because there are no records in prod) unless you create an exclusion record to skip over that table.


mary_lindell
ServiceNow Employee
ServiceNow Employee

The ATF results tables are preserved in the baseline system. You will need to setup additional clone preserver and exclusion entries for your modified tests, test steps, and test suites. You can find all the ATF tables by filtering by "sys_atf" in the data dictionary.


Hello Mary,



This was very helpful, when trying to preserve everything for the target instance with sys_atf works but you will still miss the variables coming over. You need to add another preserver for



Table: sys_variable_value


where table = sys_atf_step



With this all the variables in the tests will be preserved during a clone.



regards,



Simon Pullen