DOI: 10.1201/9781003129509-9

Introduction

We have already discussed automated requirements analysis via the NASA ARM and related requirements verification and validation tools in Chapter 6 . Word processors, database managers, spreadsheets, content analyzers, concept mapping programs, automated requirements checkers, and so on are also tools of interest to the requirements engineer. Table 9.1 compares the capabilities of conventional office tools used for requirements management to a feature-rich requirements management tool.

Table 9.1 Requirements Repository Metric Capabilities | | Word Processor | Spreadsheet | Relational Database | Requirements Management Tool | | --- | --- | --- | --- | --- | | Document size | Yes | No | No | Not in the preformatted state | | Dynamic changes over time | Possible with complex change tracking enabled | No | No | Yes | | Release size | Yes | Yes | Yes | Yes | | Requirement expansion profile | No | No | Yes | Yes | | Requirements verification | No | No | Possible | Possible | | Requirements volatility | Yes | Yes | Yes | Yes | | Test coverage | No | Possible with complex equation logic | Yes | Yes | | Test span | No | Possible with complex equation logic | Yes | Yes | | Test types | Yes | Yes | Yes | Yes |

Source : Adapted from Hammer et al. ( 1998 ).

But the most celebrated requirements tools are large, commercial, or open-source packages that provide a high level of integrated functionality. The chief function of these requirements management tools is to represent and organize all “typical” requirements engineering objects such as sources for requirements, requirements, use cases, scenarios, and user stories throughout the requirements engineering life cycle. Support for user-defined entities is also usually provided.

According to Information technology—Systems and software engineering—Guide for requirements engineering tool capabilities ISO/IEC TR 24766:2009, six major capabilities exist for requirements engineering tools:

  • Requirements elicitation
  • Requirements analysis
  • Requirements specification
  • Requirements verification and validation
  • Requirements management
  • Other capabilities

Verification and validation features are indeed an important component of any automated requirements engineering tool. Indeed, the more sophisticated commercial requirements engineering tools provide other requirements checking, tracing, and archiving features. These are shown in Table 9.2 . These features are particularly important because they provide for the accurate tracing of artifacts over time. Traceability is an important characteristic of the SRS document and bears further discussion.

Table 9.2 Automated Requirements Engineering Tool Features (Heindl et al. 2006) | Tool Feature | Description | | --- | --- | | Definition of workflow for requirements | A workflow (states, roles, state transitions) is configurable for requirements. | | Automated generation of bidirectionality of traces | When the user creates a trace between artifact A and artifact B, it automatically establishes a backward trace from B to A. | | Definition of user-specific trace types | An authorized user can define trace types and assign names. | | Suspect traces | When a requirement changes, the tool automatically highlights all traces related to this requirement for checking and updating traces. | | Long-term archiving functionality | All data in the tool can be archived in a format accessible without the tool if necessary. |

Other typical functionalities for these large, commercial requirements engineering tools include may include more capabilities such as:

  • Supports agile methodologies such as Scrum, Kanban, and collaborative working.
  • Multiuser support and version control
  • Support for traceability
  • Verification and validation tools (we discussed these in Chapter 6 )
  • Online collaboration support
  • Issue resolution management
  • Configuration management
  • Product management
  • Project management
  • Built-in support for standards templates (such as IEEE 29148)
  • User-defined glossary support ( Heindl et al. 2006 )
  • Customizable functionality through a programmable interface
  • Customizable user interfaces
  • Product lifecycle management
  • Test management

Table 9.3 lists the top tools reported by the participants of the 2020 RE state of practices survey (Kassab and Laplante 2022).

Table 9.3 Common Commercial Tools Supporting RE Activities (Kassab and Laplante 2022) | Tool Name | Vendor | License | Capabilities | | --- | --- | --- | --- | | Jira | Atlassian | Commercial | Agile support, issue resolution management, project management, requirements management | | Rational Doors | IBM | IBM EULA | Configurations management, requirements management, test management | | Azure DevOps | Microsoft | Commercial | Agile support, issue resolution management, requirements management, test management | | Jama Connect | Jama Software | Commercial | Project management, requirements management, test management | | Doors Next (Jazz) | IBM | IBM EULA | Application lifecycle management, requirements management, test management | | Aha! | Aha! Labs | Commercial | Product management, requirements management | | Quality Center | Micro Focus | Commercial | Issue resolution management, requirements management, test management, project management | | VersionOne | CollabNet | Commercial | Agile support, project management, requirements management |

Share your Opinion : What requirements engineering tools (if any) do you use (or does your company use) and how are they used?

https://phil.laplante.io/requirements/tools.php

Traceability Support

Requirements traceability is a subdiscipline of requirements management, and it is one of the main capabilities to look for in requirement tools. Requirements traceability is concerned with the relationships between requirements, their sources, and numerous other artifacts. Different kinds of traceability can be established:

  • Source Traceability : This provides links requirements to stakeholders who proposed these requirements
  • Requirements-Linkage Traceability : This provides links between dependent requirements.
  • Requirements-Design Traceability : This provides links from the requirements to the design.
  • Requirements-Source Code Traceability : This provides links from the requirements to the code.
  • Requirement-Test Cases Traceability : This provides links from the requirements to the test cases.

Traceability is especially relevant when developing safety-critical systems and therefore prescribed by safety guidelines, such as DO-178C, ISO 26262, and IEC61508. For example, the standard DO-178C, Software Considerations in Airborne Systems and Equipment Certification, which is used by federal aviation regulatory agencies in the US, Canada, and elsewhere, contains rules for artifact traceability. DO-178C requires traceability between all low-level requirements and their parent high-level requirements. Links are also mandatory between source code elements, requirements, and test cases. All software components must be linked to a requirement, that is, all elements must have a required purpose (i.e., no gold-plating). Certification activities are then conducted to ensure that these rules are followed (RTCA 2011). But for our purposes, we are only concerned with traceability artifacts found in the requirements specification document (or ancillary documents).

Within the SRS document, traceability focuses on the interrelationship between requirements and their sources, stakeholders, standards, regulations, and so on. For these purposes, traceable artifacts include:

  • Requirement
  • Stakeholder(s) who are associated with a requirement
  • Standard, regulation, or law that mandates the requirement
  • Rationale (for the requirement)
  • Keywords (for searching)

The various combinations of these and other artifacts lead to many traceability formats, a few of which will be presented shortly. Yue et al. ( 2011 ) also suggest creating traceability matrices that maintain links between requirements elements and analysis model elements. An extensive discussion of requirements tracing approaches and applications can be found in Lee et al. ( 2011 ).

One goal of traceability is to visualize the relationship between artifacts. As the number and complexity of trace links increases, techniques for traceability visualization are necessary. Common visualizations for traceability information are matrices, graphs, lists, and hyperlinks. Traceability can be realized by capturing traces either entirely manual or tool-supported. In the following discussions, we will focus on the “matrices” as a way to visualize the traceability links.

Requirements Linkage Traceability Matrix

It is not unusual for one requirement to have an explicit reference to another requirement. In the RE discipline, there is a large body of research on the topic of requirements dependencies. For example, a 2012 empirical study on requirements dependencies ( Li et al. 2012 ) found more than 20 types of dependencies identifiable in published RE literature. Kassab et al. ( 2009 ) treated dependencies from an ontology viewpoint. Martakis and Daneva ( 2013 ) investigated handling requirements dependencies in agile projects. In general, there are different types of relationships between requirements, a non-exclusive list may include:

  • Requires
  • Is needed by
  • Supersedes
  • Is superseded by
  • Is child of
  • Is parent of
  • Refers to
  • Uses
  • Refers to
  • Is satisfied by
  • Satisfied
  • Contradicts with

Let’s focus the discussion now on two relations: “Uses” and “Refers to.”

Consider the following requirement:

  • 2.1.1 The system shall provide for control of the heating system and be schedulable according to the time scheduling function (ref. requirement 3.2.2).

which depicts a “refers to” relationship. The “uses” relationship is illustrated in the following requirement:

  • 2.1.1 The system shall provide for control of the heating system in accordance with the timetable shown in requirement 3.2.2 and the safety features described in requirement 4.1.

The main distinction between “uses” and “refers to” is that the “uses” represents a stronger, direct link.

The primary artifact of traceability is the requirements traceability matrix. The requirements traceability matrix can appear in tabular form in the SRS document, in a stand-alone traceability document, or internally represented within a tool for modification, display, and printout. There are many variations of traceability matrices depending on which artifacts are to be included.

One form of the matrix shows the interrelationship between requirements. Here, the entries in the requirements traceability matrix are defined as follows:

  • R ij  =  R if requirement i references requirement j (meaning “refers to” for informational purposes).
  • R ij  =  U if requirement i uses requirement j (meaning “depends on” directly).
  • R ij = blank otherwise.

When a requirement both uses and references another requirement, the entry “ U ” supersedes that of “ R. ” Since self-references are not included, the diagonal of the matrix always contains blank entries. We would also not expect circular referencing in the requirements so that if R ij  =  U or R ij  =  R , we would expect R ji to be blank. In fact, an automated verification feature in a requirements engineering tool should flag such circular references.

The format of a typical requirements traceability matrix is shown in Table 9.4 . A partial traceability matrix for a hypothetical system with sample entries is shown in Table 9.5 .

Table 9.4 Format of Traceability Matrix ( R ) for Requirements Specification | Requirement ID | 1 | 1.1 | 1.1.1 | … | 1.2 | 1.2.1 | … | 2 | 2.1 | 2.1.1 | … | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | | | | | | | | | | | | | 1.1 | | | | | | | | | | | | | 1.1.1 | | | | | | | | | | | | | … | | | | | | | | | | | | | 1.2 | | | | | | | | | | | | | 1.2.1 | | | | | | | | | | | | | …. | | | | | | | | | | | | | 2 | | | | | | | | | | | | | 2.1 | | | | | | | | | | | | | 2.1.1 | | | | | | | | | | | | | … | | | | | | | | | | | |

Table 9.5 Partial Traceability Matrix for a Fictitious System Specification | Requirement ID | 1 | 1.1 | 1.1.1 | 1.1.2 | 1.2 | 1.2.1 | 1.2.2 | 2 | 2.1 | 2.1.1 | 3 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | | | | | | | | | R | R | | | 1.1 | | | U | | | | | | | | | | 1.1.1 | R | | | | | | | R | | | | | 1.1.2 | | | | | | R | | | | | | | 1.2 | | | | | | | | | | U | | | 1.2.1 | | | | | | | R | | | | | | 1.2.2 | | | | | | | | | | R | | | 2 | U | | | | | | | | R | | | | 2.1 | | | | U | | | | | | | | | 2.1.1 | | | | | | | | | | | R | | 3 | | | | | R | | | | | | |

Since R is usually sparse, it is convenient to list only those rows and columns that are not blank. For example, for the SRS document for the smart home found in the appendix, the traceability matrix explicitly derived from the requirements is shown in Table 9.6 .

Table 9.6 Traceability Matrix for Smart Home Requirements Specification Shown in the Appendix | Requirement ID | 5.11 | 9.11 | | --- | --- | --- | | 9.1.1 | R | | | 9.10.7 | | R |

A sparse traceability matrix of this type indicates a low level of explicit coupling between requirements. A low level of coupling within the requirements document is desirable—the more linked requirements, the more changes to one requirement propagate to others. In fact, explicit requirements linkages are a violation of the principle of separation of concerns, a fundamental tenet of software engineering. Therefore, link requirements only when absolutely necessary.

Generally, we would like each requirement to be verified by more than one test case. At the same time, we would like each test case to exercise more than one requirement. The “test span” metrics are used to characterize the test plan and identify insufficient or excessive testing:

  • Requirements per test
  • Tests per requirement

Research is still ongoing to determine appropriate statistics for these metrics. But at the very least, you can use these metrics to look for inconsistencies and nonuniform test coverage. Of course, there is always a trade-off between time and cost of testing vs. the comprehensiveness of testing. But testing is not the subject of this book.

Requirements Source Traceability Matrix

Yet another kind of traceability matrix links requirements to their sources. Aside from those coming directly from users, many requirements are derived from governmental regulations and from standards. Linking the requirements to these sources can be very helpful when the sources change. Table 9.7 shows the typical format for such a traceability matrix.

Table 9.7 Traceability Matrix Showing Requirements and Their Sources | Requirement ID | Federal Regulation #1 | Federal Regulation #2 | State Regulation #1 | State Regulation #1 | International Standard #1 | | --- | --- | --- | --- | --- | --- | | 3.1.1.3 | X | | | | | | 3.1.2.9 | X | X | | | | | 3.2.1.8 | | | X | X | | | 3.2.2.5 | | | X | | | | 3.2.2.6 | | | | | X | | 3.3.1 | | X | | | | | 3.3.2 | | X | | | | | 3.4.1 | | X | | | | | 3.4.3 | | X | | | | | 3.4.4 | | X | | | | | 3.6.5.1 | | | | X | | | 3.6.6.4 | | | | | X |

This kind of traceability matrix is especially useful for tracking nonfunctional requirements. Failure to trace nonfunctional requirements throughout the project life cycle can be a significant problem ( Kassab et al. 2008 ).

Requirements Stakeholder Traceability Matrix

Another kind of traceability matrix links stakeholders to the requirements they submitted, an example of which is shown in Table 9.8 .

Table 9.8 also incorporates a ranking schema, which greatly facilitates requirements negotiation and trade-off analysis.

Table 9.8 Traceability Matrix Showing Requirements, Their Rank, and Their Stakeholder Source | Requirement | Rank__1 (lowest importance) – 5 (highest importance) | Stakeholder Source__D—Doctor, N—Nurse, A—Administrative Support Staff, P—Patient, R—Regulator | | --- | --- | --- | | 3.1.1.1 | 5 | R | | 3.1.1.2 | 4 | R | | 3.1.2.1 | 5 | D,N,A | | 3.1.2.2 | 3 | D,N,A |

Only three kinds of traceability matrices have been shown in the previous sections, but any variation or combination of these can be created and they can incorporate the other traceability artifacts mentioned. Commercial requirements engineering tools allow the user to customize all kinds of traceability matrices.

Extensive studies document the effectiveness, but also the difficulties of capturing traceability information. An analysis of the pre-market testing of software in medical devices at the US Food and Drug Administration (FDA) in 2013 identified significant gaps between prescribed and filed traceability information ( Mäder et al. 2013 ). The data from the 2020 RE State of Practices Survey (Kassab and Laplante 2022) shows that only 63% of the participants reported satisfaction with the efforts to maintain proper requirements traceability within their projects. Requirements traceability best practices include:

  • Unique identifiers must be adopted for requirements and business rules.
  • When tracing all requirements is simply time-prohibitive, the analyst may be selective based on effort and cost.
  • A responsible party within the team must take ownership of traceability.
  • An organization must adopt consistent practices in requirements management, including traceability, and the analyst must practice consistency in updates.

Requirements Management Tools

Requirements tools are extremely important in managing requirements information across the lifecycle of a project. In this section, we will review four popular tools used in the industry to manage requirements.

  • Jira has become one of the most popular tools in the industry, not just software development teams but also by people who are working on the support desk and business teams. Jira essentially is an issue tracking tool, where “issue” is a generic term for a ticketed item that could be a task, bug, story, epic in software development projects, a simple to-do in business projects, or an incident, problem, or service request in service desk-based projects. The popularity of Jira has increased because it can also be customized to act like a help desk system, a simple test management suite, requirements management, or a project management system with end-to-end traceability for software development projects. Jira is mainly accessed using a web browser but it has a lot of integrations with other tools, and Jira comes with a RESTful API so you can interact with it programmatically.
  • Aha ! tool allows users to build and share visual roadmaps. It connects the strategic business goals into high-level requirements (features) and releases. It provides planning board capability where the team can define the features, prioritize the backlog, manage the daily work and plan upcoming releases. The tool also provides a scorecard feature to objectively rank features against the project’s strategy. The tool also provides the capability to group multiple work items that span across many releases into epics, and it automatically syncs the status of epics and features so team members can keep track of the overall effort and report on progress. Aha! is integrated with many third-party applications including JIRA, GitHub, and Azure DevOps Server.
  • Jama Connect is another example of a requirements management tool. It provides upstream and downstream relationships traceability to understand the impact of change and coverage across the development lifecycle, real-time collaboration among team members, risk and hazard analysis, and requirements reuse and baseline management.
  • IBM’s DOORS ( dynamic object-oriented requirements system)—one of the most widely used requirements management tools. DOORS is essentially an object database for requirements management. That is, each feature is represented as an object containing a feature description, feature graph, and use case diagram. The database is further organized by creating folders and projects, and a history of all module and object-level actions is maintained. There is an extension called Analyst, which integrates DOORS with another tool that allows UML models to be embedded and traced within DOORS ( Hull et al. 2011 ). Feature attributes include mandatory, optional, single adaptor, and multiple adaptor, and the user can specify whether an attribute is required or excluded, which embodies the complementary and supporting nature of requirements. Other attributes are based on use case packages and product instances ( Eriksson et al. 2005 ). DOORS offers linking between all objects in a project for full traceability and missing link analysis. The tool can be customized via a C-like programming language. And standard templates are available to structure requirements in compliance with ISO 12207, ISO 6592, and other standards (Volere 2013). There are many more requirements analysis and management features in the latest version of DOORS. Please consult Appendix F, DOORS NG, for more information on the current version of DOORS (as of the time of writing) called DOORS Next Generation (NG).

Tool Evaluation

There are many commercial and open-source tools, and it is important to carefully evaluate the features of any tool before adopting it in the enterprise. ISO/IEC TR 24766 (2009) Information Technology—Systems and Software Engineering—Guide for Requirements Engineering Tool Capabilities is a framework for assessing the capabilities of requirements engineering. These capabilities are organized along with the following areas: elicitation, analysis, specification, verification and validation, management, and other capabilities. Several studies of commercial tools have been conducted using the ISO/IEC TR 24766 framework (e.g., Carrillo de Gea et al. 2011 , 2015 ; Daud et al. 2014 ). These studies have generally found that the tool market is rapidly changing and that tools are becoming increasingly complex and difficult to use. The complexity of the expensive commercial tools then creates opportunities for inexpensive tools to emerge but don’t offer sophisticated features. Furthermore, these studies have indicated that validation functionalities such as consistency, correctness, and completeness are still lacking in most of the tools.

Sud and Arthur ( 2003 ) evaluated a number of requirements management tools using the following dimensions:

  • Requirements traceability mechanism
  • Requirements analysis mechanism
  • Security and accessibility mechanism
  • Portability and backend compatibility
  • Configuration management approach
  • Communication and collaboration mechanism
  • Change management support
  • Online publishing support
  • Usability features such as word processor compatibility
  • SRS documentation format

While the findings of their study are now somewhat obsolete, these evaluation dimensions can be used by engineers to compare various commercial and open-source requirements management tools prior to adoption. For example, a simple checklist could be created using these dimensions, or a Likert scale–based evaluation could be conducted.

Carrillo de Gea et al. ( 2021 ) provided an alternative list of 17 items to be used in the evaluation of RE tool capabilities:

  • Organization of requirements with metadata, attributes, and reuse
  • Reports, database queries, and open interface language
  • Internal checks, that is, consistency, dependencies, and history
  • Traceability support, that is, drag and drop (horizontal and vertical)
  • Providing support for reuse
  • Remote working, cloud only
  • Multiple views of requirements
  • Performance
  • Collaboration, workflow management
  • Easily adapted and integrated into business processes
  • Federation and notification with ALM/PLM tools
  • Export/import with standard formats
  • Macros for repeated commands
  • Training and learning curve effort
  • Agile, CI/CD, and DevOps
  • Intelligent support
  • Scalability

This checklist (or an adapted version) and an appropriate consensus management approach (e.g., Wideband Delphi, AHP) can be used to select the right tool for a team or enterprise.

Open-Source Requirements Engineering Tools

There are hundreds of thousands of open-source projects many of which are full-featured requirements management tools, and you are encouraged to turn first to open-source repositories to look for tools before purchasing or trying to develop them from scratch. There are also utilities or resources for requirements engineering.

In this section, we look at two such open-source utilities that can be of use to the requirements engineer.

FreeMind

Quick access to: FreeMind

https://phil.laplante.io/requirements/freemind.php

Mind mapping tools allow the user to create concept maps, which depict the relationship between things and ideas and are useful for the requirements engineer for brainstorming, task analysis, laddering, traceability, JAD, focus groups, and many other requirements engineering activities. Concept mapping tools allow for the easy creation of concept maps, and while the foregoing discussion is based on a specific tool for illustrative purposes, any concept mapping tool can be used by the requirements engineer.

FreeMind is an open-source mind-mapping tool written in Java ( FreeMind 2017 ). The tool has an easy-to-use graphical user interface. Concepts are mapped in a hierarchical structure based on a primary concept and subordinate ideas to that concept. Handy icons can be used to mark priorities, important criteria, or hazards for each idea. Many other icons are available to enrich the content of the mind map.

To illustrate the use of the requirements engineer’s use of mindmaps, let’s look at Phil’s concept of the smart home control system. Starting off with the basic concept of a smart home Phil creates a parent node (represented by a bubble) as shown in Figure 9.1 .

Figure 9.1 Phil’s smart home system.

Next, Phil uses the tool to attach a feature to the system (security) and assign a priority to that feature. Although there are up to seven levels of rankings available, Phil chose a simple three-level system.

  1. Mandatory
  2. Optional
  3. Nice to have

The resultant ranked feature and the updated mind map are shown in Figure 9.2 .

Figure 9.2 Adding the first feature to Phil’s smart home system.

Phil then adds details to the feature. For example, he wants the security system of the smart home to use and work with the existing security system in the home.

Another feature he desires is for the HVAC (heating, ventilation, and air-conditioning) system to integrate with the smart home system. In addition, because Phil has delicate plants, pets, and collectibles in the house, it is important that the temperature never exceeds 100°F, so this hazard is marked with a bomb icon. The revised mind map is shown in Figure 9.3 .

Figure 9.3 Adding a detail to the first feature to Phil’s smart home system and adding a hazard.

Phil continues with his brainstorming of features, adding music management, lawn care, and a telephone answering system. Some of the features include important details that are marked with the appropriate symbol ( Figure 9.4 ).

Figure 9.4 Adding more features to Phil’s smart home system.

As he sees the system materialize in a visual sense, Phil thinks of more features and is able to make the appropriate prioritization decisions. Phil adds to his mind map accordingly, as seen in Figure 9.5 .

Figure 9.5 Phil’s partial mind map of a smart home system.

The mind map shown in Figure 9.5 is not complete. But this mind map can be used during elicitation discussions with requirements engineers and can be easily evolved over time.

FreeMind has a nice feature that allows you to convert the mind map into a hierarchical structure in text. Thus, if you select the entire diagram and copy it and then paste it into a Word processor, you get a nested text list. You can then add numbers to obtain a hierarchical numbered list for use in a requirements specification document. FreeMind allows you to write down ideas and reorganize them very quickly, and it’s a great tool for getting a requirements specification document started. There is also a version called FreeMindPDA that works on many portable devices.

Of course, there are other open-source and commercial mind mapping tools that have similar functionality to FreeMind. Any of these tools can be very valuable in writing the requirements specification and in requirements elicitation.

FitNesse

Quick Access to: FitNesse

https://phil.laplante.io/requirements/fitnesse.php

FitNesse is an open-source, wiki-based software collaboration tool that provides a framework for building interactive test cases. While FitNesse was originally developed as a testing tool, our interest is in using it for integrated requirements/test specifications, for example, in an agile environment.

Before briefly describing how FitNesse works, it is appropriate to examine what a FitNesse test case looks like. The test case is, essentially, a table consisting of the name of the function (or method) to be tested, the set of input parameters and corresponding expected results parameters, and then a set of typical test cases across the rows of the table (see Table 9.9 ).

Table 9.9 Typical FitNesse Requirement/Test Case Format
Name of Function
Input 1Input 2…Input nExpected Result 1Expected Result 2…Expected Result m

The FitNesse table is executable; when the actual code is developed, upon clicking a button, the results of the corresponding function will be calculated.

Let us illustrate the situation using the SRS for the smart home system in the appendix. In that SRS, Section 9.2.2 specifies that:

  • 9.2.2 System shall start coffee maker at any user-defined time as long as water is present, coffee bean levels are sufficient, and unit is powered.

Assuming that the preconditions are satisfied (coffee beans and water are available), a plausible schedule for making coffee might be as given in Table 9.9 . The schedule shown in Table 9.9 recognizes that the homeowner likes to sleep late on weekends. We could populate this table in many different ways. Now it is true that the functionality desired is for dynamic scheduling so that, for example, during a holiday week, the homeowner can sleep late every day. But the table here is used to indicate one scenario of appliance scheduling. In fact, if properly configured via the FitNesse framework, Table 9.10 constitutes an executable test case for the finished system.

Table 9.10 FitNesse Requirements Specification/Test Case for Activate Coffee Pot Function in Smart Home System
Activate_Coffee_Pot
DayTimeOutput
Monday7:00coffee_pot_on_signal=high
Monday8:00coffee_pot_on_signal=low
Tuesday7:00coffee_pot_on_signal=high
Tuesday8:00coffee_pot_on_signal=low
Wednesday7:00coffee_pot_on_signal=high
Wednesday8:00coffee_pot_on_signal=low
Thursday7:00coffee_pot_on_signal=high
Thursday8:00coffee_pot_on_signal=low
Friday7:00coffee_pot_on_signal=high
Friday8:00coffee_pot_on_signal=low
Saturday9:00coffee_pot_on_signal=high
Saturday10:00coffee_pot_on_signal=low
Sunday10:00coffee_pot_on_signal=high
Sunday11:00coffee_pot_on_signal=low

Without going into too much detail, here is roughly how FitNesse works. FitNesse is a wiki GUI built on top of the Fit framework. Fit runs the fixture code (a Java or C# class) corresponding to the test table. For example, in the top row of Table 9.10 , Activate_Coffee_Pot specifies the actual class to be called. FitNesse colors the expected results cells red, green, or yellow, if the test failed, passed, or an exception was thrown, respectively ( Gandhi et al. 2005 ).

There are other open-source tools that are similar in functionality to Fitnesse. For example, Cucumber is a tool that is widely used in Scrum environments ( cucumber.io ).

Requirements Engineering Tool Best Practices

Whatever requirements engineering tool(s) you use, it is appropriate to use the tool judiciously and follow certain best practices. An excellent set of such practices is offered by Cleland-Huang et al. ( 2007 ):

  • Trace for a Purpose : That is, determine which linkages are truly important; otherwise, a large number of extraneous links will be generated.
  • Define a Suitable Trace Granularity : For example, linkages should be placed at the appropriate package, class, or method level.
  • Support In-Place Traceability : Provide traceability between elements as they reside in their native environments.
  • Use a Well-Defined Project Glossary : Create the glossary during initial discovery meetings with stakeholders and use it consistently throughout the requirements engineering process.
  • Write Quality Requirements : Make sure to follow generally accepted best practices such as IEEE 29148, which are particularly important for traceability.
  • Construct a Meaningful Hierarchy : Experimental results show that hierarchically organized requirements are more susceptible to intelligent linking software.
  • Bridge the Intradomain Semantic Gap : For example, avoid overloaded terminology, that is, words that mean completely different things in two different contexts.
  • Create Rich Content : Incorporate rationales and domain knowledge in each requirement.
  • Finally, be sure to use a process improvement plan for improving the requirements engineering process.

Following disciplined practices can result in better results from tool usage and a framework from which processes can be improved. Every project plan should include a description of the tools to be used and how they will be used.

Elicitation Support Technologies

We close this chapter by remarking on some technologies that can be used to support various requirements elicitation processes and techniques previously discussed. These technologies include:

  • Wikis
  • Mobile technologies
  • Virtual environments
  • Content analysis

FreeMind was already discussed as a tool for elicitation and for writing the requirements specification document.

Using Wikis for Requirements Elicitation

Wikis are a collaborative technology in which users can format and post text and images to a website. Access control is achieved through password protection and semaphore-like protection mechanisms (i.e., only one user can write to a particular page of the site at any one time).

Wikis can be used for collaboration, for example, to facilitate group work, card entry (for card sorting), template completions, surveys, and for organizing the requirements document. Moreover, wiki-based requirements can be exported directly to publishing tools and validation tools. Several researchers have successfully used wiki-based requirements techniques for various requirements activities including stakeholder collaboration ( Ferreira and da Silva 2008 ), requirements negotiation ( Yang et al. 2008 ), and distributed elicitation ( Liang et al. 2009 ).

In addition, wikis can be used to build interactive documents that can help to automate test cases (recall that requirements specifications should contain acceptance criteria for all requirements). For example, FitNesse is a free, wiki-based software collaboration GUI built on top of a Fit framework. FitNesse provides a framework for building web-based requirements documentation with embedded, interactive test cases ( FitNesse 2007 ).

Mobile Technologies

Various mobile technologies such as cell phones and personal digital assistants can be used to capture requirements information in place. For example, while physicians are working with patients, they can transmit information about the activities they are conducting directly to the requirements engineer, without the latter having to be on site. Using mobile devices is particularly useful because they enable instantaneous recording of ideas and discoveries. Such an approach can support brainstorming, scenario generation, surveys, and many other standard requirements elicitation techniques even when the customer is not easily accessible (such as in offshore software development situations).

For example, Lutz et al. ( 2012 ) developed an application called CREWSpace that allowed users to role-play through Android-enabled devices such as smartphones and tablets and, in doing so, to interact with a representation model displayed on a shared screen. By keeping track of the role-playing states, the software was able to create CRC cards, which are a brainstorming tool used in object-oriented software systems. The CRC cards could then be incorporated into the requirements document.

A second example is the Mobile Scenario Presenter (MSP) that has been developed by the Johannes Kepler University of Linz, Austria, and the City University London, UK. The application allows for both mobile analysts and future system users to acquire requirements systematically and in situ using structured scenarios.

Arena-M (Anytime, Anyplace Requirements Negotiation Aids - Mobile) is the third example. It is a mobile application that provides support for distributed requirements negotiations.

A good discussion of the emergence of the use of mobile technologies in requirements discovery can be found in Maiden et al. ( 2007 ) and Kurtz et al. ( 2008 ).

Virtual Environments

Architectural designers have used virtual walkthroughs to elicit requirements for commercial building and home construction for many years. Virtual world environments are more complex simulations using enhanced graphics and various specialized devices such as tactile pressure sensors, force feedback peripherals, and three-dimensional display devices. Virtual world environments can be used to provide realism in testing, validating, and agreeing requirements, particularly for novel or complex application environments. Russell and Creighton ( 2011 ) suggest that using virtual environments can:

  • Clarify current shortcomings
  • Draw attention to potential benefits
  • Show before-and-after conditions
  • Personalize the impressions of various actors and roles
  • Create a more shared appreciation of the affective components of valuation, and ready exploration of alternative timelines

For example, in the airline baggage handling system, a three-dimensional layout of the relevant portions of the airport can be constructed and stakeholders can use characters (avatars) to traverse the digital scene and validate requirements that have been previously communicated.

Virtual environments for complex systems can be expensive to create. But in novel and mission-critical systems, the benefits of discovering subtle requirements using virtual simulation may be well worth the cost.

Content Analysis

Content analysis is a technique used in the social sciences for structuring and finding meaning in unstructured information. That is, by analyzing writing or written artifacts of speech, things of importance to the stakeholder can be obtained. In analyzing these writings, the objective is to identify recurrent themes ( Krippendorff 2004 ).

Content analysis can be used by requirements engineers to discover meaning within written artifacts such as transcripts from group meetings, unstructured interviews, survey data, or emails (any text or artifact that can be converted to text). These hidden meanings may reveal subtle requirements that the stakeholders could not articulate directly. In fact, these hidden requirements are often the most problematic and likely to lead to user satisfaction when the product is delivered.

Content analysis can be done manually by tagging (with colored highlighters) identical words and similar phrases that recur in various writings. For example, Figure 9.6 contains a sample content analysis of some text. The text is an excerpt from a notebook of a requirements engineer who has interviewed a customer regarding a smart home.

Figure 9.6 Sample content analysis of notes from a smart home elicitation interview session. Different fonts are used in lieu of colors.

As we read the text, we begin noticing recurring themes, and as we do so, we highlight them with a different colored marker. For example, the word “I” is mentioned repeatedly, and for whatever reason, we decide that this noun hints at an important theme, and we highlight it in one color. We then notice that smart home or “the home” is mentioned several times—we highlight these with a different color from the previous theme. The notion of time is also mentioned frequently (“long periods of time,” “time,” and “periods of time”) and so we highlight these with a consistent color. And so on.

Free and for-fee tools for content analysis can be used to automate this process.

Artificial Intelligence

In the past few years, the thread of work on Artificial Intelligence (AI) for RE has made strides in rigorously investigating how general-purpose AI tools can be tailored best for RE tasks ( Dalpiaz and Niu 2020 ). For example, recent research studies are investigating how human intervention in the requirement gathering processes can be reduced by using “Speech Understanding Methodology” techniques with the capability to “listen in” on a conversation and suitably collect stakeholders’ declarations into a distinct vision ( Spoletini and Ferrari 2017 ; Sharma and Pandey 2014 ).

Speech understanding methodology can be combined then with “Automatic Keywords Mapping,” another AI technique being investigated that can enhance the requirements elicitations. Many requirements issues are related to not having the stakeholders able to depict their requirements properly, or the ignorance of the domain experts and developers to “observable” words that lead essentially to system requirements. These issues can be eliminated by automatically mapping every keyword spoken by each stakeholder. The earlier studies released a keyword mapping technique for designers so that they can recognize the keywords used by stakeholders to assist them in making ideal requirements ( Sharma and Pandey 2013 ).

Case-based reasoning is also being investigated for requirement elicitation, which can reduce the problem of natural language understanding as well as save the time of the requirement expert. There has also been recent research on the use of machine learning algorithms to identify user preferences based on their sentiment ( Li et al. 2018 ).

In Chapter 12 , we continue our discussion on the relationship between requirements engineering and AI.

Requirements Metrics

Metrics can be calculated or collected at various stages of the requirements engineering life cycle in order to monitor and improve the requirements engineering processes and practices. The most useful requirements management tools completely automate or partially assist in the collection of metrics. Costello and Liu ( 1995 ) describe the following types of requirements metrics to be tracked by tools:

  • Volatility
  • Traceability
  • Completeness
  • Defect density
  • Fault density
  • Interface consistency
  • Problem report and action item issues

The requirements volatility metric tracks the numbers of deletions, additions, and modifications to requirements over time. Clearly, these numbers must be tracked by tools. It is often the case that problems emerging later in the project life cycle can be traceable to those requirements that have relatively high volatility.

Traceability metrics include linkage statistics between requirements levels, such as those collected by ARM, and test coverage and span statistics. The test case coverage metric indicates that many requirements have test cases, and the test span metric indicates how many requirements a test case covers. Trace linkage metrics can also be established between requirements, architectural, and design elements. As the IEEE 29148 standard qualities dictate, a high level of internal and external traceability is desirable.

Completeness metrics relate to the number of times that placeholder terms such as TBD are used and could be related to the requirements decomposition levels as illustrated in Figure 4.3 .

Defect density metrics indicate the number of requirements defects uncovered during a requirements inspection. These metrics are useful in predicting product and processes volatility and interpreting other metrics.

Requirements fault density indicates the number of requirements faults that are initially detected during test execution or posttest analysis. Requirements faults can be classified by criticality to obtain a number of different metrics. These metrics are used in determining the effectiveness of testing. Fault density metrics are used in predicting product/process volatility and quality and are essential in interpreting the meaning of other metrics ( Costello and Liu 1995 ).

Finally, problem reports and action items are derived metrics that can be used to monitor and control the project. For example, defects per requirement, requirements churn (changes to requirements), and the requirements defect backlog. Requirements management tools can generate many of these metrics.

VIGNETTE 9.1 Tools for Agile Requirements Engineering

One of the criticisms of the requirements engineering practices in agile processes is that documentation is not always rigorously captured. Studies support the notion that agile practitioners do not always use the kinds of tools that can assist in project management and capture appropriate artifacts during systems development. For example, Kassab ( 2014 ) found that only about 50% of practitioners using agile methodologies indicated that tools were used for requirements engineering.

Certain tools, however, can play an important role in ensuring that documentation artifacts are recorded, thus enriching that agile process. For example, UML modeling tools can help to capture elements of requirements documentation. Agile teams can also use advanced communications such as web-based shared team projects and instant messaging tools to keep in touch with customers and team members when off-site. The artifacts from these tools can then be captured and converted to elements of the requirements specification.

Researchers have also found that agile projects would also benefit from using requirements traceability tools together with validation tools. Integrated acceptance testing tools such as Cucumber can also improve the quality of requirements and testing documentation ( De Lucia and Qusef 2010 ).

Exercises

  • 9.1 What criteria should be used in choosing an appropriate requirements engineering tool?
  • 9.2 Are there any drawbacks to using certain tools in requirements engineering activities?
  • 9.3 When selecting an open-source tool, what characteristics should you look for?
  • 9.4 How can tools enable distributed, global requirements engineering activities? What are the drawbacks in this regard?
  • 9.5 If an environment does not currently engage in solid requirements engineering practices, should tools be introduced?
  • 9.6 What sort of problems might you find through a traceability matrix that you might not see without one?
  • 9.7 How is AI being proposed for knowledge acquisition and representation in requirements specifications?
  • 9.8 Download FreeMind and use it to brainstorm a mind map for your smart home system.
  • 9.9 Construct a FitNesse (or Cucumber) test table for the requirement described in Section 8.2 of the appendix.
  • 9.10 Download and install the latest version of DOORS (NG at the time of this writing). Create a new project to manage the requirements for the course project you are currently completing.
  • *9.11 Using the Sud and Arthur dimensions for evaluating requirements management tools, conduct an assessment of five different commercial or open-source tools using publicly available information.

References

  1. Carrillo de Gea, J. M., Nicolás, J., Alemán, J. L. F., Toval, A., Ebert, C., & Vizcaíno, A. (2011). Requirements engineering tools. IEEE Software , 28(4): 86–91.
  2. Carrillo de Gea, J. M., Nicolás, J., Fernández, A. J. L., Toval, A., Ebert, C & Vizcaíno, A. (2015). Commonalities and differences between requirements engineering tools: A quantitative approach. Computer Science and Information Systems , 12(1): 257–288.
  3. Carrillo de Gea, J. M., Ebert, C., Hosni, M., Vizcaíno, A., Nicolás, J., & Fernández-Alemán, J. L. (2021). Requirements engineering tools: An evaluation. IEEE Software , 38(3): 17–24.
  4. Cleland-Huang , J., Settimi, R., Romanova, E., Berenbach, B., & Clark, S. (2007). Best practices for automated traceability. IEEE Computer , 40: 27–35.
  5. Costello , R. J., & Liu, D. B. (1995). Metrics for requirements engineering. Journal of Systems and Software , 29(1): 39–63.
  6. Dalpiaz , F., & Niu, N. (2020). Requirements engineering in the days of artificial intelligence. IEEE Software , 37(4): 7–10.
  7. Daud , N., Kamalrudin, M., Sidek, S., & Ahmad, S. S. S. (2014). A review of requirements engineering tools for requirements validation. International Journal of Software Engineering and Technology , 1(1).
  8. De Lucia, A., & Qusef, A. (2010). Requirements engineering in agile software development. Journal of Emerging Technologies in Web Intelligence , 2(3): 212–220.
  9. Eriksson , M., Morasi, H., Borstler, J., & Borg, K. (2005). The PLUSS toolkit—Extending telelogic DOORS and IBM-rational rose to support product line in use case modeling. In Proceedings of the 20th IEEE/ACM International Conference on Automated Software Engineering (pp. 300–304). Long Beach, CA.
  10. Ferreira , D., & da Silva, A. R. (2008, September). Wiki supported collaborative requirements engineering. In Proceedings of the 4th International Symposium on Wikis . ACM, Porto, Portugal.
  11. FitNesse project. (2007). www.fitnesse.org (accessed January 2017).
  12. FreeMind project. (2017). http://freemind.sourceforge.net/wiki/index.php/Main_Page (accessed February 2017).
  13. Gandhi , P., Haugen, N. C., Hill, M., & Watt, R. (2005). Creating a living specification using fit documents. In Agile 2005 Conference (Agile 05 ) (pp. 253–258). IEEE CS Press, Denver, CO.
  14. Hammer , T. F., Huffman, L. L., Rosenberg, L. H., Wilson, W., & Hyatt, L. (1998). Doing requirements right the first time. CROSSTALK The Journal of Defense Software Engineering , 20–25.
  15. Heindl , M., Reinish, F., Biffl, S., & Egyed, A. (2006, August). Value-based selection of requirements engineering tool support. In 32nd EUROMICRO Conference on Software Engineering and Advanced Applications, SEAA’ 06 (pp. 266–273), Cavtat, Croatia.
  16. Hull , E., Jackson, K., & Dick, J. (2011). Doors: A tool to manage requirements. Requirements Engineering , 181–198. Springer-Verlag, London.
  17. ISO/IEC TR 24766. (2009). Information Technology—Systems and Software Engineering—Guide for Requirements Engineering Tool Capabilities . International Organization for Standardization (ISO), Geneva, Switzerland.
  18. Kassab , M. (2014). An empirical study on the requirements engineering practices for agile software development. In 2014 40th EUROMICRO Conference on Software Engineering and Advanced Applications (SEAA) . IEEE.
  19. Kassab, M., & Laplante, P. (2021). The current and evolving landscape of requirements engineering state of practice. IEEE Software . DOI Bookmark: 10.1109/MS.2022.3147692
  20. Kassab , M., Ormandjieva, O., & Daneva, M. (2008). A traceability metamodel for change management of non-functional requirements. In 2008 Sixth International Conference on Software Engineering Research, Management and Applications (pp. 245–254). IEEE, Prague, Czech Republic.
  21. Kassab , M., Ormandjieva, O., & Daneva, M. (2009). An ontology based approach to non-functional requirements conceptualization. In 2009 Fourth International Conference on Software Engineering Advances (pp. 299–308). IEEE, Porto, Portugal.
  22. Krippendorff , K. (2004). Content Analysis: An Introduction to Its Methodology . Sage, Thousand Oaks, CA.
  23. Kurtz , G., Geisser, M., Hildenbrand, T., & Kude, T. (2008). Mobile technologies in requirements engineering. In Advances in Computer and Information Sciences and Engineering (pp. 317–322). Springer, Dordrecht.
  24. Lee , S.-W., Gandhi, R. A., & Park, S. (2011). Requirement tracing. In P. Laplante (Ed.), Encyclopedia of Software Engineering (pp. 999–1011). Taylor & Francis, Boca Raton, FL.
  25. Li , J., Zhu, L., Jeffery, R., Liu, Y., Zhang, H., Wang, Q., & Li, M. (2012). An initial evaluation of requirements dependency types in change propagation analysis .
  26. Li , T., Zhang, F., & Wang, D. (2018). Automatic user preferences elicitation: A data-driven approach. In International Working Conference on Requirements Engineering: Foundation for Software Quality (pp. 324–331). Springer, Cham, Utrecht, The Netherlands.
  27. Liang , P., Avgeriou, P., & Clerc, V. (2009, July). Requirements reasoning for distributed requirements analysis using semantic wiki. In Fourth IEEE International Conference on Global Software Engineering, 2009 . ICGSE 2009 (pp. 388–393). IEEE, Limerick, Ireland.
  28. Lutz , R., Schäfer, S., & Diehl, S. (2012, September). Using mobile devices for collaborative requirements engineering. In Proceedings of the 27th IEEE/ACM International Conference on Automated Software Engineering (pp. 298–301). ACM, Essen, Germany.
  29. Mäder , P., Jones, P. L., Zhang, Y., & Cleland-Huang, J. (2013). Strategic traceability for safety-critical projects. IEEE Software , 30(3): 58–66.
  30. Maiden , N., Omo, O., Seyff, N., Grunbacher, P., & Mitteregger, K. (2007). Determining stakeholder needs in the workplace: How mobile technologies can help. IEEE Software , 24: 46–52.
  31. Martakis , A., & Daneva, M. (2013). Handling requirements dependencies in agile projects: A focus group with agile software development practitioners. In IEEE 7th International Conference on Research Challenges in Information Science (RCIS) (pp. 1–11). IEEE, Paris, France.
  32. RTCA. (2011). Software Considerations in Airborne Systems and Equipment Certification . DO-178C. Radio Technical Commission for Aeronautics (RTCA), Washington, DC.
  33. Russell , S., & Creighton, O. (2011, August). Virtual world tools for requirements engineering. In 2011 Fourth International Workshop on Multimedia and Enjoyable Requirements Engineering-Beyond Mere Descriptions and with More Fun and Games (MERE ) (pp. 17–20). Trento, Italy.
  34. Sharma , S., & Pandey, S. K. (2013). Revisiting requirements elicitation techniques. International Journal of Computer Applications , 75(12): 35–39.
  35. Sharma , S., & Pandey, S. K. (2014). Integrating AI techniques in SDLC: Requirements phase perspective. International Journal of Computer Applications in Technology , 5(3): 1362–136.
  36. Spoletini , P., & Ferrari, A. (2017). Requirements elicitation: A look at the future through the lenses of the past. In 2017 IEEE 25th International Requirements Engineering Conference (RE) (pp. 476–477). IEEE, Lisbon, Portugal.
  37. Sud , R. R., & Arthur, J. D. (2003). Requirements Management Tools: A Quantitative Assessment. Technical Report TR-03-10 . Computer Science, Virginia Tech, Blacksburg, VA.
  38. Volere requirements resources. (2013). http://www.volere.co.uk/tools.htm (accessed February 2017).
  39. Yang , D., Wu, D., Koolmanojwong, S., Brown, A. W., & Boehm, B. W. (2008, January). WikiWinWin: A wiki based system for collaborative requirements negotiation. In Proceedings of the 41st Annual Hawaii International Conference on System Sciences (pp. 24–24). IEEE, Waikoloa, Big Island, Hawaii.
  40. Yue , T., Briand, L. C., & Labiche, Y. (2011). A systematic review of transformation approaches between user requirements and analysis models. Requirements Engineering , 16(2): 75–99.