AI-powered self-healing for Selenium and Playwright tests
Project description
QA Copilot
AI-powered self-healing for Selenium and Playwright tests.
Install
pip install qa-copilot
Quick Start
# Detect broken locators
pytest tests/ --heal
# Report to QA Platform dashboard
pytest tests/ --heal --qa-copilot-key=sk_live_your_key_here
# Or use environment variable
export QA_COPILOT_KEY=sk_live_your_key_here
pytest tests/ --heal
Options
| Flag | Description |
|---|---|
--heal |
Enable broken locator detection |
--qa-copilot-key KEY |
Platform API key (or QA_COPILOT_KEY env var) |
--qa-copilot-url URL |
API URL (default: https://api.qacopilot.com) |
Supported Frameworks
- Selenium WebDriver (Python)
- Playwright (Python)
CI Integration
Jenkins
pipeline {
agent any
stages {
stage('Test') {
steps {
sh '''
pip install qa-copilot
pytest tests/ --heal --qa-copilot-key=$QA_COPILOT_KEY
'''
}
}
}
environment {
QA_COPILOT_KEY = credentials('qa-copilot-key')
}
}
Azure DevOps
steps:
- script: |
pip install qa-copilot
pytest tests/ --heal
env:
QA_COPILOT_KEY: $(QA_COPILOT_KEY)
GitHub Actions
steps:
- run: |
pip install qa-copilot
pytest tests/ --heal
env:
QA_COPILOT_KEY: ${{ secrets.QA_COPILOT_KEY }}
How It Works
- Plugin intercepts test failures caused by broken locators
- Extracts the broken locator from the exception message
- Reports the event to the QA Platform SaaS dashboard
- In the dashboard, you can review, approve, and create PRs with fixes
Get Your API Key
- Sign up at qacopilot.com
- Create a project
- Generate an API key
- Add it to your CI environment
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qa_copilot-0.2.0.tar.gz
(18.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qa_copilot-0.2.0.tar.gz.
File metadata
- Download URL: qa_copilot-0.2.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cea801808096646aa39e5742d1ce3a788089649a50c09483f7c82efa03b86a19
|
|
| MD5 |
c723d6db2cb5c1c010ef9e1b6d977e1b
|
|
| BLAKE2b-256 |
c7a99822b3b5e6979a4a1684f7fd6da6400dc19c1ae04c13e1a4f2c31a564cb9
|
File details
Details for the file qa_copilot-0.2.0-py3-none-any.whl.
File metadata
- Download URL: qa_copilot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
588e0c86d2c7d5eadde9fb1e6116f1257815aa32ccd1ad7ac0ed6c8efbe34be0
|
|
| MD5 |
5561d7c43a84e38639ec85d060ea5be9
|
|
| BLAKE2b-256 |
c1580c5cbeb710655741ebc7dba22dfaca4be23b17a340331c06560a2c21780c
|