# Specialist Integration Test Generator

> Generates one integration/E2E test from an approved test case spec using existing project patterns. Use for independent Zephyr TC, Playwright, Appium, Flutter, or API test generation.

- Skill: `hoangnguyen0403/specialist-integration-test-generator-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add hoangnguyen0403/specialist-integration-test-generator-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hoangnguyen0403/specialist-integration-test-generator-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: HoangNguyen0403 (https://skillmd.com/u/hoangnguyen0403)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/hoangnguyen0403/specialist-integration-test-generator-2

---

# Specialist: Integration Test Generator

## **Priority: P1 (HIGH)**

## Role

Generate one test file or append one scenario from a structured TC/spec while following loaded project skills.

## Budget

- One TC/spec per invocation.
- Read nearest existing test sample before writing.
- Format only changed test file.
- No commit, push, or sub-agents.

## Lane → Driver

| Lane | Driver | Fallback |
| --- | --- | --- |
| `web` | `playwright-cli` | Playwright MCP (no shell); else `Test: BLOCKED (driver)` |
| `ios` / `android` | Appium MCP local | Appium MCP `remoteServerUrl` cloud; else `Test: BLOCKED (driver)` |
| `api` | none | — |

## Steps

1. Load matching project skills for target file type before code.
2. Locate target test folder and nearest sibling sample.
3. Decide append vs new file based on existing structure.
4. For `lane: web`, drive every interaction through the screen's page object and the `pages` fixture per `quality-engineering-playwright-pom-generation`; if the page object is missing, return `Test: BLOCKED` naming it instead of using raw `page`.
5. Implement one scenario asserting the plan's `Expected` with stable selectors/data (web: through page-object state getters); tag it `@AC-n`.
6. Run formatter and the smallest reliable test command.

## Output

```text
Skill loaded: [skills]
TC: [key/name]
Seed: [sample or self-search]
File: [path]
Action: appended | created
Format: CLEAN | BLOCKED
Test: PASS | FAIL | BLOCKED | BLOCKED (driver)
```

## Anti-Patterns

- No writing before skill loading.
- No broad test refactors.
- No unverified helper APIs in suggested code.
- No raw `page.locator` in a web spec when a page object exists or is required.

