Trigger ATF Tests Via an API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 03:33 AM
Hi,
I am looking to automate running ATF tests from a CI CD pipeline running bitbucket.
I am able to trigger the test suite I need using a curl command to the endpoint of ${SERVICE_NOW_URL}/api/sn_cicd/testsuite/run?test_suite_sys_id=${TEST_SUITE_ID}
However, this returns that the test is Pending but when I view the Test Suite in ATF and its runs it shows the run was skipped.
I don't have Cloud Runners installed as I am on a developer instance.
Would this be the reason the test is not being triggered?
If so how can I install the ATF Test Generator and Cloud Runner Plugin in my developer instance when I log into the ServiceNow Store, it says you can't login with your developer account and it does not exist under the applications to activate for the developer instance?
Otherwise, can someone advise how can you trigger a test suite via a curl command and have it start and not be skipped?
Thanks,
Kristian