# Use analysis heuristics to discover testworthy risks For testers who need to decide what to investigate before deciding exactly how to test it. - Canonical: https://satracking.net/guides/test-analysis-heuristics/ - Language: en - Category: validation - Level: intermediate - Published: 2026-11-13 - Updated: 2026-11-13 --- ## Audience and learning objectives For testers who need to decide what to investigate before deciding exactly how to test it. This guide explains analysis as a distinct but connected activity: identify relevant elements, understand their relationships and record why they may matter. ## 1. Separate “what matters?” from “how will I test it?” Edgren argues that important test decisions are often made during analysis: choosing which elements deserve attention and deciding how deeply to investigate them. A test case is only one possible expression of a test idea. Starting with a prescribed test-case format can prematurely narrow the investigation. Analysis should identify testworthy elements such as: - Important business data and its transformations. - User roles, permissions and differences in expectations. - State transitions, timing and asynchronous operations. - Dependencies, integrations and external services. - Error handling, recovery and interruption behavior. - Quality characteristics that matter in the product context. The output can be a short note, a diagram, a list of questions or a mental model. The format matters less than the quality of the reasoning. ## 2. Use heuristics as prompts, not recipes A heuristic is a question or rule of thumb that helps direct attention. It does not guarantee a defect or replace domain knowledge. Build a small set that fits the product and revise it as the team learns. Examples of useful analysis prompts: | Area | Questions to ask | |---|---| | Purpose | What user goal is this feature meant to support? | | Data | Which values, combinations or histories change the outcome? | | State | What can happen before, during and after the operation? | | Boundaries | What are the limits, and what happens just beyond them? | | Dependencies | What if a service, permission or data source is unavailable? | | Variation | How do roles, devices, locales or configurations differ? | | Recovery | Can the user retry, cancel, resume or undo? | | Consequence | What is the impact if the behavior is wrong? | Do not apply every question mechanically to every feature. Select the prompts that illuminate the current uncertainty. ## 3. Make invisible analysis visible enough to share The book describes “invisible analysis”: much of a skilled tester's reasoning happens while reading, observing, discussing and exploring. This is valuable, but it becomes difficult to review or transfer if no trace is retained. Use brief memos to capture: - An observation and where it came from. - The interpretation or hypothesis it suggests. - The uncertainty that remains. - A possible test idea or next question. - Any evidence that would change the interpretation. A memo is not a formal test case. It preserves thinking so that another tester can understand the path and add a different perspective. ## 4. Analyze quality characteristics in context Quality characteristics are not an abstract checklist to apply uniformly. Their importance depends on the product, users and consequences. The book's quality-characteristics discussion encourages testers to consider more than functional correctness. For a financial export, accuracy, confidentiality, recoverability and traceability may be critical. For a collaborative editor, concurrency, responsiveness, consistency and usability may matter more. These examples are contextual prompts, not a universal ranking. Ask: 1. Who experiences the quality characteristic? 2. In which workflow does it become visible? 3. What evidence could reveal a weakness? 4. What is the consequence of failure? 5. What trade-off or constraint affects the expected behavior? ## 5. Example: analyze a password-reset flow Instead of immediately writing a happy-path case, identify the elements: - Identity: account existence, email address and verification state. - Time: token expiry, delayed email and repeated requests. - Security: token reuse, enumeration and unauthorized access. - State: requested, delivered, consumed, expired and invalidated. - Recovery: resend, expired link and interrupted browser session. - User experience: clear feedback without disclosing sensitive account status. Then create focused test ideas. For example: request two reset links and determine whether using the older link remains valid; inspect whether the response differs in a way that reveals account existence; verify what happens when the token expires between opening and submitting the form. ## 6. Prioritize analysis without pretending it is precise mathematics A lightweight prioritization note can combine impact, uncertainty and exposure: | Dimension | Prompt | |---|---| | Impact | How harmful would incorrect behavior be? | | Uncertainty | How little do we know about this area? | | Exposure | How often or how widely is it used? | | Change | Has the implementation or dependency recently changed? | | Detectability | Would a failure be visible to users or operators? | Use these dimensions to support a conversation, not to manufacture a falsely exact risk score. ## Common mistakes - Treating heuristics as a checklist that guarantees coverage. - Confusing the number of test cases with the quality of analysis. - Keeping all reasoning in one person's head. - Applying quality models without considering the product context. - Assigning numeric risk scores without explaining the evidence. ## Professional checklist - [ ] Identify testworthy elements before detailing execution. - [ ] Use context-specific heuristics. - [ ] Record important reasoning in short memos. - [ ] Connect quality characteristics to users and workflows. - [ ] Revisit priorities when evidence changes. ## Conclusion Good analysis creates a map of what deserves attention. It makes test design more intentional while leaving room for discovery during execution. ## Source Rikard Edgren, *The Little Black Book on Test Design*, “Analysis”, “Analysis Heuristics”, “Invisible Analysis”, “Memos” and “Quality Characteristics”, pp. 12–17. ## Official references - The Little Black Book on Test Design — Rikard Edgren — https://www.thetesteye.com/papers/TheLittleBlackBookOnTestDesign.pdf (verified 2026-11-13)