Fit Criteria and Rationale
Why do we need to measure? Remember when you bought your phone? One of the factors you considered was its storage capacity—you needed one with enough storage. When you went to the phone shop or went online, “enough storage” was not listed as an attribute of any of the phones on offer. However, “enough storage” is one of your requirements. Storage costs money, so you don’t splash out and buy the largest capacity they have. Instead, you calculate how big your photo and video collection is, how much music you want to hold in the phone, how many apps you have and their data amounts, and so on. From all of this you arrive at a number, and let’s say the number is 512GB. So now you go looking for a phone with 512GB of storage, as this fits your requirement .
Note what happened. Without thinking too much about it, you converted an imprecise requirement, “enough storage,” into a precise requirement, 512GB. This precision enabled you to go forward with your purchase .
Another requirement is that you don’t want to spend too much money on the phone; you have plenty of other things to do with your money. Here we have numbers again—you are willing to spend, say, 500 dollars/pounds/euros, and so look for these numbers displayed alongside the phones. Nobody lists the phone as costing “not too much money.” Once again, you translate a human requirement into numbers .
That was easy. Let’s be a little more ambitious. Let’s for an enjoyable moment say that a proverbial rich uncle has bequeathed you a considerable amount of money, and you and your partner decide to use the money to build your dream house. You purchase a block of land and hire a well-regarded architect .
You now have to turn your needs into numbers. You have lots of friends, so “A kitchen big enough to cook for my friends” needs to be converted to measurements (as does the dining space). How much space do you need between the center island and the cooktop? You don’t want to take too many steps between the two, but you want your partner to be able to walk behind you without having to squeeze through. (Squeezing your partner should probably be left until after dinner and the guests have departed.)
You want a pantry cupboard “big enough to hold the spice collection; the bottles of vinegars, oils, and sauces; other ingredients, and a week’s supply of food.” This has to be converted to measurements. As does the wine cellar where your newfound wine collection is to be stored (Uncle Albert left you his extensive wine collection along with the money) .
Figure 27.1
Architects’ plans naturally include detailed measurements to ensure that construction is done to match the requirements.
It is the architect’s task here to find out what you need, and to develop precise plans with measurements so that the builders build exactly the house for you. See Figure 27.1 . Unless they have precise measurements, the builders will build what they imagine you want or what they feel like building. Additionally, if they do not build exactly to the measurements, there is a possibility of running afoul of local construction codes and having to demolish and rebuild .
This is analogous to what happens in software construction. Unless you hand over a precise measurement of how you intend to measure the delivered product, the results are almost certain to be at best disappointing, and at worst a complete waste of time. The latter means you probably have to demolish and rebuild .
Architects use feet and inches or millimeters, but requirements can’t be measured that way. We need another way to measure, and this is the role of the fit criterion.
Why Does Fit Need a Criterion?
When you have a requirement for the product to perform some function or to have some property, the testing activity must demonstrate that the product does indeed perform that function or possess the desired property. To carry out such tests, the requirement must have a benchmark such that the testers can compare the delivered product with the original requirement. The benchmark is the fit criterion—a quantification of the requirement that demonstrates the standard that the product must reach.
“ The idea is for each requirement to have a quality measure that makes it possible to divide all solutions to the requirement into two classes: those for which we agree that they fit the requirement and those for which we agree that they do not fit the requirement. ”
—Christopher Alexander, Notes on the Synthesis of Form
You should also consider the builders of the product. It stands to reason that once they know the criterion for the product’s acceptance, they will build to that standard. If they are told their product will be used underwater, and the acceptance criterion is that the product must operate for as long as six months at a depth of 3,000 feet (900 m), then they are unlikely to deliver something with a sunroof (see Figure 27.2 ).
Figure 27.2
If they know the performance criterion that the product must meet before it is accepted, the builders will strive to build a product to meet that criterion.
Possibly the most challenging part of testing a requirement against an agreed-upon measurement is defining the appropriate measurement for the requirement. It is tricky, but certainly not impossible.
Let’s suppose that your stakeholder is inexperienced and asks for a product that is “user friendly.” This is an incredibly vague and overused phrase, and what it means to you is likely not the same thing as what it means to your stakeholder. However, once you can measure “user friendliness”—that is, put numbers against it—then you and the stakeholder are able to arrive at an identical understanding.
Additionally, the measurement of friendliness is passed along to the developers, who treat it as a benchmark. They now know how you and your stakeholder will test the delivered product: You will measure it against the fit criterion.
So how do you find a measurement for “user friendly”?
First, you need to understand the reason for the requirement. This is where the rationale comes into play. The rationale is the same as the “So that” part of a story. Please use whichever term you prefer. Ask the question, “What is the justification for this requirement?”, or as that seems a little formal, “Why do you have this requirement?”
Suppose that after some interrogation, your stakeholder reveals that as far as he is concerned, “a user-friendly product will be liked by the customers who are intended to use it.” A little more probing reveals that “liked by the customers” means they voluntarily change over to this new product, and don’t hesitate before using it.
Description: The product shall be user friendly.
Rationale: We need customers to voluntarily change to the new product, and not hesitate before using it.
This explanation gives us something to measure: the duration of hesitation before using the product, the time elapsed before complete adoption of it, or the user satisfaction level after a period of usage.
Fit Criterion: On average, customers commence using the product within five seconds of encountering it for the first time.
Or:
Fit Criterion: Eighty percent of customers are voluntarily using the product within six months of its release.
Or:
Fit Criterion: Customer surveys between six months and a year after launch give a satisfaction rating of greater than 75%.
Some of these criteria might seem a little expensive to test, but this is an important requirement. The rationale tells you that customers should start using the product voluntarily. If customers do not switch over to the new product, then the project is a failure. With a requirement this important, it is worth putting some effort into its development and testing.
All of this goes to say that to make it precise, a requirement cannot be just a text description. It also needs a rationale and a fit criterion to be complete.
A fit criterion and the acceptance criteria for a story are more or less the same thing. We’ll come back to acceptance criteria later.
The Rationale for the Rationale
Quite often, stakeholders tell you their perceived solution to the problem, rather than their real need.
The rationale is the reason, or justification, for a requirement. We have found that attaching a rationale to the requirement makes the real need become apparent. Quite often, stakeholders tell you their perceived solution to the problem, rather than their real need.
For example, suppose the dialogue with your client goes something like this:
“I need a screen to show me where all of my trucks are.”
You need a rationale for this. One approach is to ask why.
“So that when I get a request from one of my customers to pick up some goods and transport them, I can find the truck closest to the customer.”
“Why send the closest one? Could it be occupied at the time?”
“Well, yes, I need vacant truck.”
“What about the destination? Do all trucks go to all destinations?”
“No, some of them won’t go interstate. This is because of their license.”
“So can we say that the reason—the rationale—for this requirement is not to see all the trucks but to find the nearest available, suitable truck?”
“Yes, that’s really what I need.”
So now you have the requirement like this:
Description: The product shall assign the nearest available suitable truck to the customer.
Rationale: The truck should arrive at the customer’s location as soon as possible.
Finding the requirement’s rationale is the first step in discovering the real need. And discovering the real need is really the rationale for your job as a business analyst.
Sometimes, instead of giving you a solution as the supposed requirement, your stakeholder gives you a requirement that is so vague as to be (for the moment) unusable. In the example given previously, the client asked for a “user-friendly” product, but you could make sense of it when you learned that the rationale was that the project needed the users to readily adopt the product.
Suppose the rationale had been different. Say, instead of ready adoption, the client gave you a rationale that indicated a “user-friendly” product is so easy to use that its users make fewer errors than they do with the current product. The corresponding requirement has a different meaning, and the resultant fit criterion is completely different.
Description: The product shall be user-friendly.
Rationale: Users must find the new product easier to use than the current product so that they make fewer errors.
Fit criterion: The average error rate for all user input shall be less than 1.5%.
The rationale is not only a guide to help you find the fit criterion, but also a means to help you know when you have several different requirements masquerading as one. One stakeholder says “user friendly” means the product is pleasant to use, another says “user friendly” means the product is exciting, and yet another says a “user-friendly” product encourages users to make return visits to it. In this case, you have three different requirements, each with its own fit criterion that measures the desired property.
You must communicate a way to measure the requirement’s real meaning.
Additionally, the rationale provides the basis for making decisions about how to implement the requirement. Put yourself in the developers’ shoes: You usually must choose between several possible solutions, and if you understand the thinking underlying the requirement, you can come up with the most appropriate solution. Also, when you need to make trade-off decisions, it helps if you understand the relative importance of the requirement to the business, and the effect that it will have if the requirement is not correctly implemented.
Description: The product shall ensure that the buyer is connecting from an approved country.
Rationale: Some countries do not have copyright laws, and our suppliers prohibit us from selling into those countries.
Let’s not forget the testers’ need for a coherent rationale. There are many ways to design tests for requirements’ fit criteria, some of which involve much more time and expense than others. A tester needs to understand the reason for a requirement if she is to make the best decision about where to spend testing time and money. We have more to say about testing in Chapter 36 , Quality Thinking .
Later, when a product is being used and maintained, the rationale still has a vital role. You can work out what a software product is doing by reading the code and observing the people who use it. But suppose you need to make a change to a product: If you do not understand why the product does what it does, you reduce the odds that you will make the correct change and increase the odds that your changes will corrupt some related but distant part of the product—the ripple effect. The problems that arise from a lack of understanding of the rationale partly explain why software maintenance is so time-consuming and expensive.
The rationale is the cognitive thread that connects your customer’s business and the delivered product. It is through knowing why something exists that the business analyst/product owner is able to discover the correct statement of need and the developers are able to construct the correct product.
When asking stakeholders for their rationale for a requirement, you might appear to be like the child constantly asking a parent, “Why?” So be it—that is the role of the requirements analyst. You have to ask why, and keep on asking why, until you get to the real reason for the requirement. But you haven’t finished yet, because you still have to pass along a way to measure the requirement’s real meaning. That is why you derive its fit criterion.
Finding Fit Criteria
To find an appropriate fit criterion, start by analyzing the description and rationale you have established for the requirement.
Description: The product shall make it easy for a buyer to find his chosen music.
Rationale: Music buyers are familiar with the internet and are accustomed to convenience and fast response times. They will not tolerate slow or awkward searches for their chosen music.
The rationale tells you that the requirement is about speed—which is fairly easy to quantify—and awkwardness—which is about complexity and perceived ease. For the speed component, imposing a time limit for a search is appropriate. Suppose your market research personnel tell you 9 seconds is the limit of the target audience’s tolerance; to be better than the competition, you are aiming for 6 seconds for your own product. Keep in mind that this is measuring the customer’s actions, not the time taken to search the catalog.
In terms of “awkwardness” mentioned in the rationale, your ergonomics people and market research both say that buyers must be able to find a wanted piece of music in no more than three actions (an action here means a click, a gesture, a menu selection, voice command, or some other conscious action on the user’s part).
Your measurement for these, expressed as a fit criterion, is this:
Fit Criterion: An average music buyer shall be able to locate any piece of music within 6 seconds, using no more than three actions.
Note that the time limit of 6 seconds also directs the designer to make it obvious to the music buyer what has to be done to find the music. A limit of 6 seconds means that there is very little time for hesitating and figuring out what to do next.
If you can’t measure a requirement, it is not really a requirement.
Some fit criteria may, at first, be unattainable because of business or real-life constraints. In other cases, your client may not be willing to spend the amount required for the implementation to meet the criterion. Thus, sometimes you might negotiate an adjustment to the fit criterion so that it allows for the product’s operating environment, the intended usage, and the client’s budget. Think of these adjustments as business tolerances. As you are certain that some of the intended users of the product will be below-average performers, you would adjust the fit criterion to read as follows:
Fit Criterion: Ninety percent of music buyers shall be able to locate any piece of music within 6 seconds, using no more than three actions.
Scale of Measurement
Any requirement can be measured. All you have to do is find a suitable scale with which to measure it.
The scale of measurement is the unit you use to test the conformance of the solution to its requirement. Take, for example, a usability requirement. You can measure the time needed to learn a product, or the time taken before achieving a particular level of competence, or perhaps even the error rate of the work done using the product.
You can measure anything.
Scales of measurement exist for all non-functional requirements. Performance requirements can be measured by time taken or availability percentages. Compliance requirements can be measured against the relevant laws and regulations. Look and feel requirements can be measured by conformance to preexisting corporate branding standards. Operational requirements can be measured by the accuracy and exchange speeds between processors in the operating environment. Cultural requirements, because they have to do with human acceptance, are usually measured by acceptance from marketing and customer relations.
So far, the only thing that we have not been able to find a scale of measurement for is love. We cannot find any way of measuring how much you love someone. Readers are welcome to send suggestions.
Fit Criteria for Non-functional Requirements
A non-functional requirement is a quality that the product must have, such as usability, look and feel, performance, and so on. The fit criterion is, therefore, a measure of that quality. Here we examine fit criteria for all the different types of non-functional requirements.
Let’s look at an example. Your authors came across this requirement for a consumer electronics product aimed at a teenage market:
Description: The product shall be cool.
Even vague, ambiguous requirements can be measured.
This requirement at first sight might seem hopeless and unable to be measured; there is no deterministic scale of coolness. If you look a little bit more closely, however, you find that “cool” is a term often used to mean “something that is desirable or impressive to have, or to be.”
When we asked why the product had to be “cool,” we were given a rationale that consumers had to be attracted to the product, and to want to own one and be seen to own it. To satisfy this need, we had to first measure the product’s attractiveness to its intended audience. The first attempt at a fit criterion was this:
Fit Criterion: Forty percent of the people who see the product on display in a store pick it up.
Naturally, you would not go live with the real product and see if it met the test; you would follow the lead of most electronics companies and test mock-ups with representative groups of the target audience.
We improved the fit criterion to this:
Fit Criterion: Forty percent of the target audience who see the product on display in the store pick it up and hold it for at least 5 seconds.
We also felt that if the person who had picked up the product showed it to someone else, it indicated that she felt that the product was desirable. The “Hey, look at this” gesture indicated the value she put on the product. Thus:
Fit Criterion: Forty percent of the target audience who see the product on display in a store pick it up, hold it for at least 5 seconds, and show it to a companion (if one is present).
Of course, an even better fit criterion would have been a measure of whether people actually bought the product, but given the target market, we had to take into consideration the fact that not everyone would be able to afford it. Therefore, simply picking up, holding, and showing the product was seen as the first test of how desirable it was, or how envious nonowners would be. The client called this the product’s coolness.
Of course, “coolness” must go beyond the store display. We needed to add other requirements that specified how convenient the product was to use. Clearly, a cool product must be very convenient—cool—to use.
Earlier in this chapter, you saw an example of a requirement that specified a “user-friendly” product; the client said that “user friendly” meant the staff liked it. You can measure “like”: If the staff likes the product, they will use it. You can measure how quickly they start using it, how much they use it, or how soon word gets around that the product is good and users encourage one another to use it. All of these criteria quantify the client’s desire that the staff like the product and use it (see Figure 27.3 ).
Figure 27.3
You can measure your users’ liking for a product by surveying their work practices before and after the product is introduced, by measuring how long it takes them to start using the product once it is available, or by surveying them after a period of use to ascertain their liking for the product.
You could write a fit criterion like this:
Fit Criterion: Within three months of introducing the product, 60% of the users shall be using it to carry out the agreed-upon work. From those users, the product shall receive a 75% or more approval rating.
Note how you clarify the requirement when you add its fit criterion. By negotiating a measurement, you transform the requirement from a vague and somewhat ambiguous intention into a fully formed, testable requirement.
You will find that it is usually not possible to get the complete, measurable requirement from your first interview. Indeed, it is highly unlikely that your stakeholders will express themselves in such precise terms. We suggest you go with the flow; don’t slow down your requirements-discovery processes to make the requirement measurable, but rather get the stakeholders’ intention—you write this as the description—and the rationale. Then, analyze your understanding, write your own best interpretation of the fit criterion, and improve it by discussing it with your stakeholder. You both need to agree that your proposed fit criterion is an accurate measurement of the requirement.
Product Failure
The fit criterion might be determined by asking your stakeholder, “What would you consider a failure to meet this requirement?” Suppose you have this requirement:
Description: The product must produce the road deicing schedule within an acceptable time.
Clearly, the scale of measurement here is time. Your client can tell you how much time she thinks would constitute a failure. For example, the client would consider the product unacceptable if the engineer has to wait more than 15 seconds for the schedule to become available. This means you have the following fit criterion, with suitable business tolerances applied:
Fit Criterion: The road deicing schedule shall be available to an engineer within 15 seconds of the request being made for 90% of the times that it is produced. It shall never take longer than 20 seconds.
Sometimes, however, you may discover there is no agreement on a quality measure, and hence there can be no fit criterion. In these circumstances, it is probable that the original requirement is not really a requirement. Perhaps several requirements have been lumped together into one requirement; in this case, each of the sub-requirements would then have its own measurement.
Alternatively, perhaps the requirement is so vague, and its intention so unrealistic, that it is not possible to know whether it has been satisfied. For example, there is no possible fit criterion for this requirement, and so it must be rejected:
Description: I want a product my grandmother would have liked if she were alive today.
Subjective Tests
Some requirements have to be tested using subjective tests. For example, if a cultural requirement for a product to be used in the public domain is “not offensive to any group,” then the fit criterion must be along these lines:
Fit Criterion: The product shall not be offensive to at least 85% of a test panel representing the makeup of the people likely to encounter the product. No more than 10% of the interest groups represented in the panel shall report that they felt offended.
The business tolerance here allows for the fact that you cannot count on 100% of humans passing any test. In this case, the business tolerances shield the product from the lunatic-fringe extreme views, while at the same time allowing “offensive” to be measured.
Although fit criteria are measures of the product’s performance, it is sometimes more cost-effective to test prototypes built specifically for the purpose.
For this kind of testing, it is usually more cost-effective to test prototypes or simulations built specifically for the purpose than to test the delivered product itself. You would hate to put in the effort to build the real thing and then find your audience thought it offensive.
You can use subjective tests for your fit criteria, but the numbers you use in fit criteria are not subjective. Suppose you have a fit criterion of “reduce the time to perform [some task] by 25% of the current time.” This means that the current time must be known and documented, not just guessed. The reason for the target of a 25% reduction must be well-understood and agreed to by the client, and not just your subjective feeling as to what is acceptable. The reasoning behind wanting 25% —and not 20% or 30% —should be backed by empirical data taken from a study of the business.
Standards
Sometimes numbers are not appropriate, or you can create a better fit criterion by citing a standard. For example, the requirement mentioned earlier that the product is “not offensive to any group” could be handled by citing your organization’s standards of conduct. Alternatively, your communications department might have standards for what is and what is not allowed to be said or displayed for public consumption. By citing that the product must comply with that standard, you are in effect setting the benchmark for lack of offensiveness.
Sometimes other standards may apply to the kinds of products you might be developing. As an example, the ISO 9241-11:2018 standard covers the ergonomics of human interactions with computer systems. A short glance at the ISO list of standards reveals many others that you might cite in your fit criteria.
Compliance requirements have a built-in standard: the law. You could cite the appropriate law as your fit criterion, but as it is likely to be unfathomable to you and your development team, the simple approach is to allow your legal department to give their opinion that the solution matches the standard of the law.
Let’s look at each type of non-functional requirement and consider how you might write the appropriate fit criterion.
Look and Feel Requirements
Look and feel requirements specify the spirit, mood, or style of the product’s appearance and behavior, and the impression the user gets when using the product. Additionally, many companies require their products to be cloaked in company colors. The rationale for this requirement is either adherence to branding standards or a desire to enhance customer recognition. These two points are slightly different, however.
Let’s look at branding standards first. Your organization has a communications department, which is responsible for the branding standards. Thus, the fit criterion should specify the target standard and state who or what is to certify the product’s compliance.
Fit Criterion: The product shall be certified as complying with this year’s corporate branding standards by the head of communications.
Where the rationale is customer recognition, we suggest a fit criterion along these lines:
Fit Criterion: Sixty percent of the target audience will recognize the product as belonging to the corporation within 5 seconds of encountering it for the first time.
Look and feel requirements may start out as touchy-feely statements of intent. However, by determining the rationale and looking for its measurable aspects, you will always find a suitable fit criterion.
Usability and Humanity Requirements
Usability and humanity are the requirements for the customers’ experience when using the product—in other words, the fitness for use by its intended users. Products are typically required to be easy to use, easy to learn, able to be used by certain types of users, and so on. To write the fit criterion for each of these requirements, you must find a measurement scale that quantifies the objective of the requirement.
Some examples:
Description: The product shall be intuitive.
To measure “intuitive,” you must consider the people to whom the product must be intuitive. In the road deicing example, you are told the users/actors are the road engineers; they have engineering degrees and meteorological experience.
Rationale: The road engineers must find it easy and intuitive; otherwise, they will not use it.
Now that you know this rationale, “intuitive” is much better defined.
Fit Criterion: A road engineer shall be able to produce a correct deicing forecast within 10 minutes of encountering the product for the first time, without reference to any out-of-product help.
Sometimes “intuitive” really means “easy to learn.” In this case, you ask how much time can be spent in training, and the resultant fit criterion might look like this:
Fit Criterion: Nine out of ten road engineers shall be able to successfully complete [list of selected tasks] after one day’s training.
Look for the real meaning of the requirement, and confirm it by having your stakeholders agree that your proposed fit criterion is the correct measurement of that meaning.
Fit criteria for usability requirements might also quantify the time allowed for given tasks, the error rates allowed (quantifying ease of use), the satisfaction rating awarded by the users, ratings given by usability laboratories, and so on. Look for the real meaning of the requirement, and confirm it by having your stakeholders agree that your proposed fit criterion is the correct measurement of that meaning.
Description: The product shall be pleasant to use.
Rationale: We want people to enjoy using it so that they continue to visit our site.
Fit Criterion: Seventy percent of a representative test panel return to our site more frequently than they do to the 10 other similar sites available to them.
Accessibility requirements specify how easy it should be for people with common disabilities to access the product. This could result in a fit criterion like this:
Fit Criterion: The product shall be certified to be in compliance with the Americans with Disabilities Act (ADA).
It may also be necessary to specify the relevant parts of the act and the body responsible for certifying compliance.
Performance Requirements
Most of the time, your performance requirements will be easy to quantify; we tend to use numbers when we describe things such as speed, accuracy, capacity, availability, reliability, scalability, and similar characteristics of the product. Typically, then, the nature of the performance requirements will suggest a measurement scale. Let us look at some examples.
Suppose you have this requirement:
Description: The response shall be fast enough to avoid interrupting the user’s flow of thought.
The word “fast” indicates you should measure time. Here is a suggested fit criterion:
Fit Criterion: The response time shall be no more than 0.25 second for 95% of responses, and no more than 1 second for the remainder.
Similarly, the fit criterion for an availability requirement might be written as follows:
Fit Criterion: In the first three months of operation, the product shall be available for 98% of the time between 8 a.m. and 8 p.m.
A fit criterion may be shown as a range. This is particularly appropriate for performance requirements. For example:
Fit Criterion: The product shall allow for 30,000 downloads per hour, although 50,000 per hour is preferred.
The point of using a range is to deter the developers from constructing a product that could be overly expensive, and to make the best design trade-offs to fit the budget and design constraints.
If the requirement is given to you in correctly quantified terms, then the fit criterion and the requirement are the same.
As most performance requirements are themselves quantified, it should be straightforward to write appropriate fit criteria. If the requirement is given to you in correctly quantified terms, then the fit criterion and the description of the requirement are the same. In that case, write one or the other.
Operational and Environmental Requirements
Operational requirements specify the environment in which the product will operate. In some cases, the product must be used in adverse or unusual conditions. Recall our example from the road treatment solution:
Description: The product shall be used in and around trucks at night, and during rainstorms, snow, and freezing conditions.
The fit criterion for an operational requirement is a quantification of the successful usage in the required environment. For this operational requirement, its fit criterion quantifies the ability of the product to withstand the conditions. For example:
Fit Criterion: The operator shall successfully complete [list of tasks] within [time allowed] in a simulation of a five-year storm, 1 and the product shall function correctly after 24 hours’ exposure.
FOOTNOTE 1
This is an accepted quantification of meteorological conditions. It means that (theoretically) you experience this severity of storm once every five years. Unfortunately, climate change means that five-year storms now happen more frequently.
Operational conditions may also specify that the product must coexist with partner, or collaborating, systems. The fit criterion in this case will cite the specification of the partner system or the way to communicate with the partner:
Fit Criterion: The interfaces to the Rosa Weather Station shall be certified as complying with the National Transportation Communication ITS Protocol (NTC/IP).
This criterion is testable—by engineers from NTC—and points the product’s builders toward a known and accepted standard.
Additionally, most things in your operating infrastructure have standards. For instance:
Fit Criterion: The product must comply with HTML Living Standard 2024.
Maintainability and Support Requirements
Maintainability requirements specify expectations about the maintenance of the product. Usually, the fit criteria for these requirements quantify the amount of time allowed to make certain changes. This is not to say that all maintenance changes can be anticipated, but where changes are expected, it is possible to quantify the time allowed to adopt those changes.
Fit Criterion: All functionality must be migrated to the new website with no more than 10 minutes of unavailability of the site.
Security Requirements
Security is too important to be left to the whims or the goodwill of the developers. Your organization probably has some security standards in place, either specific to the industry or specific to your type of product. Alternatively, you might make use of existing international standards. For example:
Description: The product shall comply with ISO/IEC 27002:2022.
Fit Criterion: The product shall be certified as complying by an appointed certification body that is compliant with ISO 17021.
The example is very general, and you might need more detailed requirements. However, the point is that the fit criterion ensures that your security requirement is testable.
We treat access as part of security. Here you might write your fit criterion for an access requirement in the form of a table. The table would show the roles or names of authorized people, together with the type of access (read/add/change/delete) each is allowed.
Cultural Requirements
Cultural requirements, by their nature, are subjective and slightly more difficult to quantify. The fit criterion is usually based on who or what will certify the product’s acceptability.
Description: The product shall not display religious symbols or words associated with mainstream religions.
Fit Criterion: The communications department shall give the opinion that the product displays no words or symbols that could be construed as religious.
In almost all cases, your communications or HR department can be considered to be the authority when dealing with cultural issues. This fit criterion is a general-purpose one that could be included in most specifications:
Description: The product shall not discriminate against any segment of society.
Fit Criterion: The communications department/HR shall certify that the product is culturally acceptable for all segments of the target audience.
Compliance Requirements
Compliance requirements specify which laws the product must conform to. As a result, this fit criterion applies to most compliance requirements:
Fit Criterion: Your client will win a court case brought by someone who uses your solution.
However, fit criteria must be able to be tested in a cost-effective manner, and court cases are too expensive to be indulged in lightly. Thus, the majority of fit criteria will be along the following lines:
Fit Criterion: The legal department/company lawyers shall certify that the product complies with the [appropriate laws].
A compliance requirement that applies to almost anything you do is GDPR (General Data Protection Regulation). This originated with the European Union, and it applies to all member countries and to all organizations doing business within the EU. GDPR is considered to be the gold standard for data protection, and as such it has been adopted, either wholly or in a slightly modified state, by many other countries and states. Just one example: the California Consumer Privacy Act (CCPA) has many similarities with the GDPR.
The requirement would be:
Description: The product shall comply with GDPR (or the local equivalent).
Fit Criterion: GDPR compliance shall be certified by [the name of your organization’s compliance department].
Smaller organizations probably do not have their own compliance sections, in which case it is down to the business analysts and especially the product owner to ensure compliance. There can be significant penalties for noncompliance with privacy laws.
Compliance requirements are also written to ensure that the product complies with cited standards. Most standards are written by organizations that either have people who certify compliance—“standards lawyers”—or issue guidelines as to how you can certify compliance for yourself. In either case, fit criteria can be written to specify how compliance with the standard is to be verified.
Fit Criteria for Stories
The normal form for stories (As a - I can - So that) does not include provision for fit criteria as we have been describing them here. However, that is no reason to disregard measuring your stories. As you are reading this, keep in mind that we discuss acceptance criteria in Chapter 29 .
This depends on whether you write separate non-functional stories or add non-functional qualities to your functional stories.
For separate non-functional stories, the fit criterion and the acceptance criteria are the same thing. Write it whichever way you choose. We will also look at acceptance criteria for stories in a few chapters.
Some non-functional requirements are solution wide. For example, security requirements or look and feel requirements apply to the whole of your solution. However, in some cases you would append non-functional requirements to functional stories. In these cases, we suggest that you add a fit criterion along with each one. This leaves the developers in no doubt as to what is required to complete the functional story.
Fit Criteria for Functional Requirements
A functional requirement is something that the product must do—an action it must take. The fit criterion specifies how you will know that the product has successfully carried out that action. For functional requirements, there are no scales of measurement—you can’t use numbers here. The action is either completed or not completed.
For example, suppose that you have this functional requirement:
Description: The product shall keep the music subscriber’s listening history.
Rationale: The product must be able to recommend new music based on the apparent preferences of the subscriber.
The rationale is enlightening; it tells us that we have to know not just what the music fan has listened to, but the type of music it is. The product must be able to find new musicians that perform the kind of music the buyer likes. This would give you the following:
Fit Criterion: At the end of a listening session, the product shall have added the listened-to artists, the songs, the genre, and the mood of the music to the subscriber’s history. The history data can be ranked to provide the best recommendations.
Another one:
Description: The product shall stream the subscriber’s selected music.
Rationale: This is what the subscriber is paying for, and how the artists earn their money.
Fit Criterion: The music is streamed; after 2 minutes the artist royalty is recorded, the stream is added to the subscriber’s history, and similar music will be played at the end of the chosen stream if there are no more subscriber selections.
Here the fit criterion is elaborating on the simple description, and in doing so, is setting down the post conditions for when the requirement is executed.
Fit Criteria and Data
For many functional requirements, completion depends on satisfying an authority that the product has correctly performed the action. The authority in this case is either the source of the data or the adjacent system that initiated the action.
If the action is to record something, then the fit criterion is that the recorded data complies with the data as it is known to the authority. For example:
Description: The product shall record the weather station readings.
Rationale: The readings are necessary for preparing the deicing schedule and must be kept for audit purposes.
Fit Criterion: The recorded weather station readings shall be identical to the readings as recorded by the transmitting weather station.
The authority in this case is the weather station: It initiated the action, and it is the source of the data. You can say the requirement is for the product to faithfully store the data (allow for the product to make necessary manipulations to the data) as sent from the weather station. If this procedure is done correctly, then the product’s data conforms to that transmitted by the station.
The fit criterion does not indicate how this conformance is to be tested. Instead, it is simply a statement that the tester uses to ensure compliance.
If the functional requirement is to make some calculation, then the fit criterion says the result of the calculation must be consistent with the authority’s view of the data. Where the requirement is “the product shall check …,” the fit criterion is “the checked data conforms with …” and again cites the authority for the data. “The product shall calculate …” results in a fit criterion of “the result conforms to …” and gives the algorithm (or source of the algorithm) for the result.
The general rule for functional requirements is that the fit criterion ensures that the function has been successfully carried out.
Defining the Data
For the fit criteria to be complete, your specification must contain definitions of the terms used in the fit criteria.
Because functional requirements often have to do with manipulating data, it is as well that we take a quick look at defining that data. This means making use of the data dictionary . The dictionary is found in section 7 of the Volere Template in Appendix A . The dictionary gives definitions of the data by defining the content of data flows and data entities.
For example, within the Ice Breaker solution there are references to something called Road Section. If you were to look in the data dictionary for the specification of this solution, you would find this definition:
Road Section = Road Section Identifier + Road Section Coordinates
You can then expect to find a definition of each attribute of Road Section. For example:
Road Section Identifier = *Unique identifier for 500 meters of road. The maximum number of road sections per road is 10,000.*
Another strategy for defining the data is to define each term as part of the fit criterion of each individual requirement. However, as you will usually reference the same term in more than one requirement, it makes sense to maintain a central dictionary that can act as a cross-reference between requirements. Your growing understanding of the data means that you progressively build a business data/information model that specifies the essential stored data for the requirements you are specifying.
Test Cases
You might find it feasible to write test cases for your functional requirements.
You might find it feasible at this stage to think about writing test cases for your functional requirements. This approach is promoted by several agile techniques wherein the tests are written before the code is. The basic idea is to focus the developer to concentrate on learning the fit criterion for any part of the functionality.
You can do the same thing with your requirements discovery: You can write test cases. However, we understand that many business analysts feel they should not be writing test cases. If you like the idea but don’t want to do it, might we suggest talking to your testers. In our experience, testers are really happy to add test cases to requirements. There is a benefit to you that comes from sitting beside testers while they write test cases: They can only do it if they are certain of the real intention of the requirements. This gives you the opportunity to verify that you do have the right requirement—the one that satisfies the real business need. When you see how the tester intends to validate the requirement, you can be certain that the delivered solution will indeed satisfy the business need.
This is “testing before testing.” That is, the tester is testing the requirement before the solution is built. “Testing before testing” is most effective, and involving the testers early in the development cycle is always beneficial. And by the way, testers are the best people to tell you whether or not your functional requirements are testable.
Testers are the best people to tell you whether or not your functional requirements are testable.
Fit Criterion for Project Purpose
We have already discussed writing the fit criterion for the project’s purpose. We didn’t call it a fit criterion back in Chapter 5 , we called it a measurement . However, it’s really the fit criterion for the project. Let’s look quickly at this idea again: The project’s purpose is a statement of the reason for making the investment in the project. If you go to the trouble and expense of developing a product, then it makes sense to have an objective benchmark to measure the delivered product against.
The measurement of the purpose is the same as a fit criterion for an individual requirement. The difference is that the fit criterion measures a single requirement, whereas the purpose’s measurement is the benchmark for the entire solution.
Fit Criteria for Solution Constraints
Constraints are a special type of requirement—they are global requirements—and they need to be specified correctly just like any other type of requirement. Section 3a of the Volere Template ( Appendix A ) includes the solution constraints. These constraints place restrictions on the way that the problem must be solved; you could also say they mandate a solution to the problem. For example:
Description: The software part of the product must run on Android and Apple iOS.
This requirement reflects management’s decision to use the two most popular mobile operating systems. This decision may or may not have a sound technological basis, but that is beside the point for our purposes here. You are being told that any solution you deliver has to comply with this constraint.
We can test compliance—either you comply with the requirement, or you don’t—as long as whatever it is that you have to comply with is measurable. For example, you can test whether you have complied with a law, but you can’t test whether you have complied with a constraint that states, “You shall be happy.” In the case of the mobile OS constraint, you could write the following criterion:
Fit Criterion: All functionality of the software shall operate as specified when run using Android 12 and later and iOS 16 and later.
Similarly, all other constraint requirements—for example, implementation environment, partner applications, commercial off-the-shelf software, open-source software, workplace environment, time budget, and financial budget—have fit criteria.
Review
The fit criterion is an unambiguous benchmark that the product has to meet.
A fit criterion is neither a test nor the design for a test, but rather a benchmark that the delivered product must be tested against . It is used as input to build test cases through which the tester ensures that each of the product’s requirements complies with its fit criterion.
Quantifying or measuring the requirement gives you a better opportunity to interact with your stakeholders. By agreeing on a measurement, you confirm that you have understood the requirement correctly, and that both you and your stakeholders have an identical understanding of it. As a by-product, you will also find quantifying it ensures that the requirement is both wanted and necessary.
Including a fit criterion in a requirement or a story encourages testers to participate in the requirements process. Testers should be involved early in the development cycle, and they are particularly helpful at requirements time when you are writing your fit criteria. This is not to say that the testers must write the fit criteria for you, but just that testers are the best source of knowledge about whether something can be tested and whether the fit criterion contains the appropriate quantification. In other words, the testers are excellent consultants for the fit criteria.
The fit criterion is the real requirement.
The fit criterion, not the description, is the real requirement. The description you write is the stakeholder’s way of stating the intention of the requirement. If your stakeholders are like most of us, they speak using everyday language, which is, unfortunately, often ambiguous and often not precise enough. You need to clarify the requirement with a fit criterion that is stated in unambiguous, precise terms and probably uses numbers or a measurement to convey its meaning.
Fit criteria are also a vehicle for reaching a consensus among multiple stakeholders. Your attempts to clarify and measure will almost always result in hidden meanings becoming visible, hidden requirements bubbling to the surface, and, most importantly, the stakeholders agreeing on what is needed.
You derive the fit criterion by examining the requirement’s description and rationale, and determining which quantification best expresses the user’s intention for the requirement.
Fit criteria are usually derived after the requirement description is written. You derive a fit criterion by examining the requirement’s description and rationale, and determining which quantification best expresses the user’s intention for the requirement. You may sometimes find that this close examination results in changes to the requirement, but these changes are for the better and should be considered quite normal; their occurrence simply means the requirement was not properly understood in the first instance. With patience and persistence, and with the wise use of measurements, you can ensure that each of your requirements is unambiguous, testable, and real.
Resources
Requirements Engineering: From System Goals to UML Models to Software Specifications by Axel van Lamsweerde (Wiley, 2009). This is a comprehensive overview of requirements engineering, including discussions on specifying and validating requirements with measurable criteria.
Notes in the Synthesis of Form by Christopher Alexander (Harvard University Press, 1964). Alexander introduced the concept of “fit” to measure the fit of architectural designs against the way people needed to live.