/agentex:test-executionfrom AgenTeX
Executes test specs against websites, web apps, or APIs, routing steps to browser (Playwright), API calls, database checks, or knowledge-base queries. Produces per-scenario evidence and a consolidated defect report. Supports sequential (human-in-the-loop) or parallel (autonomous) modes.
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 run test specs, route every step to the driver that executes it, and report defects with evidence. You never modify application code.
These hold for every run, in every mode.
Verdicts
api:/db: entry, an unresolvable ui-check baseline.Browser runs (the run's drivers include browser)
playwright-cli command carries -s=<session>, with a name from init_run.js. The default session is prohibited: a bare command lands there and collides with other executions.-s=<session> close). Never run close-all / kill-all: they kill other executions' browsers. The one exception is a global cleanup the user explicitly asks for, after confirming no other execution is running.Data and secrets
envSecret targets).{ "envSecret" } browser field is typed only by skills/browser-driver/scripts/fill_secret.js, in every mode (browser-driver's Secret fields rule). A missing or empty variable is BLOCKED secret-unavailable, never FAIL and never captcha-or-otp.run-summary.json and extent-report.html carry user handles only. Never credential values, and never envSecret target names, anywhere in either (not in run, notes, or deferred questions). Record the login mode as the mode word only.config/project.json and environments/<env>.json only. Never read .env: the bundled scripts read the values they need from it themselves (fill_secret.js for envSecret fields, the runners for api:/db:/kb:).Scope
run-summary.json is mandatory in every run and no step deletes it.[email protected]). Logging in with an environment test user is the job.| Term | Meaning |
|---|---|
| Driver | What executes a step type: browser-driver, api-integration, db-integration, ask-kb, ui-check. Contract: references/concepts/driver-contract.md. |
| Drivers of a run | The union of its specs' drivers, from spec_drivers.js. Spec format: references/concepts/spec-format.md. |
| BLOCKED | Could not be tested: missing data or entry, the same infra failure on both attempts, or a stateful chain stopped upstream. |
| FLAKY | Failed on infrastructure, then passed on the one retry. |
| NEEDS-USER | A ui-check question an executor could not ask mid-run. Resolved at MERGE. |
| envSecret | { "envSecret": "NAME" } on any field: typed only by browser-driver's fill_secret.js (browser) or the runners (api/db); never resolved by you. |
| Handle | A key under users (e.g. expired_user). The only user identifier allowed in artifacts. |
| Executor | A qa-executor subagent running one test file. |
| ⏸ | A sequential-mode checkpoint: stop and wait for approval. |
Every run writes all its data under one folder in the current project:
executions/execu_<YYYY-MM-DD_HH-MM-SS>/
├── report.md [orchestrator]
├── run-summary.json [orchestrator] schemaVersion 2, mandatory
├── browser-sessions/<session>/{logs,screenshots}/ [that session's executor only]
└── bugs/{bug-list.md, screenshots/} [orchestrator]
init_run.js, assign each executor its SESSION_DIR, write report.md, run-summary.json, and bugs/.browser-sessions/<session>/, and returns the evidence paths that prove each defect. The folder keeps this name in API/DB-only runs (runner logs land in logs/).init_run.js. Ignore the .playwright-cli/ scratch dir and clean it at the end.| Situation | Mode | Read before step 1 |
|---|---|---|
| Default | Sequential | references/procedures/sequential-run.md |
| The user asks for a parallel / fast / regression / autonomous run | Parallel | references/procedures/parallel-run.md |
A headless /execute-test ci … run | CI | references/procedures/ci-run.md, before any action |
Run spec_drivers.js <specs> once, before any other action. Its drivers decide what the run needs:
| Drivers include | Then |
|---|---|
browser | Read ${CLAUDE_PLUGIN_ROOT}/skills/browser-driver/SKILL.md before the first browser action. portalUrl (or the spec's Target:) is required. |
no browser | No browser session, no -s=, no screenshots, no playwright preflight. portalUrl is not required. |
mobile (a spec's Drivers: mobile) | That spec is BLOCKED: "mobile specs run via /execute-mobile-test". Never run it in a browser. The rest of the run goes on. |
Resolve once, before any step. Take the first match:
env: uat in the spec → environments/uat.json.defaultEnvironment in config/project.json → that file.ci_preflight.js reads QA_TARGET_URL itself; a target it cannot resolve is BLOCKED by preflight./update-agentex" (it moves QA_TARGET_URL into environments/). Never read .env to find it.From the environment file:
portalUrl is the browser target. defaults + users are the test data for every scenario.users.expired_user. User entries are free-form: every field is test data. A user without password uses defaults.password.| Problem | Action |
|---|---|
| The named environment has no file | Stop and list environments/. Never fall back silently to another environment. |
| A spec names a user the environment does not define | That step is BLOCKED. Report the missing handle. |
Record the active environment name in report.md.
Read login.mode from config/project.json: "session" or "fresh". "per-test" (older wizard) means fresh: accept it as is and never rewrite the tester's config. Missing, unreadable, or any other value resolves to fresh, and a run never creates a saved session the tester did not ask for. Resolve it once per run, pass it to every executor as LOGIN_MODE (even when it is the default), and follow it yourself in sequential mode. What each mode means for a browser is in the browser-driver skill.
| Step | Driver | Rule |
|---|---|---|
| No prefix (prose) | browser-driver | Read its SKILL.md first. |
api: | api-integration runner (run_api.js) | Cataloged integration/ entries only. Pass --env <name> when an environment resolved, in every mode. Read that skill first. |
db: | db-integration runner (run_db.js) | Same as api:. |
kb: | ask-kb runner | Advisory only, never a PASS/FAIL. |
ui-check: | ui-check skill | Needs a live page (browser). Read it first. |
First ask: did the app ever answer? Each driver's infrastructure signatures are in references/concepts/driver-contract.md.
| Attempt 1 | Attempt 2 | Verdict |
|---|---|---|
| Infra failure | Pass | FLAKY |
| Infra failure | Same infra failure | BLOCKED, symptom verbatim |
| App answered wrong | (never retried) | FAIL |
| App failure on a retry that infra forced | Same app failure | FAIL, reproduced on 2 of 2 |
| File | Knowledge | Read when |
|---|---|---|
references/procedures/sequential-run.md | Procedure | Starting a sequential run |
references/procedures/parallel-run.md | Procedure | Starting a parallel run |
references/procedures/ci-run.md | Procedure | Before any action in CI mode |
references/procedures/report.md | Procedure | Writing report.md and bugs/ |
references/procedures/run-record.md | Procedure | Recording timestamps; writing run-summary.json |
references/concepts/spec-format.md | Concept | Reading or seeding specs |
references/concepts/driver-contract.md | Concept | Deciding retry vs defect; adding a driver |
Scripts in ${CLAUDE_PLUGIN_ROOT}/skills/test-execution/scripts/ each print one JSON line:
| Script | Use |
|---|---|
preflight.js [--needs <drivers>] | Check the run's tools in one call at session start. Its JSON becomes run.tools. |
spec_drivers.js <specs…> | --all | The drivers the run's specs need. |
init_run.js [--sessions a,b] | Create the run tree and unique session names. Use the sessions keys verbatim. The label default is rejected. |
merge_run.js --run-dir <dir> <paths…> | Copy bug evidence into bugs/screenshots/. |
write_verdict.js | CI only: the deterministic verdict (see ci-run.md). |
references/concepts/driver-contract.md (opens in a new tab)references/concepts/spec-format.md (opens in a new tab)references/procedures/ci-run.md (opens in a new tab)references/procedures/parallel-run.md (opens in a new tab)references/procedures/report.md (opens in a new tab)references/procedures/run-record.md (opens in a new tab)references/procedures/sequential-run.md (opens in a new tab)scripts/ci_gate.js (opens in a new tab)scripts/ci_gate.test.js (opens in a new tab)scripts/ci_preflight.js (opens in a new tab)scripts/ci_preflight.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/preflight.js (opens in a new tab)scripts/preflight.test.js (opens in a new tab)scripts/spec_drivers.js (opens in a new tab)scripts/spec_drivers.test.js (opens in a new tab)scripts/write_verdict.js (opens in a new tab)scripts/write_verdict.test.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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