Context-Driven Testing
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
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
- Value of any practice depends on its context
- Good practices in context, no universal best practices
- People working together are most important
- Projects unfold in unpredictable ways
- Product is a solution - if problem not solved, product fails
- Good testing is challenging intellectual work
- Judgment and skill determine right things at right times
Context Factors
| Factor |
Questions |
| Project |
Business goal? User needs? Failure impact? |
| Constraints |
Timeline? Budget? Team skills? Legacy? |
| Risk |
Safety-critical? Regulated? High volume? |
| Technical |
Stack quirks? Integrations? Observability? |
RST Heuristics
| Heuristic |
Application |
| SFDIPOT |
Structure, Function, Data, Interfaces, Platform, Operations, Time |
| Oracles |
Consistency with history, similar products, expectations, docs |
| Tours |
Business 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
| Checking |
Testing (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
- Start with risk assessment - List features, ask: How likely to fail? How bad? How hard to test?
- Time-box exploration - 2 hours checkout, 30 min error handling, 15 min per browser
- Document discoveries - Not "Enter invalid email, verify error" but "Payment API returns 500 instead of 400, no user-visible error. Bug filed."
- Talk to humans - Developers, users, support, product
- 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.
1---2name: context-driven-testing3description: Apply context-driven testing principles where practices are chosen based on project context, not universal 'best practices'. Use when making testing decisions, questioning dogma, or adapting approaches to specific project needs.4---56# Context-Driven Testing78<default_to_action>9When making testing decisions or adapting approaches:101. ANALYZE context: project goals, constraints, risks, team skills112. QUESTION practices: "Why this? What risk does it address? What's the cost?"123. INVESTIGATE not just check: Does software solve the problem, or create new ones?134. ADAPT approach based on context, not "best practices"145. DOCUMENT discoveries, not pre-written plans1516**Quick Context Analysis:**17- Mission: "Find important problems fast enough to matter" (not "execute test cases")18- Risk: Safety-critical = high rigor; internal tool = lighter touch19- Constraints: Startup with tight timeline ≠ enterprise with compliance20- Skills: Novice needs structure; expert adapts intuitively2122**Critical Success Factors:**23- No "best practices" work everywhere - only good practices in context24- Testing is investigation, not script execution25- Context changes; your approach should too26</default_to_action>2728## Quick Reference Card2930### When to Use31- Making testing decisions for new project32- Questioning "that's how it's done" dogma33- Adapting approach to specific constraints34- Exploratory testing sessions3536### Seven Context-Driven Principles371. Value of any practice depends on its context382. Good practices in context, no universal best practices393. People working together are most important404. Projects unfold in unpredictable ways415. Product is a solution - if problem not solved, product fails426. Good testing is challenging intellectual work437. Judgment and skill determine right things at right times4445### Context Factors46| Factor | Questions |47|--------|-----------|48| **Project** | Business goal? User needs? Failure impact? |49| **Constraints** | Timeline? Budget? Team skills? Legacy? |50| **Risk** | Safety-critical? Regulated? High volume? |51| **Technical** | Stack quirks? Integrations? Observability? |5253### RST Heuristics54| Heuristic | Application |55|-----------|-------------|56| **SFDIPOT** | Structure, Function, Data, Interfaces, Platform, Operations, Time |57| **Oracles** | Consistency with history, similar products, expectations, docs |58| **Tours** | Business District, Historical, Bad Neighborhood, Tourist, Museum |5960---6162## Context-Driven Decisions6364### Example: Test Automation Level6566**Startup Context:**67- Small team, rapid changes, unclear product-market fit68- **Decision:** Light automation on critical paths, heavy exploratory69- **Rationale:** Requirements change too fast for extensive automation7071**Enterprise Context:**72- Stable features, regulatory requirements, large team73- **Decision:** Comprehensive automated regression suite74- **Rationale:** Stability allows automation investment to pay off7576### Example: Documentation7778**Regulated (FDA/medical):**79- **Decision:** Detailed test protocols, traceability matrices80- **Rationale:** Regulatory compliance isn't optional8182**Fast-paced startup:**83- **Decision:** Lightweight session notes, risk logs84- **Rationale:** Bureaucracy slows more than it helps8586---8788## Investigation vs. Checking8990| Checking | Testing (Investigation) |91|----------|------------------------|92| Did API return 200? | Does API meet user needs? |93| Does button work? | What happens under load? |94| Match the spec? | Does it solve the problem? |9596---9798## Red Flags: Not Context-Driven99100- Follow process "because that's how it's done"101- Can't explain *why* you're doing something102- Measure test cases executed, not problems found103- Test plan could apply to any project104- Stop thinking once you have a script105106---107108## Agent-Assisted Context-Driven Testing109110```typescript111// Agent analyzes context and recommends approach112const context = await Task("Analyze Context", {113 project: 'e-commerce-platform',114 stage: 'startup',115 constraints: ['timeline: tight', 'budget: limited'],116 risks: ['payment-security', 'high-volume']117}, "qe-fleet-commander");118119// Context-aware agent selection120// - qe-security-scanner (critical risk)121// - qe-performance-tester (high volume)122// - Skip: qe-visual-tester (low priority in startup context)123124// Adaptive testing strategy125await Task("Generate Tests", {126 context: 'startup',127 focus: 'critical-paths-only',128 depth: 'smoke-tests',129 automation: 'minimal'130}, "qe-test-generator");131```132133---134135## Agent Coordination Hints136137### Memory Namespace138```139aqe/context-driven/140├── context-analysis/* - Project context snapshots141├── decisions/* - Testing decisions with rationale142├── discoveries/* - What was learned during testing143└── adaptations/* - How approach changed over time144```145146### Fleet Coordination147```typescript148const contextFleet = await FleetManager.coordinate({149 strategy: 'context-driven',150 context: {151 type: 'greenfield-saas',152 stage: 'growth',153 compliance: 'gdpr-only'154 },155 agents: ['qe-test-generator', 'qe-security-scanner', 'qe-performance-tester'],156 exclude: ['qe-visual-tester', 'qe-requirements-validator'] // Not priority157});158```159160---161162## Practical Tips1631641. **Start with risk assessment** - List features, ask: How likely to fail? How bad? How hard to test?1652. **Time-box exploration** - 2 hours checkout, 30 min error handling, 15 min per browser1663. **Document discoveries** - Not "Enter invalid email, verify error" but "Payment API returns 500 instead of 400, no user-visible error. Bug filed."1674. **Talk to humans** - Developers, users, support, product1685. **Pair with others** - Different perspectives = different bugs169170---171172## Related Skills173- [agentic-quality-engineering](../agentic-quality-engineering/) - Context-aware agent selection174- [holistic-testing-pact](../holistic-testing-pact/) - Adapt holistic model to context175- [risk-based-testing](../risk-based-testing/) - Context affects risk assessment176- [exploratory-testing-advanced](../exploratory-testing-advanced/) - RST techniques177178---179180## Remember181182**Context drives decisions.** No universal best practices. Skilled testers make informed decisions based on specific goals, constraints, and risks.183184You're not a test script executor. You're a skilled investigator helping teams build better products.185186**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.