Skip to main content

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

  1. Plugin intercepts test failures caused by broken locators
  2. Extracts the broken locator from the exception message
  3. Reports the event to the QA Platform SaaS dashboard
  4. In the dashboard, you can review, approve, and create PRs with fixes

Get Your API Key

  1. Sign up at qacopilot.com
  2. Create a project
  3. Generate an API key
  4. Add it to your CI environment

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qa_copilot-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for qa_copilot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f9ecdcedd6d776180334e371c4ceb6b5f5c8f7ff9ca1bfaca2be8f5be7fc5ea
MD5 a213adf87edb8fc330fc5cbae7d1d780
BLAKE2b-256 6723b98334a3d6a34de49b33fbb86b585b2cca38eb79553c918014e4c374afcd

See more details on using hashes here.

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

Hashes for qa_copilot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fbec25dd2b6c8e22b57cc12609f7326591ea6232228f75de32c514f7a0e2406
MD5 64d248bb0f76ead3bb74ab11a9f699d7
BLAKE2b-256 a895143680956ae4c6fd28a60ebaea4e934d765a6e0a4286e481c2635757378d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page