How to trigger an ATF test suite from a Gitlab CI/CD pipeline

afielden
Tera Contributor

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.

 

1 REPLY 1

Som4
Tera Contributor

Did you try this? 
/api/sn_atf/test_suite_runner/run