Testability General Scenario
Explanation
Section titled “Explanation”A testability scenario describes one concrete situation in which someone tests a system. The general scenario is the template behind it. For the wider ideas, see the articles Quality Attribute Scenario and Testability.
Source. The source of the test activity can be a human tester or an automated tester.
Environment. This is the setting in which testing happens. It can include the test harness or the test environments in use. A test harness is the tooling that runs tests and collects results.
Response. The system can be controlled so that the desired tests run. The results of those tests can be observed. This links to the tactic of controlling and observing system state. See Integrability, Deployability, Testability and Reliability Tactics.
Response measure. Measures show how easily the system under test gives up its faults. Two examples:
- The effort needed to test a given percentage of statements.
- The reduction in risk from remaining errors. This fits because faults differ in their possible impact.
Writing a scenario with these parts turns a vague wish (“the system should be testable”) into a statement a team can check.
Example
Section titled “Example”A team writes a scenario for a billing service. An automated tester runs tests against the service in a test environment with a harness. The team can put the service into the needed state and read the results. The measure is the effort needed to test a chosen percentage of statements. If that effort is too high, the team looks for ways to control and observe the service’s state more easily.
Trade-offs
Section titled “Trade-offs”The available facts do not describe costs or conflicts with other qualities. Choose measures with care. Effort per tested statement is simple to count. Risk reduction needs a judgment about how serious each remaining fault could be, because faults are not all equal in impact.
Checks
Section titled “Checks”- Each testability scenario names whether the source is a human or an automated tester.
- The scenario states how the system is controlled to run tests and how results are observed.
- The scenario names the test harness or test environment where relevant.
- The scenario has a response measure, such as effort to test a given percentage of statements.
Related
Section titled “Related”- Testability
- Quality Attribute Scenario
- Integrability, Deployability, Testability and Reliability Tactics
- Architectural Tactic
- arc42 Quality Requirements
- Availability Scenario
Sources
Section titled “Sources”- Testability | Learning — hanfak.gitbook.io, accessed 2026-11-09