# Software Requirements Specification

## 1. Introduction

### 1.1 Purpose

This document specifies the requirements for [System name], version [Version]. It is written for [Readers, for example the sponsor, developers and testers].

### 1.2 Scope

[System name] will [One or two sentences on what it does and for whom].

In scope:

- [Capability]
- [Capability]
- [Capability]

Out of scope:

- [Capability that has been discussed and excluded]
- [Capability]

### 1.3 Definitions and abbreviations

| Term   | Meaning      |
| ------ | ------------ |
| [Term] | [Definition] |
| [Term] | [Definition] |

### 1.4 References

| Ref. | Document                                            | Version or date |
| ---- | --------------------------------------------------- | --------------- |
| R1   | [Business case, policy, standard or interface spec] | [Version]       |
| R2   | [Document]                                          | [Version]       |

### 1.5 Conventions

- "Shall" marks a requirement. "Should" marks a goal that is not a condition of acceptance. "Will" states a fact or an intention.
- Each requirement has a unique ID that is never reused: FR (functional), BR (business rule), DR (data), IR (interface), NFR (non-functional), TR (transition).
- Priority: 1 = needed at launch; 2 = needed in a later release; 3 = optional.
- Verification method: T = test, D = demonstration, I = inspection, A = analysis.
- TBR marks a best-estimate value that is still to be resolved (section 8).

## 2. Overall description

### 2.1 Product context

[What it replaces, the systems it connects to and the process it supports]

### 2.2 Business objectives

| ID   | Objective                       | Measure                   |
| ---- | ------------------------------- | ------------------------- |
| BO-1 | [Result the organization wants] | [How it will be measured] |
| BO-2 | [Objective]                     | [Measure]                 |

### 2.3 Users and stakeholders

| User class | Description            | Frequency of use | Main tasks |
| ---------- | ---------------------- | ---------------- | ---------- |
| [Role]     | [Who they are, skills] | [Daily / Weekly] | [Tasks]    |
| [Role]     | [Description]          | [Frequency]      | [Tasks]    |

### 2.4 Operating environment

[Devices, browsers, operating systems, hosting and network conditions]

### 2.5 Constraints

- [Regulatory, contractual or technical constraint, with its reason]
- [Constraint]

### 2.6 Assumptions and dependencies

- [Statement that, if false, changes the requirements]
- [Dependency on another system, team or supplier]

## 3. Functional requirements

_Repeat this section for each feature or use case. Number requirements by feature: FR-101 for feature 1, FR-201 for feature 2._

### 3.1 [Feature name]

[Short description of the feature and who uses it.]

| ID     | Requirement                                          | Priority | Rationale | Verification |
| ------ | ---------------------------------------------------- | -------- | --------- | ------------ |
| FR-101 | The system shall [behaviour, conditions and limits]. | [1]      | [Why]     | [T]          |
| FR-102 | The system shall [requirement].                      | [1]      | [Why]     | [T]          |
| FR-103 | The system shall [requirement].                      | [2]      | [Why]     | [D]          |

### 3.2 [Feature name]

[Short description.]

| ID     | Requirement                     | Priority | Rationale | Verification |
| ------ | ------------------------------- | -------- | --------- | ------------ |
| FR-201 | The system shall [requirement]. | [1]      | [Why]     | [T]          |
| FR-202 | The system shall [requirement]. | [2]      | [Why]     | [T]          |

### 3.3 Business rules

| ID   | Rule                                                       | Source            |
| ---- | ---------------------------------------------------------- | ----------------- |
| BR-1 | [Rule, for example who may approve a refund above a limit] | [Policy or owner] |
| BR-2 | [Rule]                                                     | [Source]          |

## 4. Data requirements

| Data     | Description and key fields | Source           | Retention | Sensitivity                        |
| -------- | -------------------------- | ---------------- | --------- | ---------------------------------- |
| [Entity] | [Fields]                   | [System or user] | [Period]  | [Public / Internal / Confidential] |
| [Entity] | [Fields]                   | [Source]         | [Period]  | [Sensitivity]                      |

- DR-1: The system shall [validation, ownership or data quality rule].
- DR-2: Data migration: [what data moves, from where, and how the result is checked]

## 5. External interface requirements

### 5.1 User interfaces

- IR-101: The user interface shall [requirement, such as supported screen sizes or languages].
- IR-102: [Requirement]

### 5.2 Software interfaces

| ID     | System   | Direction         | Data and format          | Frequency             | On failure            |
| ------ | -------- | ----------------- | ------------------------ | --------------------- | --------------------- |
| IR-201 | [System] | [In / Out / Both] | [Data, protocol, format] | [Real time / Nightly] | [Retry, alert, queue] |
| IR-202 | [System] | [Direction]       | [Data]                   | [Frequency]           | [Handling]            |

### 5.3 Hardware and communication interfaces

- IR-301: [Devices, printers, scanners, network protocols or ports the system must support]

## 6. Non-functional requirements

| ID     | Category            | Requirement                                                     | Verification |
| ------ | ------------------- | --------------------------------------------------------------- | ------------ |
| NFR-1  | Performance         | [Response time for a named action, at a percentile, under load] | [T]          |
| NFR-2  | Availability        | [Target and measurement period]                                 | [A]          |
| NFR-3  | Security            | [Authentication, authorization and encryption requirements]     | [T, I]       |
| NFR-4  | Privacy             | [Personal information collected, consent, access and deletion]  | [I]          |
| NFR-5  | Accessibility       | The user interface shall conform to [WCAG 2.2 Level AA].        | [I, T]       |
| NFR-6  | Compatibility       | [Browsers, devices and operating systems, with versions]        | [T]          |
| NFR-7  | Capacity            | [Users, records or transactions the system must handle]         | [T, A]       |
| NFR-8  | Logging and audit   | [Events recorded, who can read them, how long they are kept]    | [I]          |
| NFR-9  | Backup and recovery | [Recovery point and recovery time]                              | [T]          |
| NFR-10 | Maintainability     | [Documentation, test coverage or update requirements]           | [I]          |

## 7. Transition requirements

- TR-1: [Data migration, cut-over plan or parallel running]
- TR-2: [Training and user documentation]
- TR-3: Support during the first [Number] weeks after launch: [Scope of support]

## 8. Open issues

| ID   | Question or TBR value | Owner  | Due date | Status            |
| ---- | --------------------- | ------ | -------- | ----------------- |
| OI-1 | [Question or value]   | [Name] | [Date]   | [Open / Resolved] |
| OI-2 | [Question or value]   | [Name] | [Date]   | [Status]          |

## 9. Traceability

| Requirement | Business objective | Design reference    | Test case | Status                                |
| ----------- | ------------------ | ------------------- | --------- | ------------------------------------- |
| FR-101      | BO-1               | [Section or ticket] | [Test ID] | [Draft / Approved / Built / Verified] |
| FR-102      | [Objective]        | [Reference]         | [Test ID] | [Status]                              |
| NFR-1       | [Objective]        | [Reference]         | [Test ID] | [Status]                              |

## 10. Approval and change history

### 10.1 Approval

| Role           | Name   | Signature | Date   |
| -------------- | ------ | --------- | ------ |
| Sponsor        | [Name] |           | [Date] |
| Product owner  | [Name] |           | [Date] |
| Technical lead | [Name] |           | [Date] |
| Test lead      | [Name] |           | [Date] |

### 10.2 Change history

| Version | Date   | Change      | Author | Approved by |
| ------- | ------ | ----------- | ------ | ----------- |
| [0.1]   | [Date] | First draft | [Name] | [Name]      |
| [1.0]   | [Date] | Baseline    | [Name] | [Name]      |

---

Template from Computese, a starting point and not legal advice: https://computese.com/templates/software-requirements-specification/
