Skip to main content

QAlprit — Mobile QA. Bugs caught with proof.

QAlprit (qalprit)

Mobile QA. Bugs caught with proof.

Website PyPI Python 3.10+ License: MIT

QAlprit tests Android and iOS apps automatically. You write plain steps like tap and type in Markdown files, QAlprit clicks through the app on a real phone or emulator, blacks out passwords and credit cards before saving screenshots, and saves a report showing every step.

No AI guessing runs during your tests—every run follows your exact steps.


Prerequisites

Make sure these are installed on your computer before running tests:

  • Python 3.10+
  • Node.js + Appium 2:
    npm install -g appium
    appium driver install uiautomator2   # for Android
    appium driver install xcuitest       # for iOS (macOS only)
    
  • Phone / Emulator tools:
    • Android: Android Studio (ADB + an Android Virtual Device, or a USB phone)
    • iOS (macOS only): Xcode + iOS Simulator

Install

pip install qalprit

Or run from a local clone of this repo:

git clone https://github.com/vattitude-me/QAlprit.git
cd QAlprit
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

How to Run

You do not have to run every command or debug screen XML by hand. Put your app in apps/ (cp config/env.example .env), open your AI coding assistant (Antigravity, Claude Code, Codex, Cursor, or Copilot), and paste:

Follow Agent Instructions to run QAlprit against apps/<your-app.apk-or-.app> on <android|ios>. Fix any broken locators or keyboard issues without hiding real app bugs, and open my final report.html.

Option B: Run Manually from the Terminal

  1. Copy the sample secrets file (stays local, ignored by git):

    cp config/env.example .env
    
  2. Add an app to test inside apps/:

    • For the included demo suite, download mda-2.3.0-27.apk from Sauce Labs My Demo App and save it at apps/mda-2.3.0-27.apk.
  3. Check your tools and connected phones/emulators:

    qalprit doctor
    qalprit devices
    
  4. Check your test files before launching an app:

    qalprit validate --suite mda --env mda
    
  5. Run the tests:

    qalprit run --platform android --device android_emulator --app apps/mda-2.3.0-27.apk --env mda --suite mda
    
  6. Browse past runs locally (optional):

    qalprit ui
    

What Comes Out

Every run creates a folder under results/<run-id>/ with your proof:

  • report.html — Open in any browser to see pass/fail results, failure categories, and step screenshots.
  • summary.md & junit.xml — Markdown results table for pull requests plus JUnit XML for CI pipelines.
  • screenshots/ — Step screenshots with passwords and sensitive boxes blacked out in memory before saving.
  • results.json & appium.log — Structured test data (schema_version: 1.1) and scrubbed Appium logs.

Real Sample Output (Sauce Labs My Demo App)

See all 5 passing Android tests in the Live Sample Report or examples/mda-sample-run:

MDA-002 locked out login screen with password redacted
MDA-002: Password blacked out; error message verified.
MDA-004 checkout payment screen with card number and CVV redacted
MDA-004: Card number and CVV blacked out in memory.

Technical Documentation

Event Flow Diagram

QAlprit Event Flow Diagram

  1. App Build: Package the target mobile binary (.apk, .app, or .ipa).
  2. AI Authoring: Generate screen locators (screens/screens.yaml), reusable flows (flows/*.md), and test specs (specs/*.md).
  3. Validate: Review with human + qalprit validate to catch schema, locator, and .env issues before execution.
  4. Workflow Execution: Run each workflow deterministically via Appium 2 on a simulator/emulator or real USB device.
  5. Capture & Mask: Capture screen frames and mask sensitive fields/PII in memory before saving (secure_evidence: true).
  6. Report & Dashboard: Generate report.html, summary.md, junit.xml, results.json, and explore or compare runs in qalprit ui.

CLI Reference

Command What it does
qalprit doctor Checks Python, Node, Appium 2, and Android/iOS tools
qalprit devices Lists connected phones, emulators, and simulators
qalprit list [--suite <name>] Lists test specs, reusable flows, and screen locators (--json-output supported)
qalprit inspect --platform android|ios Reads the current app screen and ranks suggested locators (--export-json supported)
qalprit validate --suite <name> --env <name> Checks specs, flows, locators, and .env without a phone (--app optional)
qalprit run --platform android|ios --device <name> --app <path> Runs tests (--id, --exclude-tags, --rerun-failed, --dry-run, --update-baselines)
qalprit report <results-dir> Rebuilds report.html, summary.md, and junit.xml from results.json
qalprit ui Opens a local web dashboard to browse and compare runs

More Docs

pytest -v   # run unit tests

QAlprit (qalprit.vattitude.ca) — Managed by vattitude.ca

Metadata

Release files for qalprit 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qalprit 0.1.23
File Size Uploaded Provenance Actions
qalprit-0.1.23.tar.gz 191.0 kB Without provenance Details for qalprit-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qalprit 0.1.23
File Interpreter ABI Platform Actions
qalprit-0.1.23-py3-none-any.whl Python 3 none any Details for qalprit-0.1.23-py3-none-any.whl

Total release size: 361.8 kB

Release files / qalprit-0.1.23.tar.gz

Download URL qalprit-0.1.23.tar.gz
Size 191.0 kB
Tags Source
SHA-256 checksum
How to use checksums
43982bea342a032a5e816e8d8736bf44ee7f0d9b6151acf2f0ca68023ec0cbeb
BLAKE2b-256 checksum
How to use checksums
b243d8ba2695786e95d0c97cbfbe1199e6acf4d9f0cc329859b0065af7173bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / qalprit-0.1.23-py3-none-any.whl

Download URL qalprit-0.1.23-py3-none-any.whl
Size 170.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75f4a26fa30c6a4d6e9c5eec80108e7edb13a77c363ab284cc486cc24d0ae68f
BLAKE2b-256 checksum
How to use checksums
611dacb3e22df997b8d3e5b6fce640b813232547ba4af073a8eef69dd74b3899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for qalprit 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page