Skip to main content

iHarmony™ by Innominds — Unified Quality Engineering Framework

PyPI version Python versions pytest plugin Playwright 1.54+ MCP: 24 tools by Innominds

Test the web app, the API behind it, the data it writes, the devices it talks to and the mobile and desktop apps around it —
with one pytest-native framework, one configuration model and one set of reports.


Why iHarmony™

Quality teams usually stitch together a UI tool, an API tool, a data-diff script and a hardware harness, each with its own conventions and reports. iHarmony™ puts all of them on pytest + Playwright with a shared page-object model, YAML configuration, observability and a release quality gate — so a 5-person team and a 100-person programme work the same way.

  • One workflow — UI, API, database, file, device and mobile / desktop app tests are ordinary pytest tests.
  • Enterprise by default — multi-project layouts, environment overlays, org → business-unit → project governance, secrets from environment variables or vaults, never from code.
  • Resilient — self-healing locators, retries and flaky-test detection cut maintenance noise.
  • Decision-ready — every run ends in reports for engineers, QA and leadership, plus an optional PASS / WARN / BLOCK verdict your pipeline can act on.
  • Opt-in everything — install only the extras you need; features are off until enabled in YAML.

13 capability areas: Web UI Automation · Mobile & Desktop Apps · API & Contract Testing · Data & Database Validation · Device & IoT Testing · Test Data Management · Self-Healing & Resilience · Observability & Reporting · Release Quality Gate · Enterprise Governance · Security Built In · Scale, CI/CD & Integrations · AI-Ready (MCP Server).

iHarmony™ capabilities, 13 areas: Web UI Automation, Mobile & Desktop Apps, API & Contract Testing, Data & Database Validation, Device & IoT Testing, Test Data Management, Self-Healing & Resilience, Observability & Reporting, Release Quality Gate, Enterprise Governance, Security Built In, Scale, CI/CD & Integrations, AI-Ready (MCP Server)

Install

pip install iharmony
playwright install chromium        # or: playwright install  (all browsers)

Requires Python 3.11+. Add extras for the capabilities you use:

Extra Adds
iharmony[data-comparison] Excel / CSV / JSON comparison and HTML mismatch reports (pandas, openpyxl)
iharmony[postgresql] · [mysql] · [sqlserver] · [oracle] · [db2] · [informix] · [snowflake] · [mongodb] Database drivers (SQLite needs none) — or [all-databases]
iharmony[graphql-client] · [soap-client] · [contracts] · [pact] GraphQL, SOAP, OpenAPI / JSON-Schema and consumer-driven contract testing
iharmony[accessibility] WCAG checks with axe-core
iharmony[apps] · [apps-android] Mobile (Android, iOS) and desktop (Windows) app testing through Appium — preview
iharmony[devices] Every device transport and the simulator (or pick devices-serial, devices-mqtt, devices-can, devices-ble, devices-adb, …)
iharmony[mcp] MCP server for AI assistants
iharmony[allure-reporting] · [html-reporting] · [dashboard] · [telemetry] · [prometheus] Reporting, live dashboard and OpenTelemetry / Prometheus export
iharmony[vault] · [aws] · [azure] HashiCorp Vault, AWS Secrets Manager, Azure Key Vault
iharmony[all] API clients, data comparison, all databases and reporting in one go

Quick start

iharmony init my-qe-suite       # scaffold a suite with runnable demos
cd my-qe-suite

export IHARMONY_TEST_USERNAME=standard_user    # demo login for saucedemo.com
export IHARMONY_TEST_PASSWORD=secret_sauce

pytest tests/demo/functional/api tests/demo/functional/ui

On Windows PowerShell, set the credentials with:

$env:IHARMONY_TEST_USERNAME = "standard_user"
$env:IHARMONY_TEST_PASSWORD = "secret_sauce"

The scaffold contains configuration, page objects and demo UI, API and database tests. The data-comparison demos also need pip install "iharmony[data-comparison]".

How it works: write pytest tests and page objects, configure per environment, run locally or in CI, decide with reports and a quality-gate verdict

What tests look like

Web UI — locators live in page objects; tests read like the business flow.

import pytest
from iharmony import BasePage


class LoginPage(BasePage):
    USERNAME = "#user-name"
    PASSWORD = "#password"
    SUBMIT = "#login-button"

    def login(self, user: str, password: str) -> None:
        self.fill(self.USERNAME, user)
        self.fill(self.PASSWORD, password)
        self.click(self.SUBMIT)


@pytest.mark.smoke
def test_login(page, runtime_options, login_test_data):
    login = LoginPage(page, runtime_options["resilience_policy"])
    login.navigate(runtime_options["base_url"])
    user = login_test_data["valid_user"]          # values resolved from ${ENV_VAR} placeholders
    login.login(user["username"], user["password"])

API — an HTTP client with retries, auth and chainable assertions.

from iharmony import ApiClient, ResponseValidator


def test_create_order(base_url):
    api = ApiClient(base_url=base_url, retries=3)
    response = api.post("/orders", json_body={"sku": "A-100", "qty": 2})
    ResponseValidator.assert_status_code(response, 201)
    ResponseValidator.assert_json_has_keys(response, ["id", "status"])
    ResponseValidator.assert_response_time_less_than(response, 800)

Data — compare extracts, files and tables with keys, tolerances and column mappings.

from iharmony.utils.data_comparison_utils import compare_excel_files


def test_migration_matches_legacy():
    result = compare_excel_files(
        "legacy_extract.xlsx", "new_platform_extract.xlsx",
        key_columns=["employee_id"], float_tolerance=0.01, ignore_fields={"updated_at"},
    )
    assert result.passed, result.summary    # interactive HTML report at result.report_path

For database migrations, check the schema (names, types, nullability), row counts and totals first, then every row and column. Comparisons stream both databases in chunks and report rows missing in the target, rows that exist only in the target, and changed values, so they scale to full production tables.

from iharmony.utils.db_validation_helper import DbValidationHelper as V


def test_orders_migrated(src_db, tgt_db):
    V.assert_row_counts_match_chunked(src_db, "SELECT COUNT(*) FROM orders",
                                      tgt_db, "SELECT COUNT(*) FROM orders", label="orders")
    V.assert_datasets_match_chunked(
        src_db, "SELECT * FROM orders ORDER BY order_id",
        tgt_db, "SELECT * FROM orders ORDER BY order_id",
        key_column="order_id", float_tolerance_map={"amount": 0.01},
    )

Devices — the same test runs against a digital twin or real hardware.

import pytest


@pytest.mark.device
@pytest.mark.requires_dut(capability="thermostat")
def test_heats_up(dut):
    dut.set_target(22)
    dut.wait_until_temperature(22, timeout=900)
pytest -m device                                   # simulated twin
pytest -m device --iharmony-dut-mode hil        # real hardware, same test

Mobile & desktop apps (preview) — Android native, hybrid and mobile web on phones and tablets, plus Windows desktop apps, through Appium (iOS support is in the preview and still to be verified on a Mac). Screen objects hold per-platform locators with self-healing fallbacks.

import pytest
from iharmony.apps import BaseScreen, Locator


class LoginScreen(BaseScreen):
    USERNAME = Locator(android="id=com.example.shop:id/username", ios="accessibility_id=username")
    PASSWORD = Locator("accessibility_id=password")
    SIGN_IN = Locator("accessibility_id=sign_in", fallbacks=["xpath=//*[@text='Sign in']"])

    def login(self, user: str, password: str) -> None:
        self.type(self.USERNAME, user)
        self.type(self.PASSWORD, password, secret=True)   # kept out of the logs
        self.tap(self.SIGN_IN)


@pytest.mark.mobile
@pytest.mark.app("shop")
def test_login(app_session, runtime_options):
    LoginScreen(app_session, runtime_options["resilience_policy"]).login("demo", "s3cret")

app_session.device drives the device itself: lock and unlock, Wi-Fi, mobile data, airplane mode, Bluetooth, dark mode, orientation, location, hardware buttons and the notification shade.

@pytest.mark.mobile
@pytest.mark.app("shop")
def test_wifi_off(app_session):
    app_session.device.set_wifi(False)
    assert not app_session.device.wifi_enabled()

Apps and targets (emulators, devices, desktops, cloud hubs) live in config/apps.yaml, off until apps.enabled: true; iharmony apps check asks each target's Appium server whether it is ready. Failing tests keep a screenshot, the page source and the capabilities used (iharmony docs app-automation).

Run it your way

Goal Command
Pick environment and browser pytest --ih-env qa --ih-browser firefox (or set IHARMONY_ENV=qa)
Watch the browser pytest --ih-headed
Emulate a phone pytest --ih-device "iPhone 13"
Run app tests on a target pytest -m mobile --ih-app api-demos --ih-target android-emulator
Check the app lab iharmony apps check — exits 1 when an Appium server is not ready
Turn manual test cases into scripts iharmony generate-tests cases.csv --type ui (or api, database, device, mobile)
Run in parallel pytest -n auto
Run a suite by marker pytest -m smoke · pytest -m regression
Check the environment first pytest --iharmony-readiness-check
Gate the release pytest --iharmony-quality-gate — exits 1 on BLOCK
Enforce suite ordering pytest --iharmony-orchestration
Update visual baselines pytest --iharmony-update-snapshots

Every --iharmony-<name> option has the short alias --ih-<name>.

CI templates for GitHub Actions, Jenkins and Azure DevOps are included (iharmony docs ci).

AI-ready: MCP server

iHarmony™ ships a Model Context Protocol server so AI assistants such as Claude and GitHub Copilot can discover the framework API, list tests, page and screen objects, read resolved configuration and test results, check device benches and Appium app targets, generate test scripts from manual test cases, and get a release recommendation. All 24 tools are also terminal commands.

pip install "iharmony[mcp]"
iharmony-mcp serve                         # MCP server (stdio)
iharmony-mcp search-methods tolerance      # the same tools from the terminal
iharmony-mcp get-release-recommendation

Documentation

Guides are installed with the package — no network or repository access needed:

iharmony docs                  # list every topic
iharmony docs quickstart       # print one
Topic Covers
quickstart · install · cli First test in 10 minutes, installation, every command and --iharmony-* option
api-policy What is public API, how deprecations are announced, supported Python / pytest / Playwright versions
multi-project · test-organization · qe-visual-guide Suite layout at scale and the page-object model
api-testing · database · data-validation REST / GraphQL / SOAP, database drivers and assertions, data comparison
app-automation Mobile and desktop app testing with Appium (preview)
architecture · resilience · observability How the layers fit, self-healing locators, metrics and persona reports
secrets-governance · plugins · ci · mcp Secrets and org policy, plugin authoring, pipelines, the MCP server

Support

iHarmony™ is developed and supported by Innominds. For onboarding, enterprise support or custom integrations, contact iHarmony@innominds.com or visit innominds.com.

Engineered by Innominds

iHarmony™ is a trademark of Innominds. © Innominds. Released under the MIT License.

Metadata

Release files for iharmony 7.7.0

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

Source distribution (sdist)

Source distribution for iharmony 7.7.0
File Size Uploaded Provenance Actions
iharmony-7.7.0.tar.gz 1.8 MB With provenance Details for iharmony-7.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / iharmony-7.7.0.tar.gz

Download URL iharmony-7.7.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
9723ca35a78b694cf8fae65c13f401f999819b5ee2e32abea31499a4fbe07a71
BLAKE2b-256 checksum
How to use checksums
d275753fa7297c09d41135195ce25d8eda0167cd4c56eadc2533ed59193b936a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / iharmony-7.7.0-py3-none-any.whl

Download URL iharmony-7.7.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
01b0749d0219cb56f229afb0630d819deeda607f761833bfa0a19394a31f1aa2
BLAKE2b-256 checksum
How to use checksums
b45f4da699ff4c5856e2d9db92e28c8be01a3be9f6d00d8d29249370c509d7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for iharmony 7.7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iharmony-7.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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