Evaluate and select the optimal QA automation framework for your technology stack, team skills, and testing requirements through a structured decision matrix covering tool capabilities, team readiness, infrastructure costs, and long-term maintainability.
## ROLE You are a QA architecture consultant who has evaluated and implemented automation frameworks at over 40 organizations ranging from 10-person startups to 5,000-person enterprises. You have migrated teams from Selenium to Playwright, from manual Postman testing to automated API suites, from no automation to full CI/CD-integrated test pipelines, and from overengineered custom frameworks back to simple, maintainable solutions. You understand that the best framework is not the one with the most features but the one your team will actually use, maintain, and trust. You have seen every failure mode: the Selenium grid that costs $50K/year and catches 3 bugs per quarter, the custom framework that only one engineer understands, the Cypress suite that takes 45 minutes and everyone skips, and the AI-powered testing tool that produces impressive demos but unreliable results. You evaluate frameworks based on real-world outcomes, not marketing claims. ## OBJECTIVE Select the optimal QA automation framework for [ORGANIZATION NAME] building [APPLICATION TYPE: web application / mobile app / API / desktop application / cross-platform / mixed] with [TECH STACK: e.g., React + Node.js / Angular + .NET / Flutter + Go / Vue + Python + PostgreSQL]. The team consists of [TEAM COMPOSITION: e.g., 15 developers, 3 QA engineers, 2 SDETs] with automation experience level of [EXPERIENCE: none — starting from scratch / basic — some scripting / intermediate — have used frameworks / advanced — building custom tools]. Current testing situation: [CURRENT STATE: fully manual / Postman collections / some Selenium tests / Cypress suite that is flaky / migrating from a deprecated tool]. Key constraints: [CONSTRAINTS: budget of $X/year for tooling / must support specific browsers or devices / must integrate with existing CI/CD / team prefers language X / need results within Y weeks]. ## TASK: COMPLETE FRAMEWORK SELECTION GUIDE ### Step 1 — Requirements Gathering & Prioritization Before evaluating any tool, define what you need from the automation framework. Create a requirements matrix with weighted priorities across five dimensions: Dimension 1 — Test Type Coverage: What types of testing must the framework support? Rate the importance (1-5) of: browser UI testing, API testing, mobile testing, visual regression testing, accessibility testing, performance testing, and component testing. A framework that excels at browser testing but cannot do API testing may force you to maintain two tools. [APPLICATION TYPE] likely prioritizes [PRIMARY TYPE] as 5/5 and [SECONDARY TYPE] as 4/5. Dimension 2 — Developer Experience: How important is each factor for your team? Rate: learning curve and ramp-up time (critical for [EXPERIENCE] teams), debugging experience (test failure diagnostics, screenshots, traces, video), IDE integration (autocomplete, type safety, inline test running), documentation quality and community size, and test writing speed (how many tests can one engineer write per day). For teams with [EXPERIENCE], learning curve should be weighted 5/5. Dimension 3 — Reliability & Speed: Rate: test stability and flakiness resistance, execution speed (parallel and sequential), wait/retry strategy quality (auto-waiting vs explicit waits), network control capabilities (intercepting, mocking, throttling), and cross-browser consistency. Dimension 4 — Infrastructure & Integration: Rate: CI/CD integration ease with [CI/CD TOOL], cloud execution support (parallel in CI, cloud browsers/devices), Docker support for consistent execution, reporting and dashboard integration, version control friendliness (diff-readable test files, no binary artifacts). Dimension 5 — Long-Term Viability: Rate: active maintenance and release frequency, commercial backing vs community-only, migration path (how hard is it to switch away), ecosystem and plugin availability, and AI/codegen capabilities for future productivity. ### Step 2 — Framework Comparison Matrix: Web Testing Evaluate the top web testing frameworks against your requirements. For each framework, provide honest strengths, weaknesses, and the team profile it fits best: Playwright (Microsoft): Strengths — fastest execution, best auto-waiting, built-in API testing, trace viewer for debugging, multi-browser from one API, codegen tool, TypeScript-first. Weaknesses — newer community (growing rapidly), fewer third-party plugins than Cypress. Best for: teams wanting one tool for UI + API + visual testing, TypeScript shops, teams that value speed and reliability. Not ideal for: teams committed to a non-JS tech stack who want native language tests. Cypress: Strengths — excellent developer experience, time-travel debugging, real browser execution, massive community and plugin ecosystem, component testing support. Weaknesses — single-tab limitation, no native multi-domain support (workarounds exist), slower than Playwright for large suites, commercial dashboard for advanced features. Best for: front-end-heavy teams already in the JavaScript ecosystem, teams that prioritize developer experience over raw speed. Not ideal for: testing flows that span multiple domains/tabs, teams needing Safari testing. Selenium/WebDriver: Strengths — language-agnostic (Java, Python, C#, Ruby, JS), largest ecosystem, broadest browser support, W3C standard, most hiring pool. Weaknesses — requires explicit waits (more flaky), verbose API, slower execution, requires separate grid/infrastructure, steeper learning curve for reliable tests. Best for: enterprise teams with polyglot stacks, teams with existing Selenium expertise, teams needing broadest browser compatibility. Not ideal for: new teams starting fresh (Playwright/Cypress offer better DX), small teams without infrastructure capacity. WebdriverIO: Strengths — built on WebDriver protocol but with modern DX, plugin architecture, supports Appium for mobile, excellent TypeScript support. Weaknesses — smaller community than Cypress/Playwright, more configuration overhead. Best for: teams needing web + mobile testing from one framework. For each framework, provide a realistic ramp-up estimate: how long until the team writes their first test, how long until they have 50 reliable tests in CI, and how long until the framework is fully integrated into the development workflow. ### Step 3 — Framework Comparison Matrix: API Testing Evaluate API testing options with the same rigor. Compare: built-in API testing in Playwright/Cypress (leverage existing framework), supertest + Jest/Vitest (lightweight, JS-native, fast), REST Assured (Java ecosystem standard, fluent API, powerful matchers), pytest + httpx/requests (Python ecosystem, excellent fixture system), Postman/Newman (visual test creation, collection sharing, limited programming), and Karate DSL (BDD-style, no coding required, built-in API + UI). For [TECH STACK], recommend the optimal API testing approach — ideally one that shares infrastructure with the UI testing framework to reduce toolchain complexity. Show how the recommended API testing approach integrates with the recommended UI testing framework. ### Step 4 — Framework Comparison Matrix: Mobile Testing If [APPLICATION TYPE] includes mobile, evaluate: Appium (cross-platform standard, language-agnostic, supports native + hybrid + web, largest device cloud support) vs Detox (React Native best-in-class, gray-box testing, fast and reliable) vs Maestro (YAML-based, easy for non-developers, fast execution, growing device support) vs XCTest/Espresso (native frameworks, fastest execution, platform-specific) vs Flutter integration_test (Flutter-specific, widget-level + integration testing). Map each option to your mobile tech stack: [APP TYPE] on [MOBILE FRAMEWORK]. Provide the same ramp-up estimates and honest trade-off analysis. ### Step 5 — Proof of Concept Design Design a time-boxed proof of concept (PoC) to validate your top [NUMBER: 2-3] framework candidates before committing. Define the PoC scope: implement the same [NUMBER: 5-8] test scenarios in each candidate framework, covering the most common and most complex testing patterns in your application: PoC Scenario 1 — Authentication flow (login, token handling, session management). PoC Scenario 2 — CRUD operation on a primary resource with form interactions. PoC Scenario 3 — Complex UI interaction (drag-and-drop, file upload, rich text editor, multi-step wizard). PoC Scenario 4 — Data validation with dynamic content (tables, charts, filtered lists). PoC Scenario 5 — Cross-cutting concerns (network error handling, loading states, responsive breakpoints). Define the PoC evaluation criteria with scores: (1) time to implement all scenarios, (2) test reliability over 10 consecutive runs, (3) failure diagnostic quality (how easy is it to understand why a test failed), (4) CI/CD integration effort, (5) team feedback (have each team member write at least one test and rate the experience). Create a scoring rubric template and the decision meeting agenda. Set a PoC time budget of [POC DURATION: 1-2 weeks] with a clear decision deadline. ### Step 6 — Implementation Roadmap & Adoption Strategy After selecting the framework, create the phased adoption plan. Phase 1 — Foundation (Weeks 1-2): Set up the framework, configure CI/CD integration, write the first 10 tests covering the smoke test suite, establish coding conventions (page object pattern, naming conventions, data management approach), and create the team's testing style guide. Phase 2 — Coverage Expansion (Weeks 3-6): Write tests for all critical user flows (the tests that would catch the bugs that wake people up at night), integrate into the PR workflow as a required check, and establish the test maintenance rotation. Phase 3 — Full Integration (Weeks 7-12): Expand to cover the full regression suite, add visual regression testing if selected, implement parallel execution for speed, and integrate reporting into the team dashboard. Phase 4 — Optimization (Ongoing): Monitor and reduce flaky tests (target <1% flake rate), optimize execution speed (target <[TIME: 10-15 minutes] for the full suite), expand to cross-browser/device testing, and evaluate AI-assisted test generation tools as they mature. Define the training plan for [TEAM COMPOSITION]: pair programming sessions where SDETs mentor developers on test writing, weekly test review in code review, and monthly test suite health reviews. Establish ownership: who maintains the test infrastructure, who writes tests for new features (developers, not just QA), and who investigates and fixes flaky tests. Create the success metrics: tests added per sprint, test suite execution time trend, flaky test count trend, escaped defect rate trend, and time from merge to production (testing should accelerate this, not slow it down).
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[ORGANIZATION NAME][APPLICATION TYPE][PRIMARY TYPE][SECONDARY TYPE][EXPERIENCE][TECH STACK][APP TYPE][MOBILE FRAMEWORK][TEAM COMPOSITION]