How zakariabentouhami-bit/qa-ai-agent-poc works
Purpose and Operating Model
This repository is a personal POC for autonomous QA engineering: an AI agent turns a functional story into risk-based test assets, Playwright automation, live execution evidence, and qualified outcomes. It targets public demo systems only and supports both agent-led MCP execution and conventional Playwright runs.
Primary human/agent entry points are README.md, .claude/skills/autonomous-test-agent/SKILL.md, and the Playwright test command.
Story and Source Intake
Stories are the canonical test-design inputs. Local, normalized requirements live in:
• stories/story-001.md
• stories/story-002.md
Raw external material can be retained before conversion into a story:
• inputs/the-internet-login-source.md
This separates imported/public source documentation from the actionable story artifact consumed by the agent workflow.
Autonomous QA Orchestration
The process contract is encoded as a Claude Code skill:
• .claude/skills/autonomous-test-agent/SKILL.md
It defines the agent boundary: read a story, derive test strategy and Xray-compatible cases, generate/update Playwright coverage, execute against the target, classify results as PASS/FAIL/BLOCKED, and create defect reporting only for confirmed product issues. Supporting design intent and implementation planning are recorded in:
• docs/specs/design-qa-ai-agent-poc_20260915.md
• docs/plans/plan-implementation-autonomous-test-agent_20260915.md
Test Design and Evidence Artifacts
Risk-based strategies are durable review artifacts, one per processing cycle/story:
• docs/strategie-test-20260915.md
• docs/strategie-test-20260916.md
Generated execution deliverables are deliberately separate from test code:
• outputs/cas-test-20260915.csv
• outputs/rapport-execution-20260916.md
CSV outputs represent Xray-oriented test cases; Markdown reports preserve execution context, verdicts, and environmental findings. This makes the agent’s reasoning and evidence inspectable outside the runtime.
Automation and Execution Boundary
Executable browser coverage resides in:
• tests/story-001.spec.ts
• tests/story-002.spec.ts
Playwright configuration is centralized in:
• playwright.config.ts
Tests exercise external public sites, notably SauceDemo and The Internet. They may run through the normal Playwright runner (npx playwright test) or be driven interactively by Claude through the Playwright MCP server configured by .mcp.json.
The MCP browser must use an isolated profile; this is an important safety and reproducibility boundary because personal-browser password/security behavior previously interfered with UI interactions.
Runtime, Dependencies, and CI
The material runtime is Node.js with npm dependency resolution:
• package.json
• package-lock.json
GitHub Actions provides the continuous validation path:
• .github/workflows/playwright.yml
On pushes and pull requests, CI runs the combined Playwright suite, independently verifying the generated scripts rather than requiring an interactive AI/MCP session.
Components 16
Requirements Intake
- Project entry point
README.md - Raw login source · Imported public documentation before story normalization.
inputs/the-internet-login-source.md - Canonical stories · Normalized functional inputs for test design.
stories/story-001.md - Second story
stories/story-002.md
Autonomous QA
- Autonomous test skill · Defines the story-to-evidence agent contract.
.claude/skills/autonomous-test-agent/SKILL.md - Agent design spec
docs/specs/design-qa-ai-agent-poc_20260915.md - Implementation plan
docs/plans/plan-implementation-autonomous-test-agent_20260915.md
Review Artifacts
- Risk test strategies · Durable, per-story risk-based review artifacts.
docs/strategie-test-20260915.md - Xray test cases · Generated test cases for Xray-oriented review.
outputs/cas-test-20260915.csv - Execution report · Preserves verdicts and environment findings.
outputs/rapport-execution-20260916.md
Browser Execution
- Playwright story tests · Executable coverage for public demo targets.
tests/story-001.spec.ts - Second story tests
tests/story-002.spec.ts - Playwright config
playwright.config.ts - Playwright MCP · Uses an isolated browser profile for safe reproducible agent runs.
.mcp.json
Runtime & CI
- Node/npm runtime · Dependencies and test tooling resolution.
package.json - GitHub Actions · Runs the combined suite on pushes and pull requests.
.github/workflows/playwright.yml
Connections 20
- Raw login source → Canonical stories: normalized into
- Canonical stories → Autonomous test skill: test-design input
- Second story → Autonomous test skill: test-design input
- Agent design spec → Autonomous test skill: design intent
- Implementation plan → Autonomous test skill: implementation guidance
- Autonomous test skill → Risk test strategies: derives risks
- Autonomous test skill → Xray test cases: generates cases
- Autonomous test skill → Playwright story tests: generates or updates
- Autonomous test skill → Second story tests: generates or updates
- Playwright story tests → Playwright config: uses
- Second story tests → Playwright config: uses
- Autonomous test skill → Playwright MCP: interactive execution
- Playwright MCP → Playwright story tests: drives
- Playwright story tests → Execution report: execution evidence
- Second story tests → Execution report: execution evidence
- Node/npm runtime → Playwright story tests: runs
- Node/npm runtime → GitHub Actions: provides dependencies
- GitHub Actions → Playwright story tests: validates on push/PR
- GitHub Actions → Second story tests: validates on push/PR
- Project entry point → Autonomous test skill: introduces workflow