Automated Test Framework

With the Automated Test Framework (ATF), you create and run automated tests on your ServiceNow instance. When you upgrade or modify an instance, run these tests to confirm that the instance still works as designed.

ATF's features provide flexibility in how you test your instance:
  • You can create simple tests that mimic user actions with no scripting. Examples of test steps that do not require scripting include the following:
    • Open a form
    • Set field values
    • Validate field values and attributes (such as read-only)
    • Submit the form
  • With the server-side scripting test, you can perform more complex operations. Examples include the following:
    • Perform unit tests using javascript, including tests using the Jasmine test framework. (In Istanbul, only test steps in the global scope support Jasmine.)
    • Test business rules, script includes, and other ServiceNow scripts.
    • Create tests that operate on data that you define.
  • Many test steps return output variables whose values you can use as inputs to a later step. For example, you can use output variables to accomplish the following tasks:
    • Perform a server-side assert on a record you previously inserted.
    • Create a record as one user, then re-open its form as a different user.
  • In addition to the out-of-the-box test steps, you can create custom test steps. These custom steps can take input variables and return output variables that you define.
  • The test framework automatically tracks and deletes any data created by running tests, automatically taking care of rolling back changes after testing.
  • Test suites enable you to execute a batch of tests in a specified order. In addition, test suites can be hierarchical, with suites nested within other suites.