The results of analysis must be written in a document that everyone can read, check and use. This document is the Software Requirement Specification.
Need for an SRS
The SRS is a complete description of the behaviour of the system to be developed. It is needed because it forms the agreement between the customer and the developer, it helps the customer to check that the needs are understood, it gives the developers a basis for design, testing and maintenance, it helps in estimating the cost and time, and it reduces rework, because an error found at this stage is cheap to fix. It also serves as a reference for the new staff and for the later maintenance of the product.
Definition: Software Requirement Specification. A document that completely and precisely describes what a software system must do, agreed between the customer and the developer.
Characteristics of a Good SRS
A good SRS is correct, so that every requirement is one that the software must meet. It is unambiguous, with only one interpretation for each requirement. It is complete, with all requirements and responses to all inputs. It is consistent, with no conflict among requirements. It is ranked for importance and stability. It is verifiable, so that each requirement can be tested. It is modifiable, with a clear structure and no repetition. It is traceable, so that each requirement can be followed to its source and to the design.
Components and Structure of an SRS
The usual components of an SRS are functional requirements, performance requirements, design constraints, and external interface requirements. The IEEE 830 structure has the following sections. Section 1 is the introduction, with the purpose, scope, definitions and references. Section 2 is the overall description, with the product perspective, functions, user characteristics, constraints, and assumptions and dependencies. Section 3 gives the specific requirements, which include the external interfaces, functions, performance, design constraints, quality attributes and other requirements. Appendices and an index may follow.
Table 2.5: Structure of an SRS
| Section | Content | Example |
|---|---|---|
| 1 Introduction | Purpose, scope, definitions | Scope of a library system |
| 2 Overall description | Product perspective, users, constraints | Staff are non-technical |
| 3 Specific requirements | Functions, interfaces, performance | Search within 2 seconds |
| Appendices | Supporting information | Sample reports |
Example 2.5: Fixing an ambiguous requirement
Problem: The statement "The system shall respond quickly and handle many users" appears in an SRS. Rewrite it so that it is verifiable.
Solution:
- Replace "quickly" by a measure: a page shall load within 3 seconds.
- Replace "many users" by a number: the system shall support 500 users at the same time.
Result: Both parts can now be tested.
Common mistakes
- Mixing design decisions into the SRS, which should say what, not how.
- Using vague words such as fast, user-friendly or flexible.
- Leaving out the response to invalid inputs.
Key takeaways
- The SRS is the agreement between the customer and the developer.
- A good SRS is correct, unambiguous, complete, consistent, verifiable, modifiable and traceable.
- IEEE 830 gives the standard structure.
- The SRS states what the system does, not how.
Practice questions
- Why is an SRS needed?
- Name four characteristics of a good SRS.
- Name the main sections of the IEEE 830 SRS.
Answers to the practice questions
- It is the agreement between the customer and developer and the basis for design, testing and estimation.
- Correct, unambiguous, complete and consistent (also verifiable, modifiable and traceable).
- Introduction, overall description and specific requirements.
Sources
- Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit II
