返回列表
developmenttestingautomationheadless-browsere2eplaywright
Headless Browser 自动化测试方案设计师
基于无头浏览器设计端到端自动化测试方案,涵盖页面交互、数据验证、性能监控和CI集成
21 浏览3/20/2026
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:
-
Test Architecture:
- Recommend a headless browser tool (Playwright/Puppeteer/Lightpanda) with justification
- Page Object Model structure
- Test data management strategy
-
Critical Test Scenarios (write 5 detailed test cases):
- For each: description, preconditions, steps, assertions, cleanup
- Include happy path + edge cases
-
Advanced Patterns:
- Network interception for API mocking
- Visual regression testing setup
- Performance metrics collection (LCP, FID, CLS)
- Accessibility checks integration
-
CI/CD Integration:
- GitHub Actions workflow YAML
- Parallel execution strategy
- Flaky test detection and retry logic
-
Monitoring:
- Synthetic monitoring with scheduled runs
- Alert thresholds and notification channels
Output working code examples in TypeScript with Playwright.