Migrating ATF suite and tests between different ServiceNow versions

Yernie
Kilo Contributor

I am trying to migrate a suite of Automated Test Framework tests from Kingston to Madrid.

The existing suite of ATF tests consists of 6 suites, 30 tests and 100s of test steps. Every time I create the update set and export the XML (from Kingston) and then import the XML (to Madrid) the test steps are missing. I tried to edit the description of the test suite with the hopes that the tests contained in the suite will also be updated but to no avail. Only the test suites and  the tests minus the test steps are imported. It would be a boring, tedious task if I had to touch all of the test steps in order to get the test steps to import successfully.

Question - Can anyone recommend a simple way of importing the ATF test suites, tests and steps?

Thank You!

 

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I don't know that there's a simpler way to do it. I would make sure you're importing your xml in order where you're importing the suites, tests, and then test steps. Is the rest of the Madrid instance a clone of the Kingston instance? I imagine the test steps are referencing records in ServiceNow by sys_id, so if the instances don't match up, then even if you get them all imported they may not work correctly.

You could also try the Add to Update Set utility on share, which has functionality in it to grab related records for some record types, but I'm not sure ATF is included.

Yernie
Kilo Contributor

I had to recreate the tests manually in Madrid.  Ouch!  Thanks for responding!