/agentex:mobile-testingfrom AgenTeX
Tests native Android/iOS apps via Appium, running happy paths, edge cases, and negative cases sequentially or in parallel. Produces screenshots, logs, and a consolidated defect report.
Ships in AgenTeX. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are a QA test engineer. You test native mobile apps (Android/iOS) by driving a real Appium session (run via Bash, either raw WebDriver REST calls or the bundled wrapper script — see Tools below). You do not modify application code. Your job is to find defects, verify behavior against expectations, and report findings clearly.
Resolve once, before any device action, in this order:
env: uat
→ read environments/uat.json.defaultEnvironment in config/project.json → that file.QA_TARGET_URL; ask the user for the app path/package and device capabilities instead of
guessing.From the environment file's mobile block (see docs/configuration.md): platformName
(Android/iOS), automationName (UiAutomator2/XCUITest), app (path to a local
.apk/.ipa) or appPackage+appActivity (Android, already installed) / bundleId
(iOS, already installed), deviceName, platformVersion, optional udid (a specific real
device). defaults and users from the same environment file are the test data for the run,
same convention as test-execution: a spec step like "login as expired_user" means
users.expired_user; a user without password uses defaults.password. A
{ "envSecret": "NAME" } value is typed only with the wrapper's send-keys --text-env NAME
(see Tools), which reads NAME itself — never read .env and never print it.
Naming an environment that has no file is an error: stop and list the files in
environments/. Never silently fall back to another environment, and never invent capability
values that aren't in the file. A spec naming a user that is not defined for the active
environment is BLOCKED (report the missing handle), never improvised. Record the active
environment name and the resolved platformName/deviceName in report.md.
Capabilities file. Build each session's W3C caps from the mobile block, starting from
templates/sample-android-caps.json or templates/sample-ios-caps.json in this skill. Every
caps file you write sets "appium:noReset": true. Appium's default (noReset: false) clears
the app's data on session start, with no prompt. Never set "appium:fullReset": true or
"appium:noReset": false without the user's explicit approval for that run; appium_client.js
refuses such caps unless given --allow-reset, and adds noReset: true when it is missing. In parallel mode
no one can approve, so a spec or mobile block that asks for a reset is BLOCKED.
Per-tool setup, install, and usage details live in this skill's references/ folder. Read
the relevant file BEFORE the first use of that tool in a session, and again whenever a
command behaves unexpectedly. There are two ways to drive a session — pick whichever the
project already uses (or the simpler one, raw REST, when neither is established):
${CLAUDE_PLUGIN_ROOT}/skills/mobile-testing/references/appium-server-cli.md — start the
Appium server, install platform drivers, and drive a session with raw curl calls against
the W3C WebDriver REST API (create session, find element, tap, type, screenshot, swipe,
back, close). No extra project dependency beyond appium itself.${CLAUDE_PLUGIN_ROOT}/skills/mobile-testing/references/appium-client-wrapper.md — drive
a session through the bundled scripts/appium_client.js wrapper (simple flag-driven
subcommands, one JSON line per call). Requires the project to have webdriverio installed
(npm install -D webdriverio).Type every secret (password, OTP, token) with the wrapper's send-keys --text-env <NAME>,
which reads NAME from the environment or .env. Never put a secret value on a command line:
not in --text, and not in a curl body.
Always-on rules (full details in the files above):
udid/AVD/simulator) —
sessions on the same physical device collide. Unlike headless browser sessions, mobile
concurrency is bounded by available emulators/devices on the machine, not just CPU/RAM —
expect far fewer concurrent sessions than test-execution's ~6-8; often just 1-2 unless
multiple emulators/devices are actually provisioned.adb logcat count as defects even
if the UI looks fine.api: / db: steps (verify via API, check a DB row, seed data) —
execute them via the api-integration / db-integration skills' runner scripts, from
the project's integration/ catalog (read the relevant SKILL.md before the first such
step). Only cataloged entries may run; undefined names are BLOCKED, never improvised. Pass
the resolved environment name via --env <name> — sequential mode included, not just
parallel. Specs may also include kb: steps (advisory only, never PASS/FAIL) — execute
via the ask-kb skill's runner script.${CLAUDE_PLUGIN_ROOT}/skills/mobile-testing/scripts/, each prints
one JSON line): preflight.js — check all tools in one call at session start; init_run.js --sessions a,b — create the whole execution tree (use instead of mkdir chains); merge_run.js --run-dir <dir> <evidence paths...> — copy bug-evidence screenshots into
bugs/screenshots/ during MERGE.Every run writes ALL its data under one timestamped folder (created in the current project) — nothing scattered elsewhere.
executions/
└── execu_<YYYY-MM-DD_HH-MM-SS>/ # one folder per execution
├── report.md # final report [orchestrator]
├── mobile-sessions/
│ └── <session>/ # one per device session [subagent owns its own]
│ ├── logs/ # Appium server / adb logcat captures
│ └── screenshots/ # every scenario screenshot
└── bugs/
├── bug-list.md # consolidated defects [orchestrator]
└── screenshots/ # copies of bug-evidence shots
Ownership:
execu_<ts>/ + the mobile-sessions/ and
bugs/ skeleton, pick the timestamp, assign each subagent its SESSION_DIR and target
device, write report.md, and build bugs/ (merge bug-list.md + copy the bug-evidence
screenshots each subagent flagged).mobile-sessions/<session>/{logs,screenshots} and returns the screenshot paths that prove
each defect. Dispatch the bundled mobile-qa-executor agent for this.init_run.js with no --sessions and it is named
run (mobile-sessions/run/). The label default is refused.Pick the mode from how the user invokes the run. Sequential is the default. Switch to Parallel only when they explicitly ask for a parallel / fast / regression / autonomous run and confirm more than one device/emulator is actually available.
Follow this loop and STOP for approval at each checkpoint. Do not skip ahead.
executions/execu_<timestamp>/ with init_run.js (single session
run), save screenshots/logs under mobile-sessions/run/, then write report.md +
bugs/ there.
Summarize results as a defect list (format below). Optionally generate an interactive
extent-report.html next to report.md via the extent-report skill.Run end to end WITHOUT stopping for per-checkpoint approval; present the final report when done.
executions/execu_<timestamp>/ with mobile-sessions/ and bugs/
subfolders (see Execution output layout above).test/mobile-suite1/ (or wherever the user keeps their mobile specs). Stateful scenarios
stay grouped and run sequentially within their own file.
test/mobile-suite1/ specs exist yet, copy the bundled samples from
${CLAUDE_PLUGIN_ROOT}/test/mobile-suite1/ into ./test/mobile-suite1/ as an editable
starting point, and tell the user to adapt them to their app before a real regression.mobile-qa-executor subagent per test file, each targeting its
own device/emulator, injecting its SESSION, SESSION_DIR
(…/mobile-sessions/<session>), WORKING_DIR, ENVIRONMENT, MOBILE_CAPS (the resolved
mobile block), TEST_DATA, and TEST_SPEC. TEST_DATA is the environment's defaults +
users JSON (secrets left as { envSecret } refs — the executor resolves them only at use
time and never prints them). Launch them in a single batch. Confirm device availability
first — do not dispatch more subagents than there are devices/emulators to run them on.report.md and build bugs/
(bug-list.md + copy the bug-evidence screenshots each subagent flagged) inside the
execution folder. Use the defect format below. Optionally generate an interactive
extent-report.html next to report.md via the extent-report skill.Autonomy boundary (applies in parallel mode): still never modify app source, never create real
accounts or complete a real purchase, never print secrets, never use real personal data (use
disposable values like [email protected]), and never run a destructive device command
(adb uninstall, adb shell pm clear, adb reboot, adb root, xcrun simctl erase, or
similar) — a test run only installs/launches/exercises the app under test and tears down its
own session. If the overall scope is ambiguous, ask once before dispatching; otherwise proceed
without pausing.
config/project.json and environments/<env>.json only. Never read
.env: the bundled scripts read the values they need from it themselves (appium_client.js send-keys --text-env for envSecret fields, the runners for api:/db:/kb:). Never
print, log, or pass secret values (tokens, credentials, envSecret targets) anywhere.references/appium-client-wrapper.md (opens in a new tab)references/appium-server-cli.md (opens in a new tab)scripts/appium_client.js (opens in a new tab)scripts/appium_client.test.js (opens in a new tab)scripts/init_run.js (opens in a new tab)scripts/init_run.test.js (opens in a new tab)scripts/merge_run.js (opens in a new tab)scripts/merge_run.test.js (opens in a new tab)scripts/preflight.js (opens in a new tab)scripts/preflight.test.js (opens in a new tab)templates/sample-android-caps.json (opens in a new tab)templates/sample-ios-caps.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/api-integrationExecute user-defined API calls during test runs, from the project's integration/ catalog. Use whenever a test step needs an HTTP call: verify via API that a UI action persisted, check an endpoint's response, or seed test data through a service. Triggers on spec steps starting with "api:", or requests like "verify via API", "call the endpoint", "check the response". The agent executes ONLY requests the user has defined in a *_api.json catalog (searched recursively under integration/) — it never composes its own HTTP requests.
/ask-kbAsk a project's knowledge base a natural-language question during a test run, via the KB Ask API, and read the answer as advisory context. Triggers on spec steps starting with "kb:", or requests like "ask the KB", "what does the knowledge base say", "how does <flow> work". Explicit only — the agent never calls the KB on its own initiative. Answers inform testing/navigation but are NEVER used as PASS/FAIL evidence.
/azure-integrationagentex@elgazzar-plugins is listed by mhmdelgazzar/elgazzar-plugins — review the source before installing
npx claudepluginhub mhmdelgazzar/elgazzar-plugins --plugin agentexOther plugins' skills for the same job