CI/CD Integration Examples
Integrate QA Sphere with your continuous integration and deployment pipelines to automatically upload test results after every build.
Each guide provides step-by-step instructions for configuring the QA Sphere CLI tool with your CI/CD platform:
- GitHub Actions - Automate test result uploads from GitHub Actions workflows
- GitLab CI/CD - Integrate with GitLab pipelines
- Bitbucket Pipelines - Connect Bitbucket Pipelines to QA Sphere
How It Works
All CI/CD integrations follow the same pattern:
- Configure your test framework to generate JUnit XML reports
- Add QA Sphere credentials as CI/CD secrets/variables
- Install the QA Sphere CLI (
qas-cli) in your pipeline - Run
qasphere junit-uploadto send results to QA Sphere
Prerequisites
Before setting up any integration, ensure you have:
- Tests configured to generate JUnit XML format results
- A QA Sphere account with Test Runner role or higher
- Test cases in QA Sphere with markers (e.g.,
BD-001,PRJ-123) - An API key from QA Sphere Settings
Quick Reference
| Platform | Secrets Location | Documentation |
|---|---|---|
| GitHub Actions | Settings → Secrets → Actions | View Guide |
| GitLab CI/CD | Settings → CI/CD → Variables | View Guide |
| Bitbucket Pipelines | Repository settings → Repository variables | View Guide |