What is the distinction between the terms shall and should in a User Requirements Document which is written in natural language?

What is the distinction between the terms shall and should in a User Requirements Document which is written in natural language?

Three classes of non-functional requirements:

Product requirements Requirements which specify that the delivered product must behave in a particular way e.g. execution speed, reliability, etc. Organizational requirements Requirements which are a consequence of organizational policies and procedures e.g. process standards used, implementation requirements, etc. External requirements Requirements which arise from factors which are external to the system and its development process e.g. interoperability requirements, legislative requirements, etc.

Non-functional requirements may be very difficult to state precisely and imprecise requirements may be difficult to verify. If they are stated as a goal (a general intention of the user such as ease of use), they should be rewritten as a verifiable non-functional requirement (a statement using some quantifiable metric that can be objectively tested). Goals are helpful to developers as they convey the intentions of the system users.

The system's operational domain imposes requirements on the system. Domain requirements may be new functional or non-functional requirements, constraints on existing requirements, or define specific computations. If domain requirements are not satisfied, the system may be unworkable. Two main problems with domain requirements:

Understandability Requirements are expressed in the language of the application domain, which is not always understood by software engineers developing the system. Implicitness Domain specialists understand the area so well that they do not think of making the domain requirements explicit.

Processes vary widely depending on the application domain, the people involved and the organization developing the requirements. In practice, requirements engineering is an iterative process, in which the following generic activities are interleaved:

  • Requirements elicitation;
  • Requirements analysis;
  • Requirements validation;
  • Requirements management.

Software engineers work with a range of system stakeholders to find out about the application domain, the services that the system should provide, the required system performance, hardware constraints, other systems, etc. Stages include:

Requirements discovery Interacting with stakeholders to discover their requirements. Domain requirements are also discovered at this stage. Requirements classification and organization Groups related requirements and organizes them into coherent clusters. Prioritization and negotiation Prioritizing requirements and resolving requirements conflicts. Requirements specification Requirements are documented and input into the next round of the spiral.

Closed (based on pre-determined list of questions) and open interviews with stakeholders are a part of the RE process. User stories and scenarios are real-life examples of how a system can be used, which are usually easy for stakeholders to understand. Scenarios should include descriptions of the starting situation, normal flow of events, what can go wrong, other concurrent activities, the state of the system when the scenario finishes.

Use-cases are a scenario-based technique in the UML which identify the actors in an interaction and which describe the interaction itself. A set of use cases should describe all possible interactions with the system.

What is the distinction between the terms shall and should in a User Requirements Document which is written in natural language?

Problems to look for during requirements elicitation and analysis:

  • Stakeholders don't know what they really want.
  • Stakeholders express requirements in their own terms.
  • Different stakeholders may have conflicting requirements.
  • Organizational and political factors may influence the system requirements.
  • The requirements change during the analysis process.
  • New stakeholders may emerge and the business environment may change.

Requirements specification is the process of writing down the user and system requirements in a requirements document. User requirements have to be understandable by end-users and customers who do not have a technical background. System requirements are more detailed requirements and may include more technical information. The requirements may be part of a contract for the system development and it is important that these are as complete as possible.

In principle, requirements should state what the system should do and the design should describe how it does this. In practice, requirements and design are inseparable.

User requirements are almost always written in natural language supplemented by appropriate diagrams and tables in the requirements document. System requirements may also be written in natural language but other notations based on forms, graphical system models, or mathematical system models can also be used. Natural language is expressive, intuitive and universal. This means that the requirements can be understood by users and customers.

Structured natural language is a way of writing system requirements where the freedom of the requirements writer is limited and all requirements are written in a standard way. This approach maintains most of the expressiveness and understand-ability of natural language but ensures that some uniformity is imposed on the specification.

Requirements validation is concerned with demonstrating that the requirements define the system that the customer really wants. Requirements error costs are high so validation is very important.

What problems to look for:

  • Validity: does the system provide the functions which best support the customer's needs?
  • Consistency: are there any requirements conflicts?
  • Completeness: are all functions required by the customer included?
  • Realism: can the requirements be implemented given available budget and technology?
  • Verifiability: can the requirements be checked?

Requirements validation techniques:

Requirements reviews Systematic manual analysis of the requirements. Regular reviews should be held while the requirements definition is being formulated. What to look for:
  • Verifiability: is the requirement realistically testable?
  • Comprehensibility: is the requirement properly understood?
  • Traceability: is the origin of the requirement clearly stated?
  • Adaptability: can the requirement be changed without a large impact on other requirements?
Prototyping Using an executable model of the system to check requirements. Test-case generation Developing tests for requirements to check testability.

Requirements management is the process of managing changing requirements during the requirements engineering process and system development. New requirements emerge as a system is being developed and after it has gone into use. Reasons why requirements change after the system's deployment:

  • The business and technical environment of the system always changes after installation.
  • The people who pay for a system and the users of that system are rarely the same people.
  • Large systems usually have a diverse user community, with many users having different requirements and priorities that may be conflicting or contradictory.