Perspectives of Software Quality
Software Quality Attributes
Two programs can offer exactly the same features and still differ enormously in value: one answers in a tenth of a second and stays up for months, the other stalls under load and takes a day to patch. A quality attribute is a property that describes how well a system serves its stakeholders, such as how fast, dependable, secure or changeable it is, beyond which functions it offers. You meet quality attributes whenever you write non-functional requirements, compare architectures or decide what a test plan must check besides correct outputs.
Several perspectives, one model
Quality looks different depending on who judges it. Users take a user view: is the software fit for their purpose? Developers and testers often take a manufacturing view: does it conform to its specification? A product view looks at internal properties such as structure and complexity, a value-based view weighs quality against what stakeholders will pay for it, and a transcendent view treats quality as something people recognise but struggle to define. These perspectives, described by David Garvin and widely used in software engineering, explain why arguments about quality stall: each side is measuring a different thing.
Quality models resolve this by naming the attributes explicitly. The ISO/IEC 25010 product quality model (2011 edition) groups them into eight characteristics, each refined into subcharacteristics that can be measured.
Characteristic | Question it answers | Example measure |
|---|---|---|
Functional suitability | Does it do the right things correctly? | Share of specified functions that pass acceptance tests |
Performance efficiency | How fast, and at what resource cost? | 95th-percentile response time; CPU time per request |
Compatibility | Can it coexist and exchange data with other systems? | Share of partner API calls exchanged successfully |
Usability | Can intended users reach their goals? | Task completion rate in a usability test |
Reliability | Does it keep working and recover after failures? | Availability; mean time between failures |
Security | Is access limited to what each party is authorised for? | Number of critical vulnerabilities open past deadline |
Maintainability | How easily can it be changed? | Average effort to implement a typical change |
Portability | Can it move to another environment? | Effort to deploy on a new platform |
The 2023 revision keeps the same idea but renames usability to interaction capability and portability to flexibility, and adds safety as a ninth characteristic.
Writing an attribute as a testable requirement
An attribute guides design and testing only once it is stated as a measurable requirement. "The system shall be fast" gives a tester nothing to check. A usable statement names the stimulus, the conditions and a response measure, so state the measure, the threshold and the conditions together.
Example: "With 2,000 concurrent users on the production configuration, 95% of search requests complete within 400 ms." This specifies the time-behaviour part of performance efficiency, and a load test can pass or fail it.
Attributes also trade off. Encrypting every internal call improves security but adds latency; adding a server replica improves availability but adds components to maintain and secure. Making each attribute measurable lets a team see what a design change costs elsewhere.
Measuring availability
Reliability is one of the most quantitative characteristics. Its subcharacteristic availability is the fraction of time a system is operational and accessible when required. For a repairable system that alternates between operating and being repaired, availability follows from two averages: the MTBF and the MTTR.
Example: A message broker has an MTBF of 120 h and an MTTR of 0.5 h. Its availability is 120/120.5=0.99585, or about 99.59%. Over a 365-day year of 8760 h, the expected downtime is (1−A)×8760≈36.3 h.
The formula shows two routes to higher availability: fail less often, which raises MTBF, or recover faster, which lowers MTTR. Fault tolerance works on the first route; automated failover and good diagnostics work on the second.
What to remember
- A quality attribute describes how well a system works, not which functions it has; different stakeholders weight different attributes.
- ISO/IEC 25010 (2011) names eight product characteristics: functional suitability, performance efficiency, compatibility, usability, reliability, security, maintainability and portability.
- A useful quality requirement states the measure, the threshold and the conditions, so it can be tested.
- Availability is A=MTBF/(MTBF+MTTR), and downtime over a period is (1−A) times that period.
- Attributes trade off, so improving one can cost another.
Example: Availability of a ticket-booking service
A ticket-booking service is monitored for a 30-day month, which is 720 h. It fails 4 times, and the outages last 1.0 h, 2.5 h, 0.5 h and 2.0 h. Treat each outage as one failure followed by one repair, and use MTBF to mean the average uptime between failures.
a) Find the MTTR and the MTBF for the month.
Add the four outages to get the total downtime: 1.0 + 2.5 + 0.5 + 2.0 = ________. MTTR is the average repair time per failure.
The service was up for 720 − 6.0 = ________ of the month. Dividing total uptime by the number of failures is the standard estimate of MTBF, even though the first and last uptime periods of the month are partial.
So MTTR = 1.5 h and MTBF = 178.5 h.
b) Find the availability for the month as a percentage to two decimal places, and check it against the fraction of the month the service was up.
The denominator, one average cycle of uptime plus repair, is ________, which matches 720 h divided by 4 failures.
As a check, the uptime fraction is 714/720=0.991667, the same value, because both describe the share of the month spent operating. The availability is 99.17%.
c) The product owner sets a target of 99.9% availability. If the service still fails 4 times a month, what is the largest MTTR, in minutes, that meets the target?
A 99.9% target allows the service to be down for 0.1% of the month: (1 − 0.999) × 720 h = ________, which is ________.
The current MTTR is 1.5 h, or 90 min, so recovery must become more than eight times faster. The largest MTTR that meets the target is 10.8 min.
d) Instead, the team keeps MTTR at 1.5 h and halves the number of failures to 2 per month. Find the new availability to two decimal places and decide whether it meets the 99.9% target.
With 2 failures of 1.5 h each, the downtime is ________, leaving 717 h of uptime.
The new availability is 99.58%, still below 99.9%. Even a single 1.5 h outage per month gives 718.5/720=99.79%, still short of the target. Meeting 99.9% with a 1.5 h MTTR would need an MTBF of at least 1498.5 h, fewer than one failure every two months. At anything near the current failure rate, the practical lever is lowering MTTR, for example with automated failover.
A quality perspective is a basis for judging what makes software good. Match each perspective to the assessment that best illustrates it. Focus on the stated basis for judgment, rather than the assessor's job title.
A buyer judges whether the benefits of a subscription justify its price compared with available alternatives.
An architect evaluates inherent code structure using measurements of dependencies between modules.
A reviewer recognizes exceptional overall excellence but cannot express a precise measurement rule for that judgment.
An acceptance team judges whether the delivered system conforms to its agreed specification.
A receptionist judges whether an appointment system supports the booking tasks needed during actual shifts.
Manufacturing view
Product view
User view
Value-based view
Transcendental view
A requirements document for a hospital scheduling system contains this statement: "If the primary database server fails, the system shall restore full scheduling service within 5 minutes without losing confirmed appointments." Which ISO/IEC 25010 product quality characteristic does this requirement primarily specify?