IT CanvassTalk to an advisor
Development · LessonBy , ServiceNow Architect · Published · ServiceNow · all levels

ATF test suites

Write tests that survive upgrades: test steps, suites, scheduling, and the rules that keep ATF trustworthy.

Quick answer

Write tests that survive upgrades: test steps, suites, scheduling, and the rules that keep ATF trustworthy.

Key takeaways
  • ATF is for sub production only
  • Impersonation makes tests reflect real permissions
  • Tests should create the data they need
  • A suite that is always red teaches the team to ignore it

What ATF tests

ATF drives the UI and the server: open a form, set fields, submit, assert a field value, run a server side script and check the result. It is the practical way to prove that an upgrade or a release did not break your critical paths.

Structure

A test is a sequence of steps. A test suite groups tests and can run nested suites. Schedule suites to run nightly in development and on demand before a release.

Rules that keep it useful

Most ATF disappointment comes from ignoring these.

  • Never run ATF in production, it creates and modifies real records
  • Use the impersonate step so tests reflect real user roles
  • Create your own test data in the test rather than relying on demo records
  • Keep tests short and focused so a failure names the problem
  • Quarantine flaky tests immediately, a red suite everyone ignores is worthless

Upgrade value

Run the suite before the upgrade to get a baseline, then again after. The difference is your regression list, and it turns an upgrade argument into a short factual conversation.

Practice challenge

+0 XPStreak ×0
Question 1 of 2
Where should ATF suites run?

Frequently asked questions

How much coverage is enough?
Start with the ten journeys that would cause a major incident if they broke, for example raise an incident, approve a change, submit a catalog item. Grow from there.
Can ATF test integrations?
It can call server scripts and check results, but external systems should be mocked or pointed at a test endpoint so tests stay deterministic.
Already working on ServiceNow and stuck on a live ticket?Get an expert ServiceNow developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support