Automated Test Framework (ATF)
- You can create and run automated tests to confirm that your instance works after making a change.
- Leveraging the power of ATF, you will be able to reduce the amount of manual testing required to deliver ServiceNow instance changes quickly and effectively.
On average, manual testing consumed 43% of time and resources spent on upgrades
- Before you can start creating your first tests and test suites, you need to enable Automated Test Framework (ATF) in the instance.
NOTE: ATF should not be run in Production instances.
Building Blocks
The important elements used to develop ATF testing include:
- Test suites
- Tests
- Test steps
Test suites
- A test suite groups tests together that are typically performed one after the other.
- Test suites represent a grouping of one or more tests or other test suites.
- The same test can be included within multiple test suites.
- However, a test suite can only be assigned one parent test suite.
Tests
- An ATF test represents a set of actions and assertions to verify an expected end result.
- Each action or assertion within the test is represented by an individual test step.
- Although there is no limit to the number of test steps contained within a test, it is typically better to create smaller focused tests, rather than larger broad tests.
When using an Agile development approach, an ATF test can be assigned to a Story.
It represents an individual test case with a given acceptance criteria.
Test steps
- A test step represents a single action or assertion within a test, such as creating a user, opening a form, or validating a field value.
- Different types of test steps are created using different test step configurations.
- A test step configuration defines the behavior and characteristics of each type of action or assertion.
Client and server