Requirements Specification
If you are using stories for your requirements, then please skip to the next chapter. Here, we’ll start discussing the requirements repository with the conventional requirements specification. This requirements document has been with us for quite some time, but longevity does not mean feeble. The specification plays a vital part in solution development today .
The specification is typically a complete description of the solution to be built. It is generally made up of hundreds, perhaps thousands of functional and non-functional requirements. This document is also known as the software requirements specification, or SRS .
The specification is often criticized because it typically takes time to complete it. Some critics like to point out that by the time the specification is complete, the original problem may have changed. This can be true in some circumstances; however, it must be balanced against the time-saving effectiveness of understanding the problem and having a precise specification of what to build. But you should also adapt the way you build requirements specifications to ensure that you don’t end up with an out-of-date specification. We’ll look at one way of doing this in a moment .
A complete requirements specification is sometimes necessary. In some cases, if you are outsourcing the development of the solution, you would need a complete specification before your outsourcer can start work. In other cases, the outsourcer can start construction and work in an agile way with progressive requirements being fed as needed .
Your work might involve some kind of military application, medical appliance, scientific application, security, or some other situation where it is necessary to prove that the requirements are complete and can be traced to the implementation. In these cases, a complete specification is required. Your organization might have development standards whereby the specification must be complete and provable before construction begins .
So, as we go through this chapter, what we are discussing is relevant whether you are building a complete specification or building your specification incrementally .
The requirements we are talking about in this chapter are those you have met in previous chapters — functional and non-functional requirements. These are the conventional requirements that are typically written as a statement, “The product shall …”, and you can expect to write quite a few of them .
We strongly suggest you use the Volere Requirements Specification Template that you find in Appendix A as a guide. This is a complete description of a requirements specification and its contents. We will visit parts of it in this chapter .
Structure of the Specification
The template is set out so that the atomic requirements are grouped together by type. That is all the functional requirements, followed by the look and feel requirements, then the usability requirements, and so on and so on.
While there might be value in doing this, it is just one way of arranging your requirements knowledge. The specification does not have to be written that way, and it is probably preferable that you write yours one business event at a time. Let’s look at why.
People often speak of “high-level requirements” and “low-level requirements.” While this is usually well-intentioned, the problem is that it is quite arbitrary, and nobody is quite sure exactly or can agree on what is “high” and what is “low.” Of course, you can say that a high-level requirement is one that has lower-level requirements attached to it, but that is close to meaningless and does not locate a requirement in any kind of hierarchy.
However, we do know exactly what a business event is—where it starts, where it ends, and what happens in between.
So, we suggest that you use each business events as your “high-level requirement” and attach the atomic requirements to the business event. This gives your specification a usable structure. Business events are self-contained, so there is no overlap between them. Readers of the specification can select whichever business event they are interested in and focus on its details without distraction.
Let’s look at the specification as a whole. Drawing from the Volere template, we suggest that you have a structure along these lines. You can relate these headings to the template:
Area 1: The Problem
Goals
Stakeholders
Glossary of terms
Scope of the problem space
Business data and dictionary
Area 2: The Solution
Scope of the solution
Area 3: The Business Events
List of business events
Business event 1
{functional requirement}
{non-functional requirement}
Additional material
Business event 2
{functional requirement}
{non-functional requirement}
Additional material
etc.
where { } enclose multiple requirements
Area 1: The Problem sets out the goals of the initiative and the problem to be solved. Most of this comes from the Blastoff, which we discussed earlier. It is crucial that everybody on the project has the same understanding of the problem to be solved, so it is appropriate that this is the beginning of your specification.
The scope of the problem should be defined using a context model, but whatever you use, it should unambiguously define the boundaries of the problem space. It must be clear to everybody on the team what is inside and what is outside the business problem you intend to solve.
Area 2: The Solution deals with how much of the problem that you choose to automate. This should be defined with a second context model, showing the extent of the IT product to be developed and what remains outside the scope of automation.
Area 3: The Business Events should begin with a list of business events. Following this, for each business event, you write your functional and non-functional requirements. We’ve described how to write these requirements in previous chapters.
For each business event, you should include any additional material, such as a scenario or process model of the business use case. This helps readers and developers understand the response to the event. You can also include any additional information that you think will be helpful. You will need to refer to the dictionary of the business data defined in Area 1.
Some of your non-functional requirements will overlap between other business events. This is not serious. You can, if you like, write them once and tag them as belonging to other business events, or duplicate them for each of the relevant events. The second approach makes it easier for the developers, as each event is a complete package. You might, as a courtesy, flag the requirements as duplicated elsewhere.
As you can discover and write the requirements one business event at a time, it makes sense to build the solution the same way. Figure 34.1 illustrates this idea by showing how a requirements specification can be built iteratively . Construction of the solution starts as soon as the specification of that event is complete enough. In the same way, you can develop a business event part by part. For example, you can build the main flow first and the exceptions and alternatives later.
Figure 34.1
The business analysts discover the requirements for a business event. These requirements are added to the specification. Developers begin construction as soon as the requirements for each business event are ready. Construction continues while more discovery is taking place.
The requirements specification defines the solution you want to develop. It should describe exactly what you and your stakeholders intend.
Resources
Software Requirements, Third Edition , by Karl Wiegers and Joy Beatty (Microsoft Press, 2013). This book presents a slightly different way of writing a specification.
The template packaged in Appendix A , The Volere Requirements Specification Template , demonstrates a complete requirements document.