Run ATF Test
run_atf_testExecute a ServiceNow ATF test by its unique sys_id, wait for completion, and retrieve the test name, status, run time, and output.
Instructions
Execute a single ServiceNow ATF (Automated Test Framework) test by its sys_id. The test runs on the instance, and this tool waits for it to complete before returning the result. Returns the test name, status (success/failure), run time, and any output produced by the test.
Use this tool when the user wants to run a specific ATF test and see its results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias to run the test on. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| test_sys_id | Yes | The sys_id of the ATF test to execute. This is the unique identifier for the test record in the sys_atf_test table. |