|Heuristic Test Strategy Model (HTSM)
by James Bach, Version 5.2.2, 5/20/2015|
Designed by James Bach firstname.lastname@example.org http://www.satisfice.com/ Copyright 1996-2005, Satisfice, Inc. http://www.satisfice.com/tools/htsm.pdf Version 5.2.2 5/20/2015 The Heuristic Test Strategy Model is a set of patterns for designing a test strategy. The immediate purpose of this model is to remind testers of what to think about when they are creating tests. Ultimately, it is intended to be customized and used to facilitate dialog and direct self-learning among professional testers. Project Environment includes resources, constraints, and other elements in the project that may enable or hobble our testing. Sometimes a tester must challenge constraints, and sometimes accept them. Product Elements are things that you intend to test. Software is complex and invisible. Take care to cover all of it that matters, not just the parts that are easy to see. Quality Criteria are the rules, values, and sources that allow you as a tester to determine if the product has problems. Quality criteria are multidimensional and often hidden or self-contradictory. Test Techniques are heuristics for creating tests. All techniques involve some sort of analysis of project environment, product elements, and quality criteria. Perceived Quality is the result of testing. You can never know the "actual" quality of a software product, but through the application of a variety of tests, you can make an informed assessment of it.
|1.1 Perceived Quality|
Perceived Quality is the result of testing. You can never know the "actual" quality of a software product, but through the application of a variety of tests, you can make an informed assessment of it.
|2 Test Techniques|
A test technique is a heuristic for creating tests. There are many interesting techniques. The list includes nine general techniques. By “general technique” we mean that the technique is simple and universal enough to apply to a wide variety of contexts. Many specific techniques are based on one or more of these nine. And an endless variety of specific test techniques may be constructed by combining one or more general techniques with coverage ideas from the other lists in this model.
|2.1 Functional Testing|
Test what it can do
|2.1.1 Identify things that the product can do (functions and subfunctions).|
|2.1.2 Determine how you’d know if a function was capable of working.|
|2.1.3 Test each function, one at a time.|
|2.1.4 See that each function does what it’s supposed to do and not what it isn’t supposed to do.|
|2.2 Domain Testing|
Divide and conquer the data
|2.2.1 Look for any data processed by the product. Look at outputs as well as inputs.|
|2.2.2 Decide which particular data to test with. Consider things like boundary values, typical values, convenient values, invalid values, or best representatives.|
|2.2.3 Consider combinations of data worth testing together.|
|2.3 Stress Testing|
Overwhelm the product
|2.3.1 Look for sub-systems and functions that are vulnerable to being overloaded or “broken” in the presence of challenging data or constrained resources.|
|2.3.2 Identify data and resources related to those sub-systems and functions.|
|2.3.3 Select or generate challenging data, or resource constraint conditions to test with: e.g., large or complex data structures, high loads, long test runs, many test cases, low memory conditions.|
|2.4 Flow Testing|
Do one thing after another
|2.4.1 Perform multiple activities connected end-to-end; for instance, conduct tours through a state model.|
|2.4.2 Don’t reset the system between actions.|
|2.4.3 Vary timing and sequencing, and try parallel threads.|
|2.5 Scenario Testing|
Test to a compelling story
|2.5.1 Begin by thinking about everything going on around the product.|
|2.5.2 Design tests that involve meaningful and complex interactions with the product.|
|2.5.3 A good scenario test is a compelling story of how someone who matters might do something that matters with the product.|
|2.6 Claims Testing|
Challenge every claim
|2.6.1 Identify reference materials that include claims about the product (implicit or explicit). Consider SLAs, EULAs, advertisements, specifications, help text, manuals, etc.|
|2.6.2 Analyze individual claims, and clarify vague claims.|
|2.6.3 Test the veracity of each claim about the product.|
|2.6.4 If you’re testing from an explicit specification, expect it and the product to be brought into alignment.|
|2.7 User Testing|
Involve the users
|2.7.1 Identify categories and roles of users.|
|2.7.2 Determine what each category of user will do (use cases), how they will do it, and what they value.|
|2.7.3 Get real user data, or bring real users in to test.|
|2.7.4 Otherwise, systematically simulate a user (be careful—it’s easy to think you’re like a user even when you’re not).|
|2.7.5 Powerful user testing is that which involves a variety of users and user roles, not just one.|
|2.8 Risk Testing|
Imagine a problem, then look for it.
|2.8.1 What kinds of problems could the product have?|
|2.8.2 Which kinds matter most? Focus on those.|
|2.8.3 How would you detect them if they were there?|
|2.8.4 Make a list of interesting problems and design tests specifically to reveal them.|
|2.8.5 It may help to consult experts, design documentation, past bug reports, or apply risk heuristics.|
|2.9 Automatic Checking|
Check a million different facts
|2.9.1 Look for or develop tools that can perform a lot of actions and check a lot things.|
|2.9.2 Consider tools that partially automate test coverage.|
|2.9.3 Consider tools that partially automate oracles.|
|2.9.4 Consider automatic change detectors.|
|2.9.5 Consider automatic test data generators.|
|2.9.6 Consider tools that make human testing more powerful.|
|3 Quality Criteria Categories|
A quality criterion is some requirement that defines what the product should be. By thinking about different kinds of criteria, you will be better able to plan tests that discover important problems fast. Each of the items on this list can be thought of as a potential risk area. For each item below, determine if it is important to your project, then think how you would recognize if the product worked well or poorly in that regard.
Can it perform the required functions?
Will it work well and resist failure in all required situations?
|3.2.1 Robustness: the product continues to function over time without degradation, under reasonable conditions.|
|3.2.2 Error handling: the product resists failure in the case of errors, is graceful when it fails, and recovers readily.|
|3.2.3 Data Integrity: the data in the system is protected from loss or corruption.|
|3.2.4 Safety: the product will not fail in such a way as to harm life or property.|
How easy is it for a real user to use the product?
|3.3.1 Learnability: the operation of the product can be rapidly mastered by the intended user.|
|3.3.2 Operability: the product can be operated with minimum effort and fuss.|
|3.3.3 Accessibility: the product meets relevant accessibility standards and works with O/S accessibility features.|
How appealing is the product?
|3.4.1 Aesthetics: the product appeals to the senses.|
|3.4.2 Uniqueness: the product is new or special in some way.|
|3.4.3 Necessity: the product possesses the capabilities that users expect from it.|
|3.4.4 Usefulness: the product solves a problem that matters, and solves it well.|
|3.4.5 Entrancement: users get hooked, have fun, are fully engaged when using the product.|
|3.4.6 Image: the product projects the desired impression of quality.|
How well is the product protected against unauthorized use or intrusion?
|3.5.1 Authentication: the ways in which the system verifies that a user is who he says he is.|
|3.5.2 Authorization: the rights that are granted to authenticated users at varying privilege levels.|
|3.5.3 Privacy: the ways in which customer or employee data is protected from unauthorized people.|
|3.5.4 Security holes: the ways in which the system cannot enforce security (e.g. social engineering vulnerabilities)|
How well does the deployment of the product scale up or down?
How well does it work with external components & configurations?
|3.7.1 Application Compatibility: the product works in conjunction with other software products.|
|3.7.2 Operating System Compatibility: the product works with a particular operating system.|
|3.7.3 Hardware Compatibility: the product works with particular hardware components and configurations.|
|3.7.4 Backward Compatibility: the products works with earlier versions of itself.|
|3.7.5 Resource Usage: the product doesn’t unnecessarily hog memory, storage, or other system resources|
How speedy and responsive is it?
How easily can it be installed onto its target platform(s)?
|3.9.1 System requirements: Does the product recognize if some necessary component is missing or insufficient?|
|3.9.2 Configuration: What parts of the system are affected by installation? Where are files and resources stored?|
|3.9.3 Uninstallation: When the product is uninstalled, is it removed cleanly?|
|3.9.4 Upgrades/patches: Can new modules or versions be added easily? Do they respect the existing configuration?|
|3.9.5 Administration: Is installation a process that is handled by special personnel, or on a special schedule?|
How well can we create, test, and modify it?
|3.10.1 Supportability: How economical will it be to provide support to users of the product?|
|3.10.2 Testability: How effectively can the product be tested?|
|3.10.3 Maintainability: How economical is it to build, fix or enhance the product?|
|3.10.4 Portability: How economical will it be to port or reuse the technology elsewhere?|
|3.10.5 Localizability: How economical will it be to adapt the product for other places?|
|4 Project Environment|
Creating and executing tests is the heart of the test project. However, there are many factors in the project environment that are critical to your decision about what particular tests to create. In each category, below, consider how that factor may help or hinder your test design process. Try to exploit every resource.
Your purpose on this project, as understood by you and your customers.
|4.1.1 Do you know who your customers are? Whose opinions matter? Who benefits or suffers from the work you do?|
|4.1.2 Do you know what your customers expect of you on this project? Do you agree?|
|4.1.3 Maybe your customers have strong ideas about what tests you should create and run.|
|4.1.4 Maybe they have conflicting expectations. You may have to help identify and resolve those.|
Information about the product or project that is needed for testing.
|4.2.1 Whom can we consult with to learn about this project?|
|4.2.2 Are there any engineering documents available? User manuals? Web-based materials? Specs? User stories?|
|4.2.3 Does this product have a history? Old problems that were fixed or deferred? Pattern of customer complaints?|
|4.2.4 Is your information current? How are you apprised of new or changing information?|
|4.2.5 Are there any comparable products or projects from which we can glean important information?|
|4.3 Developer Relations|
How you get along with the programmers.
|4.3.1 Hubris: Does the development team seem overconfident about any aspect of the product?|
|4.3.2 Defensiveness: Is there any part of the product the developers seem strangely opposed to having tested?|
|4.3.3 Rapport: Have you developed a friendly working relationship with the programmers?|
|4.3.4 Feedback loop: Can you communicate quickly, on demand, with the programmers?|
|4.3.5 Feedback: What do the developers think of your test strategy?|
|4.4 Test Team|
Anyone who will perform or support testing.
|4.4.1 Do you know who will be testing? Do you have enough people?|
|4.4.2 Are there people not on the “test team” that might be able to help? People who’ve tested similar products before and might|
|4.4.3 have advice? Writers? Users? Programmers?|
|4.4.4 Are there particular test techniques that the team has special skill or motivation to perform?|
|4.4.5 Is any training needed? Is any available?|
|4.4.6 Who is co-located and who is elsewhere? Will time zones be a problem?|
|4.5 Equipment & Tools|
Hardware, software, or documents required to administer testing.
|4.5.1 Hardware: Do we have all the equipment you need to execute the tests? Is it set up and ready to go?|
|4.5.2 Automation: Are any test tools needed? Are they available?|
|4.5.3 Probes: Are any tools needed to aid in the observation of the product under test?|
|4.5.4 Matrices & Checklists: Are any documents needed to track or record the progress of testing?|
The sequence, duration, and synchronization of project events
|4.6.1 Test Design: How much time do you have? Are there tests better to create later than sooner?|
|4.6.2 Test Execution: When will tests be executed? Are some tests executed repeatedly, say, for regression purposes?|
|4.6.3 Development: When will builds be available for testing, features added, code frozen, etc.?|
|4.6.4 Documentation: When will the user documentation be available for review?|
|4.7 Test Items|
The product to be tested.
|4.7.1 Scope: What parts of the product are and are not within the scope of your testing responsibility?|
|4.7.2 Availability: Do you have the product to test? Do you have test platforms available? When do you get new builds?|
|4.7.3 Volatility: Is the product constantly changing? What will be the need for retesting?|
|4.7.4 New Stuff: What has recently been changed or added in the product?|
|4.7.5 Testability: Is the product functional and reliable enough that you can effectively test it?|
|4.7.6 Future Releases: What part of your tests, if any, must be designed to apply to future releases of the product?|
The observable products of the test project.
|4.8.1 Content: What sort of reports will you have to make? Will you share your working notes, or just the end results?|
|4.8.2 Purpose: Are your deliverables provided as part of the product? Does anyone else have to run your tests?|
|4.8.3 Standards: Is there a particular test documentation standard you’re supposed to follow?|
|4.8.4 Media: How will you record and communicate your reports?|
|5 Product Elements|
Ultimately a product is an experience or solution provided to a customer. Products have many dimensions. So, to test well, we must examine those dimensions. Each category, listed below, represents an important and unique aspect of a product. Testers who focus on only a few of these are likely to miss important bugs.
Everything that comprises the physical product.
|5.1.1 Code: the code structures that comprise the product, from executables to individual routines.|
|5.1.2 Hardware: any hardware component that is integral to the product.|
|5.1.3 Non-executable files: any files other than multimedia or programs, like text files, sample data, or help files.|
|5.1.4 Collateral: anything beyond software and hardware that is also part of the product, such as paper documents, web links and content, packaging, license agreements, etc.|
Everything that the product does.
|5.2.1 Application: any function that defines or distinguishes the product or fulfills core requirements.|
|5.2.2 Calculation: any arithmetic function or arithmetic operations embedded in other functions.|
|5.2.3 Time-related: time-out settings; daily or month-end reports; nightly batch jobs; time zones; business holidays; interest calculations; terms and warranty periods; chronograph functions.|
|5.2.4 Transformations: functions that modify or transform something (e.g. setting fonts, inserting clip art, withdrawing money from account).|
|5.2.5 Startup/Shutdown: each method and interface for invocation and initialization as well as exiting the product.|
|5.2.6 Multimedia: sounds, bitmaps, videos, or any graphical display embedded in the product.|
|5.2.7 Error Handling: any functions that detect and recover from errors, including all error messages.|
|5.2.8 Interactions: any interactions between functions within the product.|
|5.2.9 Testability: any functions provided to help test the product, such as diagnostics, log files, asserts, test menus, etc.|
Everything that the product processes.
|5.3.1 Input: any data that is processed by the product.|
|5.3.2 Output: any data that results from processing by the product.|
|5.3.3 Preset: any data that is supplied as part of the product, or otherwise built into it, such as prefabricated databases, default values, etc.|
|5.3.4 Persistent: any data that is stored internally and expected to persist over multiple operations. This includes modes or states of the product, such as options settings, view modes, contents of documents, etc.|
|5.3.5 Sequences/Combinations: any ordering or permutation of data, e.g. word order, sorted vs. unsorted data, order of tests.|
|5.3.6 Cardinality: Numbers of objects or fields may vary (e.g. zero, one, many, max, open limit). Some may have to be unique (e.g. database keys).|
|5.3.7 Big/Little: variations in the size and aggregation of data.|
|5.3.8 Noise: any data or state that is invalid, corrupted, or produced in an uncontrolled or incorrect fashion.|
|5.3.9 Lifecycle: transformations over the lifetime of a data entity as it is created, accessed, modified, and deleted|
Every conduit by which the product is accessed or expressed.
|5.4.1 User Interfaces: any element that mediates the exchange of data with the user (e.g. displays, buttons, fields, whether physical or virtual).|
|5.4.2 System Interfaces: any interface with something other than a user, such as other programs, hard disk, network, etc.|
|5.4.3 API/SDK: Any programmatic interfaces or tools intended to allow the development of new applications using this product.|
|5.4.4 Import/export: any functions that package data for use by a different product, or interpret data from a different product.|
Everything on which the product depends (and that is outside your project).
|5.5.1 External Hardware: hardware components and configurations that are not part of the shipping product, but are required (or optional) in order for the product to work: systems, servers, memory, keyboards, the Cloud.|
|5.5.2 External Software: software components and configurations that are not a part of the shipping product, but are required (or optional) in order for the product to work: operating systems, concurrently executing applications, drivers, fonts, etc.|
|5.5.3 Internal Components: libraries and other components that are embedded in your product but are produced outside your project.|
How the product will be used.
|5.6.1 Users: the attributes of the various kinds of users.|
|5.6.2 Environment: the physical environment in which the product operates, including such elements as noise, light, and distractions.|
|5.6.3 Common Use: patterns and sequences of input that the product will typically encounter. This varies by user.|
|5.6.4 Disfavored Use: patterns of input produced by ignorant, mistaken, careless or malicious use.|
|5.6.5 Extreme Use: challenging patterns and sequences of input that are consistent with the intended use of the product.|
Any relationship between the product and time.
|5.7.1 Input/Output: when input is provided, when output created, and any timing relationships (delays, intervals, etc.) among them.|
|5.7.2 Fast/Slow: testing with “fast” or “slow” input; fastest and slowest; combinations of fast and slow.|
|5.7.3 Changing Rates: speeding up and slowing down (spikes, bursts, hangs, bottlenecks, interruptions).|
|5.7.4 Concurrency: more than one thing happening at once (multi-user, time-sharing, threads, and semaphores, shared data).|