ServiceNow Automated Test Framework
Catch regressions before an upgrade catches you.
The Automated Test Framework builds repeatable tests from a catalog of steps: open a form and set fields, run a server script, order a catalog item, call a REST API, and assert the result. Tests group into suites you schedule after an upgrade in a sub-production instance. It is never enabled in production, because tests create and change real records.
- Tests and test steps
- Test Suites & scheduling
- Where and how to run it
- Why it matters for upgrades
- Common mistakes
The Automated Test Framework (ATF) lets you build repeatable tests of your instance, forms, catalog items, REST APIs, workflows, so an upgrade or a new update set doesn't silently break what already worked. It turns regression testing from days of manual clicking into an automated pass/fail run.
Tests and test steps
A Test is a sequence of Test Steps chosen from a large catalog. Steps pass data down the chain, so step 3 can act on the record step 2 created:
Test Suites & scheduling
Group related tests into a Test Suite and schedule it, for example, run the full regression suite automatically after every upgrade in the sub-prod instance, and read the pass/fail report before promoting.
Where and how to run it
Why it matters for upgrades
Common mistakes
- Enabling ATF in production.
- Writing brittle tests tied to exact UI text that changes each release.
- Building tests once and never maintaining them as configuration evolves.
- Testing only the happy path and missing the failure branches.
▸ Press Run to execute.
Runs in a sandbox in your browser. Mock gs and GlideRecord and sample data are provided.