Risk-based quality engineering test strategy for software delivery. Use when defining or updating test strategy, selecting unit/integration/contract/E2E/performance/security coverage, setting CI quality gates and suite budgets, managing flaky tests and test data, and operationalizing observability-first debugging and release criteria.
Risk-based quality engineering guidance for modern software delivery. Use this skill to decide what to test, at which layer, with which gates, and how to keep the signal trustworthy.
Start with references/operational-playbook.md for the navigation hub. Use current official sources from data/sources.json when you need vendor or standards guidance.
| Need | Skill | |------|-------| | Implement or debug Playwright suites | qa-testing-playwright | | Design API contract suites in depth | qa-api-testing-contracts | | Debug failing tests or incidents | qa-debugging | | Add observability, telemetry, or tracing | qa-observability | | Test LLM agents or evaluations | qa-agent-testing | | Mobile-specific strategy or automation | qa-testing-mobile | | Security audit or threat-model depth | software-security-appsec | | CI/CD pipeline design and infra | ops-devops-platform |
| Layer | Goal | Typical Use | |------|------|-------------| | Unit | Prove logic and invariants fast | Pure functions, domain rules, validators | | Component | Validate UI behavior in a real browser with narrow scope | UI components, state transitions, accessibility smoke | | Contract | Prevent breaking changes across service boundaries | OpenAPI, AsyncAPI, JSON Schema, Protobuf | | Schema fuzzing | Stress the API contract with generated valid and invalid inputs | Request/response edge cases, parser and validation drift | | Property-based | Verify universal invariants across generated input spaces | Serialization round-trips, numeric contracts, state-machine invariants, AI-code edge cases | | Integration | Validate real boundaries and dependencies | API + DB, queues, adapters, auth flows | | E2E | Validate thin critical journeys | Sign-up, checkout, publish, payment, admin recovery | | Performance | Enforce budgets and capacity | Load, stress, soak, latency regression | | Visual | Catch intentional vs accidental UI changes | Stable pages, design-system components | | Accessibility | Check for common WCAG 2.2 failures early | axe smoke + manual audit plan | | Security | Catch common web/API vulnerabilities early | SAST, DAST smoke, auth and dependency checks |
Use three distinct E2E scopes instead of one monolithic suite:
Rules:
Need to test: [Change or Risk]
│
├─ Pure business rule or invariant?
│ └─ Unit test
│
├─ UI behavior or component state in isolation?
│ └─ Component test in a real browser
│
├─ API compatibility between teams/services?
│ └─ Contract test
│
├─ API parser/validation edge cases against the schema?
│ └─ Schema-aware fuzzing + core integration smoke
│
├─ Real dependency boundary or persistence behavior?
│ └─ Integration test with real DB/queue/service doubles only at external edges
│
├─ User-critical cross-page workflow?
│ └─ Thin E2E test
│
├─ Universal invariant or property that should hold for all valid inputs?
│ └─ Property-based test (fast-check / Hypothesis / jqwik)
│
└─ Capacity, resilience, or reliability regression?
└─ Performance, resilience, or synthetic monitoring tests
| Signal | Default Target | |--------|----------------| | PR gate | p50 <= 10 min, p95 <= 20 min | | Mainline health | >= 99% green builds/day | | Suite flake rate | <= 1% weekly | | Quarantine policy | owner + ticket + expiry, never indefinite | | AI-authored test oracle quality | mutation score gate on changed files (line coverage is not a gate); calibrate threshold to the suite, never accept AI tests on coverage alone |
Test strategy request
-> Clarify risks, critical journeys, constraints, and release criteria
-> Pick smallest proving layer: unit, component, contract, integration, E2E
-> Define merge gates, deploy gates, evidence artifacts, and owners
-> Add diagnostics: logs, traces, screenshots, request IDs, and dashboards
-> Set suite health policy: flake SLO, quarantine expiry, runtime budgets
-> Review production signals and incidents to evolve coverage
## Default Workflow, ## Decision Rules, and ## Principles for the baseline strategy sequence## Resources and ## Templates for deeper materials## Related Skills for tool-specific execution handoffs| Skill | Purpose | |-------|---------| | qa-refactoring | Safe refactoring with behavior preservation | | software-code-review | Code review process and checklists | | software-architecture-design | System design and architecture decisions |
Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
npx skills add vasilyu1983/qa-testing-strategy下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer