Skip to main content

SpecterQA iOS Simulator Driver — AI-driven iOS testing via Claude Computer Use

Project description

SpecterQA iOS

AI-driven iOS testing that records once and replays free in CI — no AI cost on repeat runs.

Install

pip install "git+https://github.com/SyncTek-LLC/specterqa-ios.git"

Quick Start with Claude Code (MCP)

pip install 'specterqa-ios[mcp]'

Add to .claude/mcp.json:

{
  "mcpServers": {
    "specterqa-ios": {
      "command": "specterqa-ios-mcp",
      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
    }
  }
}

Then in Claude Code: "Run a smoke test on the Palace app, record it as palace-smoke". Claude drives the simulator, records every action. After that, CI runs it free — no AI involved.

Your First Session (30 seconds)

# Claude calls these 6 MCP tools in order:
ios_start_session(bundle_id="com.example.app")
ios_screenshot()                          # see what's on screen
ios_tap(label="Sign In")                  # tap by label
ios_screenshot()                          # verify result
ios_stop_recording(name="signin-smoke")   # save replay YAML to .specterqa/replays/
ios_stop_session()                        # clean up

The replay YAML is now in .specterqa/replays/signin-smoke.yaml. Run it in CI with:

specterqa-ios replay .specterqa/replays/signin-smoke.yaml

No AI needed on replay — it runs the deterministic engine directly.

Dual-Mode Architecture

Phase Who drives Cost
Record (once) Claude AI via MCP AI tokens
Replay (every CI run) Deterministic replay engine Free

Record once with Claude, replay forever without it. This is the key advantage over traditional frameworks.

Maestro-Compatible YAML

Users migrating from Maestro can use familiar shorthand — SpecterQA understands it natively:

replay:
  bundle_id: com.example.app
  steps:
    - tapOn: "Sign In"            # same as: action: tap, element_label: Sign In
    - inputText: "user@example.com"
    - assertVisible: "Dashboard"  # asserts element is present
    - assertNotVisible: "Loading"
    - waitFor: "Feed"             # waits up to 10s for element

All Maestro shortcuts work alongside native SpecterQA syntax in the same file.

CI Commands

# Run all replays (shared runner on by default — ~10x faster)
specterqa-ios ci .specterqa/replays/

# Parallel execution — run 4 replays simultaneously
specterqa-ios ci --parallel 4

# Per-replay isolation (full reset between each replay)
specterqa-ios ci --no-reuse-runner

# Validate a replay file before running it
specterqa-ios validate-replay .specterqa/replays/smoke.yaml

Full CLI Reference

Command Description
setup Check Xcode, simulators, API key
devices List available iOS simulators
boot Boot a simulator
install <app.app> Install app on simulator
init Scaffold .specterqa/ project files
validate --product <slug> Validate product/journey config
validate-replay <file> Validate a replay YAML (schema + references)
run --product <slug> --journey <id> Run a test journey (AI-driven)
smoke --product <slug> Quick smoke test
replay <file> Replay a recorded session
ci [dir] Run all replays in CI mode
serve Start the MCP server

vs. Maestro / Appium / XCUITest

SpecterQA Maestro Appium XCUITest
No AI in CI Yes Yes Yes Yes
AI-assisted recording Yes No No No
Maestro YAML syntax Yes Native No No
Parallel CI Yes (--parallel N) No Yes Yes
Zero config Yes Yes No No
Claude Code native Yes (MCP) No No No

Requirements

  • macOS + Xcode 15+
  • Python 3.10+
  • ANTHROPIC_API_KEY (recording only — not needed for replay)

License

Elastic License 2.0 — see LICENSE.

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

specterqa_ios-14.0.1.tar.gz (315.1 kB view details)

Uploaded Source

Built Distribution

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

specterqa_ios-14.0.1-py3-none-any.whl (318.7 kB view details)

Uploaded Python 3

File details

Details for the file specterqa_ios-14.0.1.tar.gz.

File metadata

  • Download URL: specterqa_ios-14.0.1.tar.gz
  • Upload date:
  • Size: 315.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for specterqa_ios-14.0.1.tar.gz
Algorithm Hash digest
SHA256 ceb352d8a010292c632a76cd6a8479ec5a5704dae55c34b047b83f46e1366876
MD5 d20d0d2fe9dd65481fe04855a85d0f66
BLAKE2b-256 8c28d73c7afa7491d8eb9289ccfc06dd90bb80ff11f864944c69b5353544f5f9

See more details on using hashes here.

File details

Details for the file specterqa_ios-14.0.1-py3-none-any.whl.

File metadata

  • Download URL: specterqa_ios-14.0.1-py3-none-any.whl
  • Upload date:
  • Size: 318.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for specterqa_ios-14.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e08ad496031b31b8fcfdaf23be069454f0842dece6fd9f8c59ea636aef1382da
MD5 d2b91bd59da0f428ca033d0ae07a920f
BLAKE2b-256 1de583da4ca4c0d26d1480d0db76950bd50e4e17d870fd111b6ad5333ae084e3

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