Getting started with the Automated Test Framework
Summarize
Summary of Getting Started with the Automated Test Framework
The Automated Test Framework (ATF) is designed to facilitate application testing within ServiceNow. It allows users to create, run, and manage tests effectively, ensuring that applications function correctly before deployment. The framework offers a beginner tutorial to help users familiarize themselves with its basic features and encourages exploration of more advanced functionalities as confidence grows.
Show less
Key Features
- Test Step Configuration Categories: ATF provides various categories for testing, including:
- Service Catalog in Service Portal: Conduct end-to-end tests for catalog items.
- Application Navigator: Verify navigation features and application menus.
- Custom UI: Create simple user action tests without scripting.
- Form Testing: Test forms by validating field values and UI actions.
- REST: Create and send Inbound REST requests to verify responses.
- Server Operations: Perform unit tests and test scripts using JavaScript.
- Output Variables: Use output variables from test steps as inputs in subsequent steps to enhance testing workflows.
- Custom Test Step Configurations: Create custom test steps that run on the server, allowing for tailored testing scenarios.
- Data Preservation: ATF automatically manages data created during tests, rolling back changes after execution.
- Test Suites: Execute multiple tests in an organized manner, allowing for hierarchical structuring and scheduling.
Key Outcomes
By utilizing the Automated Test Framework, ServiceNow customers can streamline their application testing processes, ensuring consistent performance and reliability. This leads to improved application quality, reduced deployment risks, and enhanced user satisfaction. Additionally, the support for domain separation allows for better data management and access control within the testing environment.
If you are new to the Automated Test Framework, read this overview to learn what the framework can do. Next, follow the tutorial to create and run a test that uses the most basic of ATF features. After you feel comfortable with the basics, explore more advanced features provided by the ATF.
ATF features provide flexibility in how you test your instance.
Test step configuration categories
| Category | Description |
|---|---|
| Service Catalog in Service Portal | Perform end-to-end testing for a catalog item in the Service Portal.
|
| Application Navigator | Create tests to check navigation features.
|
| Custom UI | Create simple tests that mimic user actions with no scripting.
|
| Form | Create tests of forms.
|
| Service Catalog | Perform end-to-end testing for a catalog item.
|
| Forms in Service Portal | Create tests of forms in the Service Portal.
|
| REST | Create and send an Inbound REST request and verify the response.
|
| Server | Perform more complex operations, including the following:
|
Output variables
- Perform a server-side assert on a record that you previously inserted.
- Create a record as one user, and then reopen its form as a different user.
Custom test step configurations
Data preservation
The Automated Test Framework automatically tracks and deletes any data created by running tests, and automatically rolls back changes after testing.
Test suites
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. You can associate test suites with schedules that determine when the system runs the test suites.