← ClaudeAtlas

software-test-initlisted

初始化软件测试环境,检测项目组件、Playwright、Chrome、API runner、健康检查和运行配置。Use for software test init, test environment discovery, Playwright setup check, runtime profile.
hccnm/software-testing · ★ 1 · Testing & QA · score 68
Install: claude install-skill hccnm/software-testing
# Software Test Init 用于 Cursor `/software-test-init`。只发现和记录环境,不编写用例、不执行测试。 1. 从当前目录向上解析项目根:��式 `--project-root` 优先,否则最近 Git 根目录,否则当前目录。 2. 检测组件、Playwright、Chrome、API runner、浏览器模式和已有测试设施;Midscene 仅在用户明确要求时记录为可选增强。 3. 运行脚本生成唯一环境资料:`docs/test-cases/environment/runtime-profile.yaml` 与 `runtime-profile.html`。Windows 必须检查 `Program Files`、`Program Files (x86)`、`LocalAppData` 及 PATH 中的 Chrome;macOS 和 Linux 也检查各自标准路径与 PATH。 4. “环境资料格式通过”只表示 YAML 可解析,绝不表示浏览器、Playwright、登录态或 Web 用例可执行。系统 Chrome 未检测到时,isolated 模式应明确为“由 Apply 预检确认 Playwright 浏览器”;`existing-chrome` 模式应明确阻塞。缺少依赖时只说明安装范围并等待用户确认,不能自行安装依赖。 ```bash python3 <skill-dir>/scripts/runtime_profile.py detect [--project-root <path>] python3 <skill-dir>/scripts/runtime_profile.py validate <runtime-profile.yaml> python3 <skill-dir>/scripts/runtime_profile.py render <runtime-profile.yaml> ``` 最终只报告资料路径、系统 Chrome 检测结果、Playwright CLI 结果和“需由 Apply 预检确认”的 Web 执行状态;不得把格式校验报告为环境可执行。读取 `references/runtime-profile-protocol.md`。不得读取或落盘 cookie、localStorage、密码或 token。