Find ATF Tests
find_atf_testsSearch for Automated Test Framework tests on a ServiceNow instance by name, description, or category. Returns matching test sys_ids for execution with run_atf_test.
Instructions
Search for ATF (Automated Test Framework) tests on a ServiceNow instance. Find tests by name, description, or category. Returns a list of matching tests with their sys_ids, which can then be passed to the run_atf_test tool for execution.
Use this when you need to discover which ATF tests exist before running them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| search_term | No | Text to search for in test name and description fields. Case-insensitive contains matching. Example: "incident" finds tests with "incident" in the name or description. | |
| category | No | Filter by test category (e.g., "Custom", "Module"). Maps to the sys_atf_test.category field. | |
| active | No | Filter by active status. Defaults to true (only active tests). Set to false to find only inactive tests. | |
| limit | No | Maximum number of tests to return. Default is 25. |