Phase 1: Test plan
Thegenerate-test-plan task takes a product description and produces a comprehensive test plan.
Inputs:
- Product description (from dashboard)
- Live application (Bugzy explores with a real browser)
- Existing project context and docs
Browser exploration
The browser-automation subagent opens your app and systematically navigates pages, forms, and flows.
Cross-reference with product description
Bugzy compares what it finds in the live app with the product description you provided.
Identify test scenarios
Happy paths, edge cases, error states, and boundary conditions are catalogued.
Pull product specs
If Notion or Jira is connected, the documentation-researcher subagent pulls product specs for additional context.
test-plan.md — a markdown document with test areas, scenarios, and expected behaviors.
Test plan structure:
| Element | Description |
|---|---|
| Test areas | Logical groupings of related functionality (e.g., Authentication, Checkout) |
| Scenarios | Individual test scenarios within each area |
| Expected results | What should happen when the scenario is executed |
| Priority levels | Critical, High, Medium, Low |
| Tags | @smoke, @regression, @edge-case |
Phase 2: Test cases and automation
Thegenerate-test-cases task converts the test plan into two artifact types.
Manual test case documents
Located intest-cases/TC-XXX.md, each document includes:
- Preconditions
- Numbered steps
- Expected results
- Test data
Automated Playwright scripts
Located intests/specs/*.spec.ts, each script follows these conventions:
- TypeScript with Page Object patterns
- Proper waits and assertions
- Environment variables for secrets
@smokeand@regressiontags
Output artifacts
| Artifact | Location | Description |
|---|---|---|
| Test plan | test-plan.md | Structured markdown with test areas and scenarios |
| Manual test cases | test-cases/TC-XXX.md | Step-by-step test case documents |
| Automated tests | tests/specs/*.spec.ts | Playwright TypeScript test scripts |
| Page Objects | tests/pages/*.ts | Reusable page interaction classes |
| Test config | tests/CLAUDE.md | Framework conventions and execution commands |
| Test data template | .env.testdata | Non-secret test data values |
Browser exploration
The browser-automation subagent uses Playwright CLI to explore your application:- Navigates the base URL and crawls pages
- Interacts with forms, buttons, and dropdowns
- Takes screenshots of each page
- Identifies dynamic content, auth walls, and multi-step flows
Knowledge base
During test generation, the agent builds aknowledge-base.md file that captures:
- Application structure and navigation
- Common selectors and interaction patterns
- Authentication flows
- Flaky areas and environment-specific behaviors
