Test Strategy: Risk, Levels, and Ownership
Build a risk-based test strategy that decides what to test, at which level, by whom, how often, and when the product is ready to release.
Introduction
A test suite grows by accident unless someone designs it. The common results are a slow, flaky suite that no one trusts, or a thin one that misses what matters. A test strategy is the deliberate answer to: given our risks, how will we gain enough confidence at an acceptable cost?
A strategy is short and practical. It guides daily decisions (“where should this test go?”) and gives stakeholders a basis for release decisions.
Learning Objectives
- Perform a risk assessment that drives test effort.
- Allocate tests across levels using the test pyramid and its alternatives.
- Define test types, ownership, environments, and entry and exit criteria.
- Include testing of non-functional and AI-backed features.
- Use AI to challenge the strategy without letting it set priorities.
1. Start With Risk
Risk is likelihood times impact. Rank areas of the product by both.
| Area (SignalDesk, illustrative) | Likelihood of defect | Impact | Priority |
|---|---|---|---|
| Tenant isolation (data leak across workspaces) | Medium | Very high | Critical |
| Import correctness (lost or duplicated feedback) | High | High | Critical |
| Summary evidence links (summary not backed by sources) | Medium | High | High |
| Import performance on large files | Medium | Medium | Medium |
| Workspace administration screens | Low | Low | Low |
Likelihood rises with new technology, complex logic, many changes, many dependencies, inexperienced authors, and tight deadlines. Impact rises with money, personal data, legal exposure, reputation, and safety.
Use the architecture’s risk register and the defect history as inputs. Revisit the ranking when things change.
2. Levels: Where Each Test Belongs
The classic test pyramid recommends many fast, small tests at the base and few slow, broad tests at the top:
1
2
3
4
5
/\ End-to-end: few, slow, realistic
/ \
/----\ Integration: moderate; real components together
/ \
/--------\ Unit: many, fast, isolated
The reasoning: lower-level tests are faster, more stable, and pinpoint failures; higher-level tests give more realistic confidence but are slower, flakier, and harder to diagnose. Some teams prefer a “trophy” shape (more integration tests) or a “honeycomb” for service architectures. The shape matters less than the principle: test each risk at the lowest level that can detect it, and keep a few high-level tests to confirm that the pieces work together.
Rules of thumb:
- Business rules and algorithms: unit tests.
- Data access, queues, and framework behavior: integration tests with real infrastructure.
- Cross-module and external interactions: contract tests.
- A handful of critical user journeys: end-to-end tests.
- Security and tenant isolation: multiple levels, because the cost of a miss is high.
3. Test Types Beyond Function
Decide which of these apply, and when:
| Type | Question | SignalDesk example |
|---|---|---|
| Functional | Does it do what is specified? | Import rules, listing, summary creation |
| Regression | Did a change break something? | Automated suite on every commit |
| Performance | Is it fast enough under realistic load? | 50,000-row import within an agreed time |
| Security | Can it be abused? | Cross-tenant access attempts, input attacks |
| Reliability | Does it recover from failure? | Job crash and restart, database outage |
| Usability and accessibility | Can people use it? | Keyboard navigation, screen reader basics |
| Compatibility | Does it work in the environments we support? | Supported browsers |
| Data migration | Does data survive upgrades? | Migration on a copy of production-like data |
Not every product needs every type at full depth. The strategy says which risks justify which investments.
4. Testing AI-Backed Features
SignalDesk summaries involve a language model whose output is not deterministic, so exact-match assertions do not work. Combine:
- Deterministic checks around the model: the prompt is built from the right evidence; the response is parsed; every claim links to existing evidence IDs; empty or unsafe output is handled.
- Property checks on output: every cited evidence ID exists in the workspace; no content from other workspaces appears; length and format limits are respected.
- An evaluation set: a fixed collection of representative inputs with expected qualities (not exact text), scored by rubric, by comparison with reference answers, or by human review, and rerun when the model, prompt, or settings change.
- Fallback behavior tests: what happens when the model service is slow, fails, or returns garbage.
- Regression tracking: keep evaluation scores over time so that a prompt change cannot silently degrade quality.
Using an AI model to judge another model’s output can scale evaluation, but it needs calibration against human judgment, and it should not be the only check.
5. Ownership and Process
State who does what:
- Developers own unit and most integration tests for their code, and fix failing tests.
- The team owns the pipeline and its health.
- A quality engineer or tester (if present) coaches, designs strategy, leads exploratory testing and risk analysis, and maintains the automation framework.
- The product owner owns acceptance criteria and accepts features.
- Operations contribute reliability, monitoring, and test environment support.
Shift testing left (review requirements and designs for testability; write tests with the code) and right (monitoring, feature flags, canary releases, and real-user feedback in production). Both reduce the chance that defects reach users unnoticed.
6. Environments and Test Data
- Local: fast feedback with disposable databases.
- CI: clean, reproducible, automated.
- Staging (production-like): end-to-end and performance checks; configuration and data shape resemble production.
- Production: monitoring, synthetic checks, and controlled rollouts.
Test data rules: prefer synthetic or anonymized data; never copy real customer data into lower environments without approval and masking; create data per test rather than depending on shared state; keep a small set of realistic sample files (including awkward ones) in the repository.
7. Entry and Exit Criteria
Define in advance when testing can start and when the product is ready:
- Entry: the build passes the unit and integration suites; the environment is available; test data is ready.
- Exit (release readiness): no open critical or high defects without an agreed decision; all Critical-risk areas have passing automated checks at the agreed levels; the performance and security checks pass at defined thresholds; exploratory testing completed for changed areas; known issues are documented and accepted by the product owner.
Exit criteria are decisions, so someone accountable approves exceptions.
8. Using AI to Challenge the Strategy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Act as a skeptical quality consultant.
Inputs:
- Product description and architecture summary: [paste]
- Risk assessment: [paste]
- Draft test strategy: [paste]
- Current test inventory and known defects: [paste]
Tasks:
1. Identify risks with no corresponding test approach.
2. Identify tests that appear to be at the wrong level.
3. Point out areas of over-investment relative to risk.
4. Identify weak exit criteria or unmeasurable statements.
5. List failure scenarios that this strategy would not detect.
6. Ask me five questions that would most change the strategy.
Do not invent product details. Mark assumptions.
9. Practical Exercise
For SignalDesk (or your project):
- Build the risk table with at least eight areas, scored for likelihood and impact, with reasons.
- For each Critical and High risk, state the test level(s), type(s), trigger, and owner.
- Draw the target pyramid (or your chosen shape) and compare it with the current inventory from lesson 1.
- Write the plan for testing AI-backed behavior, including the evaluation set outline.
- Define environments, test data rules, and entry and exit criteria.
- Run the AI challenge, verify each point, and update the strategy.
- Store the strategy as a two to four page document in the quality workspace.
Verification
You are ready to continue when:
- Every Critical and High risk has at least one named test approach and owner.
- Tests are assigned to levels by what they need to detect.
- AI-backed features have a defined evaluation approach.
- Exit criteria are measurable, and exception approval is assigned.
- The strategy fits on a few pages and a new team member could follow it.
Key Takeaways
- Strategy allocates limited effort according to risk.
- Test each risk at the lowest level that can detect it; keep few high-level tests.
- Non-functional types and AI-backed behavior need explicit plans.
- Shift left and right: test early, and watch production.
- Exit criteria turn “are we ready?” into a decision with evidence.
What’s Next?
With a strategy, we can generate tests at scale. Next, we look at how to use AI for test generation, and how to ensure the tests are worth having.