You are on page 1of 3

When and how should I use Automated Test Framework (ATF)?

Automated Test Framework (ATF) is a ServiceNow ® application used to automate the tests performed to
Questions addressed verify applications, customizations, or configurations. ATF gives you the tools to create and run
automated tests on your ServiceNow non-production instance.
Page 1:
ATF provides functional testing that allows actions such as creating records, setting field values, and
• What is Automated checking results of field values. If a test fails, ATF indicates that the result doesn’t meet the expected
Test Framework results of the test and includes details of what the underlying problem may be. Also, ATF is free with the
(ATF)?
Now Platform® and uses the same development tools your developers are familiar with.
• Where can I find
ATF? Search for “Automated Test Framework” in the application menu to find it.

• Why use ATF to test Why use ATF to test your instance? ATF reduces upgrade and development time by replacing manual
your instance? testing with automated testing. Compared to other test methods, ATF:

Page 2: • Avoids time-consuming and repetitive testing – Just set up the tests and reuse them every time you
upgrade or modify your instance.
• When and how
should I use ATF? • Avoids user error – Since the tests are automated, they’re performed exact ly t he same way every t ime
you run them.
Page 3:
• What is the best • Allows you to create reusable tests – Once you create ATF tests, you can reuse them for future upgrades and other releases.
practice process for
using ATF? • Speeds up test creation – Use either a quick start test, which is a ServiceNow-provided test that you can copy and modify to
meet your unique business process needs—or create test templates to add predefined lists of steps to existing test plans.

• Decreases time to value – You’ll upgrade faster and get your value-added features and enhancements to your users faster.
If you have any questions
on this topic or you would • Avoids breaking tests related to user interface (UI) changes – ATF is independent of UI changes, so tests do not break when
like to be a contributor to the UI is changed, which is a common issue with third-party automated testing tools.
future ServiceNow best
practice content, please • Promotes confidence in your platform stability – It delivers a quality product with ServiceNow.
contact us.

1 © 2021 ServiceNow , I nc. All Rights Reserved.


When and how should I use Automated Test Framework? (Cont.)
Use this chart to better understand what type of testing is recommended for ATF.
When and how should I use ATF? Recommended Not recommended
ATF is intended for functional testing of business logic, so it You should never use ATF tests or any other functional testing
You should run ATF tests to confirm tests the specific business processes that you manage in your tools in your production instance.*
that the instance still works as Serv iceNow instance.
designed whenever you upgrade, For example, a test can impersonate a user w ith extensive
modify an instance (e.g., customize For example, ev ery organization has a specific change security access or change data that may be designed to
or make field changes), or have management process. ATF allow s you to build a test w here trigger actionable events, like sending an email to your
internal development releases. This you can automatically create a change request and push it entire customer base.
includes running tests on any scoped through its lifecycle to ensure that your process still w orks.
ATF targets browser compatibility testing across multiple ATF is not intended for testing every single UI component of
apps, custom apps, or out -of-the-box
brow sers and operating systems. your Serv iceNow instance.
products.
Write an ATF test once, and then v erify the same functionality For example, you don’t need to test the magnifying glass
With ATF, besides running test suites w orks as expected for all supported environments. icon on a reference field. Think about what’s unique in your
on demand, you can also schedule instance and what’s common across ev ery instance.
them to run during off hours. You can ATF is effective for regression testing. ATF can be used but is not recommended for unit testing.
run an entire suite of tests and, in
Create comprehensive testing plans to ensure existing For example, since you’ll need to update ATF tests ev ery
moments, analyze the results to
processes still work as expected following an upgrade or time a feature changes, don’t build ATF tests for features
determine if remediation is required. dev elopment cycle. Run the same comprehensive testing
You can use the same tests again for that are still changing frequently. I t’s better to create tests
plan before and after major changes to get a baseline. ATF once feature changes have slowed down to prevent extra
your next release or upgrade if you prov ides assurance that the same tests will run in the same work.
keep the tests in sync with the manner, allow ing routine instance checks to be performed
configurations and customizations whenever necessary.
they test. ATF can be integrated with Jasmine, an open source testing ATF is not a load testing or performance testing application.
framework for Jav aScript.
ATF is intended to test the changes
you make to your instance, but not Jasmine tests are called to v erify server-side functionality
to test base ServiceNow functionality. from the steps of an ATF test.
*ATF tests should only be run in sub-production. If you clone your sub-production instance from production, consider
mov ing ATF tests to your production instance using update sets or use source control as a central repository so you don’t
lose the tests from your sub-production instance before they’re cloned from production.
2 © 2021 ServiceNow , I nc. All Rights Reserved.
When and how should I use Automated Test Framework? (Cont.)
What is the best practice process for using ATF?
Identify essential Create tests to
Package tests into Run or schedule test
1 functionality per 2 validate essential 3 suites. 4 execution.
process/application. functions.
Focus on the functionality Begin creating tests once any Organize your tests into ATF test suites can either be run on
that’s specific to your additional changes to the test suites that can be run demand or scheduled. ATF tests are
ServiceNow instance. new feature you want to test together. Use an existing only run on demand. The test steps
When determining what’s will be minimal. If you develop test suite or create a new within a test are run on the client or
essential, consider the new functionality and ATF one. The same test can the server. Test steps performed on
exposure to risk. Weigh tests in tandem, realize any be grouped into multiple the client UI are executed by a
the detail of the additional functional changes test suites. Carefully plan client test runner within a separate
validation against the could result in additional ATF your tests and suites to browser window. Test steps
ongoing test development effort. optimize your testing. performed on the server execute
maintenance required. against the instance.

Monitor and fix


5 issues. 6 Maintain ATF tests. Related resources

• Success Quick Answer – W hat best practices should I consider when creating ATF tests?
Once tests are run, review Whenever changes (e.g., • Product Docs – Automated Test Framework Overview
the test results. Detailed customizations or field • New for Developers in Paris: Overview of Automated Test Framework changes
test results are provided changes), are introduced to
• Now Learning – ATF Fundamentals eLearning series
at the test suite, test, and an instance, evaluate and
test step level. Runtime update ATF tests to reflect the • Now Community – Best practices for using ATF
screenshots are included latest changes. • YouTube – Getting started with ATF
in test results to help • Customer Success Center – Upgrade quickly and maintain platform health
monitor and debug any • YouTube – Upgrading to a New Release
issues.

3 © 2021 ServiceNow , I nc. All Rights Reserved.

You might also like