Miguel Garzón - University of Ottawa Based on slides by Gunter Mussbacher with material from: Ian Zimmerman (Telelogic, 2001), Ivy Hooks (Compliance Automation,

Slides:



Advertisements
Similar presentations
© 2014 Systems and Proposal Engineering Company. All Rights Reserved Using Natural Language Parsing (NLP) for Automated Requirements Quality Analysis Chris.
Advertisements

What colour is the house on the hill? Waterloo – Wellington IIBA Chapter presentation April 11, 2007 David Milne.
Writing Better Requirements DRAFT
Software Requirements
Properties of Good Requirements Chapter 8. Understandable by end users End-users are not often software engineers. Terminology used must agree with end-
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Evaluating Requirements. Outline Brief Review Stakeholder Review Requirements Analysis Summary Activity 1.
Tailoring Needs Chapter 3. Contents This presentation covers the following: – Design considerations for tailored data-entry screens – Design considerations.
Introduction to Software Engineering Dr. Basem Alkazemi
Lecture 5: Requirements Specifications
CSC 402 Requirements Engineering 1. 2 Problem Definition Requirements Definition informal statement of need for system natural language statement of what.
Computer Engineering 203 R Smith Requirements Management 6/ Requirements IEEE Standard Glossary A condition or capability needed by a user to solve.
Analysis Stage (Phase I) The goal: understanding the customer's requirements for a software system. n involves technical staff working with customers n.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 6 Slide 1 Software Requirements.
Software Requirements
Creating Architectural Descriptions. Outline Standardizing architectural descriptions: The IEEE has published, “Recommended Practice for Architectural.
Overview of Software Requirements
School of Computer ScienceG53FSP Formal Specification1 Dr. Rong Qu Introduction to Formal Specification
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 5 Slide 1 Requirements engineering l The process of establishing the services that the.
SOFTWARE REQUIREMENTS SPECIFICATION (SRS)
Lecture 18: Specifications
Software Engineering 2003 Jyrki Nummenmaa 1 REQUIREMENT SPECIFICATION Today: Requirements Specification Requirements tell us what the system should.
SE-02 SOFTWARE ENGINEERING LECTURE 3 Today: Requirements Analysis Requirements tell us what the system should do - not how it should do it. Requirements.
المحاضرة الثالثة. Software Requirements Topics covered Functional and non-functional requirements User requirements System requirements Interface specification.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 6 Slide 1 Software Requirements.
Negotiation and Specification Process
ECE450 – Software Engineering II
Writing Quality Requirements Karl E. Wiegers Presented by: Ricardo Carlos.
Software Requirements Presented By Dr. Shazzad Hosain.
Software Requirements Engineering CSE 305 Lecture-2.
A GENERIC PROCESS FOR REQUIREMENTS ENGINEERING Chapter 2 1 These slides are prepared by Enas Naffar to be used in Software requirements course - Philadelphia.
Software Engineering – University of Tampere, CS DepartmentJyrki Nummenmaa REQUIREMENT SPECIFICATION Today: Requirements Specification.
Intermediate 2 Software Development Process. Software You should already know that any computer system is made up of hardware and software. The term hardware.
1 15 quality goals for requirements  Justified  Correct  Complete  Consistent  Unambiguous  Feasible  Abstract  Traceable  Delimited  Interfaced.
Writing requirements specifications. Why we need requirements specifications To give structure to your desires To avoid waste of resources To avoid slippage.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
IS550: Software requirements engineering Dr. Azeddine Chikh 2. Functional and non-functional requirements.
L To identify the services that the customer requires from a system and the constraints under which it operates and is developed.
Systems Development Life Cycle
1 Quality Attributes of Requirements Documents Lecture # 25.
Requirements / Specifications. 01/18/10CS-499G2 Requirements Determine what the customer needs (wants) the software to do  What are requirements?  An.
Winter 2011SEG Chapter 11 Chapter 1 (Part 1) Review from previous courses Subject 1: The Software Development Process.
Software Requirements Specification (SRS)
Evaluating Requirements
Software Requirements Specification Document (SRS)
Requirements Engineering Requirements Management Lecture-25.
Requirement engineering & Requirement tasks/Management. 1Prepared By:Jay A.Dave.
Requirements Engineering
Chapter 4 Requirements Engineering (1/3) Yonsei University 2 nd Semester, 2015 Sanghyun Park.
CSC480 Software Engineering Lecture 7 September 16, 2002.
Software Engineering, COMP201 Slide 1 Software Requirements BY M D ACHARYA Dept of Computer Science.
CS628 - Object Oriented Analysis And Design. The Four Pillars of Successful Software Development -Avoid Classic Mistakes -Apply Development Fundamentals.
HighImpactSoft 2010 Organizing a Better Future. Agenda Specify Goals ScopeDefinitions Process Model Preliminary Requirements Issues and solutions TraceabilityPrototype.
Requirement Elicitation Review – Class 8 Functional Requirements Nonfunctional Requirements Software Requirements document Requirements Validation and.
 System Requirement Specification and System Planning.
SEG 3300 W RITING B ETTER R EQUIREMENTS Supplement to Chapter 4 Source: Ian Zimmerman, Daniel Amyot Telelogic, July 9, 2001.
Testability.
Writing Better Requirements
Software Requirements
Chapter 4 Requirements Engineering (1/3)
Chapter 4 – Requirements Engineering
Chapter 5 – Requirements Engineering
SYSTEM ANALYSIS AND DESIGN
CSC480 Software Engineering
Software Requirements analysis & specifications
Writing Better Requirements
Requirements Factoring Themes
Dr. Jiacun Wang Department of Software Engineering Monmouth University
Writing Better Requirements
Presentation transcript:

Miguel Garzón - University of Ottawa Based on slides by Gunter Mussbacher with material from: Ian Zimmerman (Telelogic, 2001), Ivy Hooks (Compliance Automation, 1998) Writing Better Requirements SEG3101

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 2 Table of Contents Martha can’t write requirements because… Anatomy of a Good / Bad User Requirement Standard for Writing a Requirement Writing Pitfalls to Avoid A Few Simple Tests… The greatest challenge to any thinker is stating the problem in a way that will allow a solution. 1 [1] Bertrand Russell,

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 3

4 Martha can’t write requirements because… She doesn’t know what to do! She was not taught at school She doesn’t know how to write She doesn’t understand the process She doesn’t have the necessary data She doesn’t know what she wants She doesn’t understand why! She doesn’t understand the impact / changes She thinks this is “just a document” She’d rather do something else! She’d rather design – she sees no reward She doesn’t have enough time She thinks the review process will catch the errors Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools Source: Compliance Automation, Inc., 1998

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 5 Anatomy of a Good User Requirement Identifies the system under discussion and a desired end result that is wanted within a specified time that is measurable The challenge is to seek out the system under discussion, end result, and success measure in every requirement The Online Banking System shall allow the Internet user to access her current account balance in less than 5 seconds. Defines the system under discussion Verb with correct identifier (shall or may) Defines a positive end result Quality criteria Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 6 Example of a Bad User Requirement The Internet User quickly sees her current account balance on the laptop screen. Cannot write a requirement on the user No identifier for the verb Vague quality criteria X What versus how Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 7 Standard for Writing a Requirement Each requirement must first form a complete sentence Not a bullet list of buzzwords, list of acronyms, or sound bites on a slide Each requirement contains a subject and predicate Subject: a user type (watch out!) or the system under discussion Predicate: a condition, action, or intended result Verb in predicate: “shall” / “will” / “must” to show mandatory nature; “may” / “should” to show optionality The whole requirement provides the specifics of a desired end goal or result Contains a success criterion or other measurable indication of the quality Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 8 Standard for Writing a Requirement Several standards define fairly precisely how to use key words (verbs and adjectives) in their documents. Example: IETF RFC 2119: Key words for use in RFCs to Indicate Requirement LevelsIETF RFC 2119 MUST, REQUIRED or SHALL: mean that the definition is an absolute requirement of the spec. MUST NOT or SHALL NOT: absolute prohibition SHOULD or RECOMMENDED: think twice about not doing it! SHOULD NOT or NOT RECOMMENDED: think twice about doing it! MAY or OPTIONAL: truly optional Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 9 Standard for Writing a Requirement Look for the following characteristics in each requirement Feasible (not wishful thinking) Needed (provides the specifics of a desired end goal or result) Testable (contains a success criterion/other measurable indication of quality) Clear, unambiguous, precise, one thought Prioritized ID Note: several characteristics are mandatory (feasible, needed, testable) whereas others improve communication Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 10 Writing Pitfalls to Avoid Never describe how the system is going to achieve something (over-specification), always describe what the system is supposed to do Refrain from designing the system prematurely Danger signs: using names of components, materials, software objects, fields & records in the user or system requirements Designing the system too early may possibly increase system costs Do no mix different kinds of requirements (e.g., requirements for users, system, and how the system should be designed, tested, or installed) Do not mix different requirements levels (e.g., the system and subsystems) Danger signs: high level requirements mixed in with database design, software terms, or very technical terms Beware: may depend on the level of abstraction… Your what is my how! Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 11 Writing Pitfalls to Avoid “What versus how” test The system shall use Microsoft Outlook to send an to the customer with the purchase confirmation. The system shall inform the customer that the purchase is confirmed. X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 12 Writing Pitfalls to Avoid Never build in let-out or escape clauses Requirements with let-outs or escapes are dangerous because of problems that arise in testing Danger signs: if, but, when, except, unless, although These terms may however be useful when the description of a general case with exceptions is much clearer and complete that an enumeration of specific cases Avoid ambiguity Write as clearly and explicitly as possible Ambiguities can be caused by: The word or to create a compound requirement Poor definition (giving only examples or special cases) The words etc., …and so on (imprecise definition) Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 13 Writing Pitfalls to Avoid Do not use vague indefinable terms Many words used informally to indicate quality are too vague to be verified Danger signs: user-friendly, highly versatile, flexible, to the maximum extent, approximately, as much as possible, minimal impact The EasyEntry System shall be easy to use and require a minimum of training except for the professional mode. X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 14 Writing Pitfalls to Avoid Do not make multiple requirements Keep each requirement as a single sentence Conjunctions (words that join sentences together) are danger signs: and, or, with, also Do not ramble Long sentences with arcane language References to unreachable documents The Easy Entry Navigator module shall consist of order entry and communications, order processing, result processing, and reporting. The Order Entry module shall be integrated with the Organization Intranet System and results are stored in the group’s electronic customer record. X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 15 Writing Pitfalls to Avoid Do not speculate There is no room for “wish lists” – general terms about things that somebody probably wants Danger signs: vague subject type and generalization words such as usually, generally, often, normally, typically Do not express suggestions or possibilities Suggestions that are not explicitly stated as requirements are invariably ignored by developers Danger signs: may, might, should, ought, could, perhaps, probably Avoid wishful thinking Wishful thinking means asking for the impossible (e.g., 100% reliable, safe, handle all failures, fully upgradeable, run on all platforms) The Easy Entry System may be fully adaptable to all situations and often require no reconfiguration by the user. X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 16 A Few Simple Tests…(1) “What versus how” test discussed earlier Example: a requirement may specify an ordinary differential equation that must be solved, but it should not mention that a fourth order Runge-Kutta method should be employed “What is ruled out” test Does the requirement actually make a decision (if no alternatives are ruled out, then no decision has really been made) Example: a requirement may be already covered by a more general one Source: Spencer Smith, McMaster U. Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 17 A Few Simple Tests…(2) “Negation” test If the negation of a requirement represents a position that someone might argue for, then the original decision is likely to be meaningful Source: Spencer Smith, McMaster U. The software shall be reliable. X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 18 Towards Good Requirements Specifications (1) Valid (or “correct”) Expresses actual requirements Complete Specifies all the things the system must do (including contingencies)...and all the things it must not do! Conceptual Completeness (e.g., responses to all classes of input) Structural Completeness (e.g., no TBDs!!!) Consistent Does not contradict itself ( satisfiable ) Uses all terms consistently Note: inconsistency can be hard to detect, especially in concurrency/timing aspects and condition logic Formal modeling can help Beneficial Has benefits that outweigh the costs of development Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools Source: Adapted from Blum 1992, pp164-5 and the IEEE-STD

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 19 Towards Good Requirements Specifications (2) Necessary Doesn’t contain anything that isn’t “required” Unambiguous Every statement can be read in exactly one way Clearly defines confusing terms (e.g., in a glossary) Uniquely identifiable For traceability and version control Verifiable A process exists to test satisfaction of each requirement “every requirement is specified behaviorally” Understandable (clear) E.g., by non-computer specialists Modifiable Must be kept up to date! Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools Source: Adapted from Blum 1992, pp164-5 and the IEEE-STD

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 20 Typical Mistakes Noise = the presence of text that carries no relevant information to any feature of the problem Silence = a feature that is not covered by any text Over-specification = text that describes a feature of the solution, rather than the problem Contradiction = text that defines a single feature in a number of incompatible ways Ambiguity = text that can be interpreted in >=2 different ways Forward reference = text that refers to a feature yet to be defined Wishful thinking = text that defines a feature that cannot possibly be validated Jigsaw puzzles = e.g., distributing requirements across a document and then cross-referencing Inconsistent terminology = inventing and then changing terminology Putting the onus on the development staff = i.e. making the reader work hard to decipher the intent Writing for the hostile reader (fewer of these exist than friendly ones) Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools Source: Steve Easterbrook, U. of Toronto

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 21 Rate these Requirements Invoices, acknowledgments, and shipping notices shall be automatically faxed during the night, so customers can get them first thing in the morning. The Order Entry system provides for quick, user- friendly and efficient entry and processing of all orders. Changing report layouts, invoices, labels, and form letters shall be accomplished. The system shall be upgraded in one whack. The system has a goal that as much of the IS data as possible be pulled directly from the T&M estimate. X X X X X Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 22 Remember the key questions “Why?” or “What is the purpose of this?” Feasible Needed Testable Key Questions and Characteristics Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools

SEG3101. Writing Better Requirements. © 2009 G. Mussbacher, D. Amyot 23 A Few Syntactic Analysis Tools QuARS Quality Analyzer of Requirements Specification ARM Automated Requirement Measurement Tool TIGER Pro Tool to Ingest and Elucidate Requirements Martha can’t … Good & Bad Standard Pitfalls to Avoid A Few Simple Tests Summary & Tools