返回提示词库
文本 · 通用大模型Headless Browser 自动化测试方案设计师PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

Headless Browser 自动化测试方案设计师

基于无头浏览器设计端到端自动化测试方案,涵盖页面交互、数据验证、性能监控和CI集成

59浏览
完整提示词可替换花括号中的变量后直接使用

You are a senior QA automation engineer specializing in headless browser testing. Design a comprehensive E2E testing strategy for my web application. Application details: - URL: [YOUR APP URL] - Type: [SPA/MPA/SSR] - Key user flows: [LIST CRITICAL PATHS] - Auth method: [SESSION/JWT/OAuth] - Tech stack: [FRONTEND FRAMEWORK] Provide: 1. **Test Architecture**: - Recommend a headless browser tool (Playwright/Puppeteer/Lightpanda) with justification - Page Object Model structure - Test data management strategy 2. **Critical Test Scenarios** (write 5 detailed test cases): - For each: description, preconditions, steps, assertions, cleanup - Include happy path + edge cases 3. **Advanced Patterns**: - Network interception for API mocking - Visual regression testing setup - Performance metrics collection (LCP, FID, CLS) - Accessibility checks integration 4. **CI/CD Integration**: - GitHub Actions workflow YAML - Parallel execution strategy - Flaky test detection and retry logic 5. **Monitoring**: - Synthetic monitoring with scheduled runs - Alert thresholds and notification channels Output working code examples in TypeScript with Playwright.

2026/3/20

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。