ATF With GitHub Actions Work flow Example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2022 08:26 AM
Hi Team,
I am looking for a workflow file example for ATF framework execution through GitHub Actions.
My need is to run test cases by ATF on any single instance(I am doing any deployment from Dev to Prod)
I followed ServiceNow CI/CD GitHub Action for Run Tests but their example is the end to end i.e. Dev to deployment to Production but I need to do only execution of ATF framework on any one instance. That means I want to use only ATF by Github Actions
Below is my workflow file in which I am getting the "Error: Testsuite failed" error on GitHub Actions. I think I am missing some action which required to run first before ATF but that one I am not able to identify so I am looking an example workflow file for ATF execution only.
=============Workflow File=================
# This is a basic workflow to help you get started with Actions
name: ServiceNow GitHub Actions Demo
# Controls when the workflow will run
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ./sncicd-tests-run
with:
testSuiteName: AnkitTS
env:
nowUsername: ${{ secrets.NOW_USERNAME }}
nowPassword: ${{ secrets.NOW_PASSWORD }}
nowInstallInstance: ${{ secrets.NOW_INSTALL_INSTANCE }}
Any help?
- Labels:
-
Automated Test Framework