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.27

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.27
File Size Uploaded Provenance Actions
qalprit-0.1.27.tar.gz 198.1 kB Without provenance Details for qalprit-0.1.27.tar.gz

Built distribution (wheel)

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

Total release size: 373.1 kB

Release files / qalprit-0.1.27.tar.gz

Download URL qalprit-0.1.27.tar.gz
Size 198.1 kB
Tags Source
SHA-256 checksum
How to use checksums
282e919b4982477e32656838a5e8a1dd7415b83bd0c0fd83eb70430807c5e58d
BLAKE2b-256 checksum
How to use checksums
7fe2c078ee6fe5a5e97e401fc2c73aa4713205180e266c38a440e1f8b00d2697
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.27-py3-none-any.whl

Download URL qalprit-0.1.27-py3-none-any.whl
Size 175.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2c8e92da2a827a192fcad4fd0157039b5aadd43681cb5d48fa8d3170597f17e
BLAKE2b-256 checksum
How to use checksums
843333a4b9c503053155197f4925dc97328ffcda2b76926d5d2ef9e5e5e3b52d
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.27

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