Explore your app. Build your testing knowledge.Explore your app.Meet State Explorer

Integrating AI Testing into Your CI/CD Pipeline

A practical guide to adding AI-powered testing to GitHub Actions, Azure DevOps, and Jenkins pipelines. Cover web, desktop, and API testing in your CI workflow.

Qate AI Team
4 min read

To run a saved Qate web test in GitHub Actions, generate its Playwright project, run it on the CI runner and keep the JUnit XML. The example below uses a single checkout test so you can see which action ran and what the pipeline recorded.

How do I run Qate tests in GitHub Actions?

Prepare a saved web test set named Checkout smoke in Qate, or substitute the name of your own set. Our sample opens a fictitious checkout, clicks Pay and checks that the displayed total is EUR 20.00. The runner must be able to reach both the test site and your Qate API. Add the workspace API key as the GitHub Actions secret QATE_API_KEY.

name: Checkout smoke
on: workflow_dispatch
permissions:
  contents: read
jobs:
  checkout-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - run: npm install -g @qate/cli@1.1.6
      - name: Generate the saved web test set
        env:
          QATE_API_KEY: ${{ secrets.QATE_API_KEY }}
        run: qate generate -n "Checkout smoke" -o ./e2e
      - name: Run the checkout test
        working-directory: ./e2e
        env:
          QATE_API_KEY: ${{ secrets.QATE_API_KEY }}
        run: |
          npm install
          npx playwright install --with-deps chromium
          npx playwright test --retries=0
      - name: Keep the JUnit result
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: checkout-junit
          path: e2e/results/junit.xml

For a private deployment, set QATE_API_URL to your own API endpoint. The manual trigger in this example lets you try the workflow once before choosing a branch or release trigger. The generated project writes results/junit.xml relative to its own directory.

In our local reproduction with the published CLI and Linux Chromium, the checkout produced one JUnit test named Checkout total, with zero failures and zero errors. We used a local test site and a simulated workspace API. In your pipeline, inspect the XML and Playwright exit status even when the artifact upload succeeds.

Which runner should execute the test?

Web Testing: CLI-Based Execution

For web tests, export supported browser actions and assertions. If a step requires Qate server execution, keep its original check and run the saved test there.

Which Qate tests can I export to Playwright?

Desktop Testing: API-Triggered Execution

A native Windows test needs a connected agent with an unlocked interactive desktop. CI can start the run, retain its execution ID and wait for the final status. A queued response only acknowledges the request. Look up the finished run before making a release decision.

Run a Windows desktop test from CI

REST and SOAP test sets

For REST or SOAP, run a saved API test set from a runner that can reach the target service. Replace the set name in this example. In Azure DevOps or Jenkins, use the same command in a shell step and point the JUnit publisher at the XML file.

mkdir -p results
qate run -n "API regression" --junit results/api.xml

The test ran, but the report is missing. Should I run it again?

Report recovery with qate upload-report requires @qate/cli 1.1.7 or later. For Playwright, generate the project with that version or later before running the test. To retry an upload, use the recovery file saved by the original run.

First check the runner log for “Original report retained” and the path printed beside it. With a recovery-capable reporter, the test actions have already run. Preserve that exact file as a private CI artifact. It can contain responses or screenshots.

qate --version
# REPORT_FILE is the exact path from the first run.
qate upload-report "$REPORT_FILE" --url "$QATE_API_URL"

Use the original API endpoint and credentials for the same workspace. Compare the execution ID in the confirmation with the first run, then open that execution and check the missing results or screenshot. The original pass or fail status still matters for the release decision.

In a controlled browser test, retrying the saved report restored a missing screenshot on the original execution. The application received no second visit. The CLI kept the input file after the manual upload.

We also repeated a delivery outage with the development CLI on a fictitious checkout. The report endpoint returned HTTP 503 after the browser action. The runner exited with status 1 and printed the recovery path. Once the endpoint was available, the manual upload exited with status 0. The page visit count stayed at one.

Qate documentation for web, Windows, REST and SOAP

Put it into practice

Explore a better way to test.

Create tests by talking to an agent, investigate failures and keep your team moving with Qate AI.

Get started free