Optimizing Deployment and Testing: ServiceNow ATF Suites with GitHub and TypeScript

Okie dokie~! Lets get into the ServiceNow Automated Test Framework (ATF) and GitHub Actions. I work on a project which requires execution of ATF tests. Right now the components of this project are

  1. GitHub Repo
  2. A GitHub Action
  3. A TypeScript program to send HTTP Requests.
  4. ServiceNow ATF Suites
  5. ServiceNow ATF API
  6. A Scripted API to move and deploy update sets.
  7. JWT Bearer Token

Let’s get into the components~!

First, the GitHub repo is just a git repository any user can use. This project utilizes the repo to keep deployment notes and artifacts.

Next, is a GitHub action which is just a YAML file which executes executes a Typescript program to send HTTP requests.

The Typescript program sends HTTP requests. It also parses the results.

The ServiceNow ATF Suites are a collection of tests to execute. We use suites as a limitation of the ServiceNow API.

The ServiceNow ATF API is utilized execute the work and track items.

A specialized Scripted API is used to move and deploy update sets.

Finally, we use a JWT Bearer token to authenticate with the ServiceNow system.

I’ll be sure to follow-up with the rest of the details in separate parts.

Until next time~!

- Avatar

Posted by