MCP HubMCP Hub
返回技能列表

context-driven-testing

proffesor-for-testing
更新于 Today
104 次查看
99
21
99
在 GitHub 上查看
其他context-drivenrstexploratoryheuristicsoraclesskilled-testing

关于

This skill applies context-driven testing principles to help developers make testing decisions based on specific project needs rather than universal rules. It guides you to analyze your project's unique context, question existing practices, and adapt your testing approach accordingly. Use it when evaluating testing strategies, challenging dogma, or tailoring methods to address specific risks and constraints.

快速安装

Claude Code

推荐
插件命令推荐
/plugin add https://github.com/proffesor-for-testing/agentic-qe
Git 克隆备选方式
git clone https://github.com/proffesor-for-testing/agentic-qe.git ~/.claude/skills/context-driven-testing

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Context-Driven Testing

<default_to_action> When making testing decisions or adapting approaches:

  1. ANALYZE context: project goals, constraints, risks, team skills
  2. QUESTION practices: "Why this? What risk does it address? What's the cost?"
  3. INVESTIGATE not just check: Does software solve the problem, or create new ones?
  4. ADAPT approach based on context, not "best practices"
  5. DOCUMENT discoveries, not pre-written plans

Quick Context Analysis:

  • Mission: "Find important problems fast enough to matter" (not "execute test cases")
  • Risk: Safety-critical = high rigor; internal tool = lighter touch
  • Constraints: Startup with tight timeline ≠ enterprise with compliance
  • Skills: Novice needs structure; expert adapts intuitively

Critical Success Factors:

  • No "best practices" work everywhere - only good practices in context
  • Testing is investigation, not script execution
  • Context changes; your approach should too </default_to_action>

Quick Reference Card

When to Use

  • Making testing decisions for new project
  • Questioning "that's how it's done" dogma
  • Adapting approach to specific constraints
  • Exploratory testing sessions

Seven Context-Driven Principles

  1. Value of any practice depends on its context
  2. Good practices in context, no universal best practices
  3. People working together are most important
  4. Projects unfold in unpredictable ways
  5. Product is a solution - if problem not solved, product fails
  6. Good testing is challenging intellectual work
  7. Judgment and skill determine right things at right times

Context Factors

FactorQuestions
ProjectBusiness goal? User needs? Failure impact?
ConstraintsTimeline? Budget? Team skills? Legacy?
RiskSafety-critical? Regulated? High volume?
TechnicalStack quirks? Integrations? Observability?

RST Heuristics

HeuristicApplication
SFDIPOTStructure, Function, Data, Interfaces, Platform, Operations, Time
OraclesConsistency with history, similar products, expectations, docs
ToursBusiness District, Historical, Bad Neighborhood, Tourist, Museum

Context-Driven Decisions

Example: Test Automation Level

Startup Context:

  • Small team, rapid changes, unclear product-market fit
  • Decision: Light automation on critical paths, heavy exploratory
  • Rationale: Requirements change too fast for extensive automation

Enterprise Context:

  • Stable features, regulatory requirements, large team
  • Decision: Comprehensive automated regression suite
  • Rationale: Stability allows automation investment to pay off

Example: Documentation

Regulated (FDA/medical):

  • Decision: Detailed test protocols, traceability matrices
  • Rationale: Regulatory compliance isn't optional

Fast-paced startup:

  • Decision: Lightweight session notes, risk logs
  • Rationale: Bureaucracy slows more than it helps

Investigation vs. Checking

CheckingTesting (Investigation)
Did API return 200?Does API meet user needs?
Does button work?What happens under load?
Match the spec?Does it solve the problem?

Red Flags: Not Context-Driven

  • Follow process "because that's how it's done"
  • Can't explain why you're doing something
  • Measure test cases executed, not problems found
  • Test plan could apply to any project
  • Stop thinking once you have a script

Agent-Assisted Context-Driven Testing

// Agent analyzes context and recommends approach
const context = await Task("Analyze Context", {
  project: 'e-commerce-platform',
  stage: 'startup',
  constraints: ['timeline: tight', 'budget: limited'],
  risks: ['payment-security', 'high-volume']
}, "qe-fleet-commander");

// Context-aware agent selection
// - qe-security-scanner (critical risk)
// - qe-performance-tester (high volume)
// - Skip: qe-visual-tester (low priority in startup context)

// Adaptive testing strategy
await Task("Generate Tests", {
  context: 'startup',
  focus: 'critical-paths-only',
  depth: 'smoke-tests',
  automation: 'minimal'
}, "qe-test-generator");

Agent Coordination Hints

Memory Namespace

aqe/context-driven/
├── context-analysis/*    - Project context snapshots
├── decisions/*           - Testing decisions with rationale
├── discoveries/*         - What was learned during testing
└── adaptations/*         - How approach changed over time

Fleet Coordination

const contextFleet = await FleetManager.coordinate({
  strategy: 'context-driven',
  context: {
    type: 'greenfield-saas',
    stage: 'growth',
    compliance: 'gdpr-only'
  },
  agents: ['qe-test-generator', 'qe-security-scanner', 'qe-performance-tester'],
  exclude: ['qe-visual-tester', 'qe-requirements-validator']  // Not priority
});

Practical Tips

  1. Start with risk assessment - List features, ask: How likely to fail? How bad? How hard to test?
  2. Time-box exploration - 2 hours checkout, 30 min error handling, 15 min per browser
  3. Document discoveries - Not "Enter invalid email, verify error" but "Payment API returns 500 instead of 400, no user-visible error. Bug filed."
  4. Talk to humans - Developers, users, support, product
  5. Pair with others - Different perspectives = different bugs

Related Skills


Remember

Context drives decisions. No universal best practices. Skilled testers make informed decisions based on specific goals, constraints, and risks.

You're not a test script executor. You're a skilled investigator helping teams build better products.

With Agents: Agents analyze context, adapt strategies, and learn what works in your situation. Use agents to scale context-driven thinking while maintaining human judgment for critical decisions.

GitHub 仓库

proffesor-for-testing/agentic-qe
路径: .claude/skills/context-driven-testing
agenticqeagenticsfoundationagentsquality-engineering

相关推荐技能

exploratory-testing-advanced

其他

该Skill为开发者提供高级探索性测试框架,集成了基于会话的测试管理(SBTM)、RST启发式和测试漫游方法。它适用于规划探索会话、调查缺陷或发现未知质量风险,能系统化引导测试过程。关键功能包括创建测试章程、应用SFDIPOT/FEW HICCUPPS启发式规则,以及执行结构化测试漫游来提升测试覆盖率。

查看技能

test-automation-strategy

其他

该Skill为开发者提供完整的测试自动化策略指导,涵盖测试金字塔设计、FIRST原则应用和CI/CD集成。它适用于构建新自动化框架或优化现有测试效率的场景,内置页面对象模式等最佳实践模板。通过结构化方法帮助团队建立可靠、可维护且与开发流程深度集成的自动化测试体系。

查看技能

testability-scoring

其他

该Skill基于10个内在可测试性原则,对Web应用进行AI驱动的可测试性评估。它使用Playwright并可选集成Vibium,帮助开发者评估测试就绪度、识别改进点并生成报告。适用于软件可测试性评估、测试准备度检查及生成可测试性改进建议等场景。

查看技能

shift-right-testing

其他

该Skill为开发者提供生产环境测试的标准化方法,特别适用于实施渐进式交付和可观测性场景。它通过功能开关、金丝雀发布、合成监控和混沌工程等关键能力,在真实生产环境中安全验证系统行为。开发者可依据其结构化步骤(1%→100%渐进发布、故障注入等)系统性地构建韧性并降低发布风险。

查看技能