用途:为 TestCafe 生成 JavaScript 或 TypeScript 端到端自动化测试,覆盖本地浏览器与 TestMu AI 云端执行场景。主要能力包括基础测试结构(fixture、page、test 与 t 链式操作,如 typeText、click、expect)、Selector 选择器(withText、count、nth、withAttribute)、Page Model 页面对象封装,以及截图与窗口尺寸调整等辅助操作。云端部分通过环境变量配置凭据并执行 npx testcafe "lambdatest:Chrome@latest:Windows 11" tests/。常用命令:npx testcafe chrome tests/ 运行全部;npx testcafe chrome:headless tests/ 无头运行;npx testcafe chrome tests/login.js 运行指定文件;npx testcafe chrome,firefox tests/ 多浏览器;npx testcafe chrome tests/ --live 实时模式。资料还给出反模式建议,避免固定 wait 延迟与过深 CSS 选择器,改用带超时的智能断言和 Selector().withText(),并在失败时用 t.takeScreenshot() 保留调试信息。更深入的调试、CI/CD 集成与最佳实践指向 reference/playbook.md,云端完整配置指向 reference/cloud-integration.md 与 shared/testmu-cloud-reference.md。限制:资料未提供价格、账号注册流程、支持浏览器完整清单及具体版本要求,暂未提供。
testcafe-skill
测试与质量
更新于 10-15 23:48