How to trigger an ATF test suite from a Gitlab CI/CD pipeline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2025 06:59 AM
I'm trying to trigger an ATF test suite from a Gitlab pipeline. There are two aspects to this:-
1. Start a Docker container which runs a headless browser and registers with ServiceNow instance (this works)
2. Trigger an ATF test suite to run, using the healdess browser.
I'm stuck on point 2. I don't have the correct URL to use the ATF REST API. I've tried:-
api/now/atf/test_suite/<sysID>/run
api/sn_atf/test_suite_runner
api/now/v1/atf/test_suite_schedule/run_now
All return "Requested URI does not represent any resource"
What is the URL I need to use to trigger a test suite?
Alternatively I could do this using a custom scripted REST API, but I'd rather use an existing API if possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 04:27 AM
Did you try this?
/api/sn_atf/test_suite_runner/run