SuperAPI AI 工具集

qa-test-planner

测试与质量

查看项目

更新于 10-15 21:47

技能介绍

用途:面向 QA 自动化工程师,把需求或用户故事转化为可直接填写的测试交付物,包括测试计划、手工测试用例、Playwright 自动化测试、回归套件和缺陷报告,并支持用浏览器自动化验证 UI。

主要能力:提供 templates/test-plan.md(ISTQB 风格测试计划)、templates/test-case.md(单条测试用例)、templates/playwright-test.md(Playwright 测试模板)、templates/bug-report.md(缺陷报告)等模板;覆盖测试计划编写、用例生成、自动化脚本实现、回归套件构建与维护、缺陷记录等流程。工作流为分析需求、选择模板、填充定制、用 Playwright MCP 执行验证、检查完整性与可追溯性。

使用方式:该技能仅在按名称显式调用时触发,例如 /qa-test-planner、qa-test-planner 或 use the skill qa-test-planner。随后用自然语言提出请求,如“Create a test plan for the user authentication feature using the test-plan.md template”“Generate manual test cases for the checkout flow using the test-case.md template”“Create Playwright automated tests for the login flow using the playwright-test.md template”“Build a regression test suite for the payment module using test-case.md templates grouped by priority”“Create a bug report for the form validation issue using the bug-report.md template”。模板位于 templates/,复制到项目目录后填充 [brackets] 或 ${VARIABLE} 占位符并纳入版本控制。

前置条件:Node.js 18+、Playwright(npm init playwright@latest)、文本编辑器、建议使用 Git;Playwright MCP 为可选项,用于浏览器验证。

适用场景:编写或评审测试计划与策略、从需求生成测试用例、编写可复现的缺陷报告、构建基于风险的回归套件、实现 Playwright 自动化、记录测试执行结果、开展探索性测试、用浏览器自动化验证 UI 元素。

限制与安全:不得在用例或代码中硬编码真实凭据,应使用 ${TEST_USER_EMAIL}、process.env.TEST_USER_EMAIL 等占位符或环境变量;导航外部 URL 前需确认域名可信,避免执行不可信来源的任意 JavaScript,测试第三方应用时使用沙箱环境;用户输入需校验、转义,不得直接传入 eval() 或 shell。模板具体字段、各任务耗时(如测试计划 10-15 分钟、单条用例 5-10 分钟等)以资料所述为准,其他未提及的收费、平台或效果信息暂未提供。