Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

qa-testing-strategy质量保证测试策略

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

7,148

周安装

292

GitHub Stars

59

下载量

2,313
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qa-testing-strategy(质量保证测试策略)
来源仓库:https://github.com/vasilyu1983/ai-agents-public
仓库路径:skills/qa-testing-strategy
安装命令:
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill qa-testing-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill qa-testing-strategy

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适合编写单元测试、端到端测试、测试计划或根据失败日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据,避免为通过测试而改坏真实逻辑。
  • 涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网或文件读写。

SKILL.md

QA Testing Strategy (Jan 2026)

Risk-based quality engineering strategy for modern software delivery.

Core references: curated links in data/sources.json (SLOs/error budgets, contracts, E2E, OpenTelemetry). Start with references/operational-playbook.md for a compact, navigable overview.

Scope

  • Create or update a risk-based test strategy (what to test, where, and why)
  • Define quality gates and release criteria (merge vs deploy)
  • Select the smallest effective layer (unit → integration → contract → E2E)
  • Make failures diagnosable (artifacts, logs/traces, ownership)
  • Operationalize reliability (flake SLO, quarantines, suite budgets)

Use Instead

NeedSkill
Debug failing tests or incidentsqa-debugging
Test LLM agents/personasqa-agent-testing
Perform security audit/threat modelsoftware-security-appsec
Design CI/CD pipelines and infraops-devops-platform

Quick Reference

Test TypeGoalTypical Use
UnitProve logic and invariants fastPure functions, core business rules
ComponentValidate UI behavior in isolationUI components and state transitions
IntegrationValidate boundaries with real depsAPI + DB, queues, external adapters
ContractPrevent breaking changes cross-teamOpenAPI/AsyncAPI/JSON Schema/Protobuf
E2EValidate critical user journeys1–2 “money paths” per product area
PerformanceEnforce budgets and capacityLoad, stress, soak, regression trends
VisualCatch UI regressionsLayout/visual diffs on stable pages
AccessibilityAutomate WCAG checksaxe smoke + targeted manual audits
SecurityCatch common web vulns earlyDAST smoke + critical checks in CI

Default Workflow

  1. Clarify scope and risk: critical journeys, failure modes, and non-functional risks (latency, data loss, auth).
  2. Define quality signals: SLOs/error budgets, contract/schema checks, and what blocks merge vs blocks deploy.
  3. Choose the smallest effective layer (unit → integration → contract → E2E).
  4. Make failures diagnosable: artifacts + correlation IDs (logs/traces/screenshots), clear ownership, deflake runbook.
  5. Operationalize: flake SLO, quarantine with expiry, suite budgets (PR gate vs scheduled), dashboards.

Test Pyramid

           /\
          /E2E\          5-10% - Critical journeys
         /------\
        /Integr. \       15-25% - API, DB, queues
       /----------\
      /Component \       20-30% - UI modules
     /------------\
    /   Unit      \      40-60% - Logic and invariants
   /--------------\

Decision Tree: Test Strategy

Need to test: [Feature Type]
    │
    ├─ Pure business logic/invariants? → Unit tests (mock boundaries)
    │
    ├─ UI component/state transitions? → Component tests
    │   └─ Cross-page user journey? → E2E tests
    │
    ├─ API Endpoint?
    │   ├─ Single service boundary? → Integration tests (real DB/deps)
    │   └─ Cross-service compatibility? → Contract tests (schema/versioning)
    │
    ├─ Event-driven/API schema evolution? → Contract + backward-compat tests
    │
    └─ Performance-critical? → k6 load testing

Core QA Principles

Definition of Done

  • Strategy is risk-based: critical journeys + failure modes explicit
  • Test portfolio is layered: fast checks catch most defects
  • CI is economical: fast pre-merge gates, heavy suites scheduled
  • Failures are diagnosable: actionable artifacts (logs/trace/screenshots)
  • Flakes managed with SLO and deflake runbook

Shift-Left Gates (Pre-Merge)

  • Contracts: OpenAPI/AsyncAPI/JSON Schema validation
  • Static checks: lint, typecheck, secret scanning
  • Fast tests: unit + key integration (avoid full E2E as PR gate)

Shift-Right (Post-Deploy)

  • Synthetic checks for critical paths (monitoring-as-tests)
  • Canary analysis: compare SLO signals and key metrics before ramping
  • Feature flags for safe rollouts and fast rollback
  • Convert incidents into regression tests (prefer lower layers first)

CI Economics

BudgetTarget
PR gatep50 ≤ 10 min, p95 ≤ 20 min
Mainline health≥ 99% green builds/day

Flake Management

  • Define: test fails without product change, passes on rerun
  • Track weekly: flaky_failures / total_test_executions (where flaky_failure = fail_then_pass_on_rerun)
  • SLO: Suite flake rate ≤ 1% weekly
  • Quarantine policy with owner and expiry
  • Use the deflake runbook: template-flaky-test-triage-deflake-runbook.md

Common Patterns

AAA Pattern

it('should apply discount', () => {
  // Arrange
  const order = { total: 150 };
  // Act
  const result = calculateDiscount(order);
  // Assert
  expect(result.discount).toBe(15);
});

Page Object Model (E2E)

class LoginPage {
  async login(email: string, password: string) {
    await this.page.fill('[data-testid="email"]', email);
    await this.page.fill('[data-testid="password"]', password);
    await this.page.click('[data-testid="submit"]');
  }
}

Anti-Patterns

Anti-PatternProblemSolution
Testing implementationBreaks on refactorTest behavior
Shared mutable stateFlaky testsIsolate test data
sleep() in testsSlow, unreliableUse proper waits
Everything E2ESlow, expensiveUse test pyramid
Ignoring flaky testsFalse confidenceFix or quarantine

Do / Avoid

Do

  • Write tests against stable contracts and user-visible behavior
  • Treat flaky tests as P1 reliability work
  • Make "how to debug this failure" part of every suite

Avoid

  • "Everything E2E" as default
  • Sleeps/time-based waits (use event-based)
  • Coverage % as primary quality KPI

Feature Matrix vs Test Matrix Gate (Release Blocking)

Before release, run a coverage audit that maps product features/backlog IDs to direct test evidence.

Gate Rules

  • Every release-scoped feature must map to at least one direct automated test, or an explicit waiver with owner/date.
  • Evidence must include file path and test identifier (suite/spec/case).
  • "Covered indirectly" is not accepted without written rationale and risk acknowledgment.
  • If critical features have no direct evidence, release is blocked.

Minimal Audit Output

  • feature/backlog id
  • coverage status (direct, indirect, none)
  • evidence reference
  • risk level
  • owner and due date for gaps

Resources

ResourcePurpose
comprehensive-testing-guide.mdEnd-to-end playbook across layers
operational-playbook.mdTesting pyramid, BDD, CI gates
shift-left-testing.mdContract-first, BDD, continuous testing
test-automation-patterns.mdReliable patterns and anti-patterns
playwright-webapp-testing.mdPlaywright patterns
chaos-resilience-testing.mdChaos engineering
observability-driven-testing.mdOpenTelemetry, trace-based
contract-testing-2026.mdPact, Specmatic
synthetic-test-data.mdPrivacy-safe, ephemeral test data
test-environment-management.mdEnvironment provisioning and lifecycle
quality-metrics-dashboard.mdQuality metrics and dashboards
compliance-testing.mdSOC2, HIPAA, GDPR, PCI-DSS testing
feature-matrix-vs-test-matrix-gate.mdRelease-blocking feature-to-test coverage audit

Templates

TemplatePurpose
template-test-case-design.mdGiven/When/Then and test oracles
test-strategy-template.mdRisk-based strategy
template-flaky-test-triage.mdFlake triage runbook
template-jest-vitest.mdUnit test patterns
template-api-integration.mdAPI + DB integration tests
template-playwright.mdPlaywright E2E
template-visual-testing.mdVisual regression testing
template-k6-load-testing.mdk6 performance
automation-pipeline-template.mdCI stages, budgets, gates
template-cucumber-gherkin.mdBDD feature files and steps
template-release-coverage-audit.mdFeature matrix vs test matrix release audit

Data

FilePurpose
sources.jsonExternal references

Related Skills

Ops Gate: Release-Safe Verification Sequence

Use this sequence for feature branches that touch user flows, pricing, localization, or analytics.

# 1) Static checks
npm run lint
npm run typecheck

# 2) Fast correctness
npm run test:unit

# 3) Critical path checks
npm run test:e2e -- --grep "@critical"

# 4) Instrumentation gate (if configured)
npm run test:analytics-gate

# 5) Production build
npm run build

If a Gate Fails

  1. Capture exact failing command and first error line.
  2. Classify: environment issue, baseline known failure, or regression.
  3. Re-run only the failed gate once after fix.
  4. Do not continue to later gates while earlier required gates are red.

Agent Output Contract for QA Handoff

Always report:

  • commands run,
  • pass/fail per gate,
  • whether failures are pre-existing or introduced,
  • next blocking action.

Fact-Checking

  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.59%
按下载量换算638

Cursor

23.98%
按下载量换算555

OpenCode

17.3%
按下载量换算400

Gemini CLI

11.97%
按下载量换算277

Antigravity

8.06%
按下载量换算186

Codex

3.87%
按下载量换算90

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills