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.1.0.tar.gz
(5.6 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.1.0.tar.gz.
File metadata
- Download URL: qa_copilot-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9ecdcedd6d776180334e371c4ceb6b5f5c8f7ff9ca1bfaca2be8f5be7fc5ea
|
|
| MD5 |
a213adf87edb8fc330fc5cbae7d1d780
|
|
| BLAKE2b-256 |
6723b98334a3d6a34de49b33fbb86b585b2cca38eb79553c918014e4c374afcd
|
File details
Details for the file qa_copilot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qa_copilot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
6fbec25dd2b6c8e22b57cc12609f7326591ea6232228f75de32c514f7a0e2406
|
|
| MD5 |
64d248bb0f76ead3bb74ab11a9f699d7
|
|
| BLAKE2b-256 |
a895143680956ae4c6fd28a60ebaea4e934d765a6e0a4286e481c2635757378d
|