Requirements and Specifications

Slides:



Advertisements
Similar presentations
Software Requirements
Advertisements

Axiomatic Verification I Prepared by Stephen M. Thebaut, Ph.D. University of Florida Software Testing and Verification Lecture 17.
Software Engineering COMP 201
Software Testing and Quality Assurance
Software Requirements
Business Area Analysis Focus: Domain View (selected business area) Goals: –Isolate functions and procedures that allow the area to meet its goals –Define.
1 Software Requirements Specification Lecture 14.
1 REQUIREMENTS ENGINEERING and SYSTEMS ANALYSIS Elements and Definitions.
Requirements Gathering : Determining the scope of the system 1. Elicitiation – fact finding 2. Specification 3. Validation.
1 Lecture 5.3: SEF Ch 4 Requirements Analysis Dr. John MacCarthy UMBC CMSC 615 Fall, 2006.
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.
Topics Covered: Software requirement specification(SRS) Software requirement specification(SRS) Authors of SRS Authors of SRS Need of SRS Need of SRS.
Proofs of Correctness: An Introduction to Axiomatic Verification Prepared by Stephen M. Thebaut, Ph.D. University of Florida CEN 5035 Software Engineering.
Software Requirements Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn Lecture 4 & 5.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 5 Slide 1 Chapter 5 Software Requirements.
Lecture 7: Requirements Engineering
©Ian Sommerville 2000 Software Engineering. Chapter 6 Slide 1 Chapter 6 Software Requirements.
Requirements Engineering Methods for Requirements Engineering Lecture-30.
Requirements and Specifications Prepared by Stephen M. Thebaut, Ph.D. University of Florida Software Testing and Verification Lecture 3.
L To identify the services that the customer requires from a system and the constraints under which it operates and is developed.
Case Study: Black-Box Testing Prepared by Stephen M. Thebaut, Ph.D. University of Florida Software Testing and Verification Lecture 6.1.
(SRS) SOFTWARE REQUIREMENT SPECIFICATION(SRS) 1. Topics to be discussed.. What is an SRS? Purpose of an SRS Who reads the SRS? Who writes the SRS? Characteristics.
Requirements Engineering
Design Methods Instructor: Dr. Jerry Gao. Software Design Methods Design --> as a multistep process in which we design: a) data structureb) program structure.
Requirements and Specifications Prepared by Stephen M. Thebaut, Ph.D. University of Florida Software Testing and Verification Lecture 3.
System Requirements Specification
Software Requirements Specification Document (SRS)
Requirements Analysis
 CMMI  REQUIREMENT DEVELOPMENT  SPECIFIC AND GENERIC GOALS  SG1: Develop CUSTOMER Requirement  SG2: Develop Product Requirement  SG3: Analyze.
1 Software Testing and Quality Assurance Lecture 17 - Test Analysis & Design Models (Chapter 4, A Practical Guide to Testing Object-Oriented Software)
Functional Verification I Prepared by Stephen M. Thebaut, Ph.D. University of Florida Software Testing and Verification Lecture Notes 21.
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 11b: Component-Level Design Software Engineering: A Practitioner’s Approach, 6/e Chapter.
Software Specification
Introduction to Formal Methods
An Overview of Requirements Engineering Tools and Methodologies*
White-Box Testing Techniques IV
Software Requirements
Chapter 5 – Requirements Engineering
Requirements Validation – II
G&W Chapter 22: Test Cases Software Specification Lecture 29
(State) Model-Based Approaches I Software Specification Lecture 35
White-Box Testing Techniques IV
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
Chapter ? Quality Assessment
Black-Box Testing Techniques I
Case Study: Black-Box Testing
Requirements Analysis and Specification
IS442 Information Systems Engineering
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
Functional Verification I
Thursday’s Lecture Chemistry Building Musspratt Lecture Theatre,
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
G&W Chapter 16: Constraints Software Specification Lecture 23
Software Requirements Specification Document
Functional Verification I
Axiomatic Verification I
Software Engineering Lecture #3
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
Proofs of Correctness: An Introduction to Axiomatic Verification
Black-Box Testing Techniques III
Axiomatic Verification I
Robertson & Robertson: Chapter 2 Software Specification Lecture 10
Prepared by Stephen M. Thebaut, Ph.D. University of Florida
Algebraic Specification Software Specification Lecture 34
G&W Preface Software Specification Lecture 4
G&W Chapter 14: Functions Software Specification Lecture 21
Model-based vs. Functional Program Specification and Correctness
Formal Methods Lecture 16 March 22, 2011 CS 315 Spring 2011
Presentation transcript:

Requirements and Specifications Software Testing and Verification Lecture 3 Prepared by Stephen M. Thebaut, Ph.D. University of Florida

What are Requirements and Specifications? something required; something wanted or needed; an essential requisite... To Specify: to name; to state explicitly or in (sufficient) detail...

Roles of Requirements in Testing and Verification How are requirements used in testing? Serve as basis for black-box test case design. Source of expected results for ALL test cases. What do requirements have to do with the formal correctness assertions: {P} S {Q} ? f = [S] ? What if there are no requirements?

Roles of Requirements in Testing and Verification (cont’d) Bottom Line: testing and verification only make sense when requirements in some form are available to work with.

Exercise Consider the following pseudocode program: Sum := 0 J := 1 while J<=N do Sum := Sum + X[J] J := J+1 end_while What does it do? Is it correct?

Requirement/Specification Types Functional versus Non-Functional Formal versus Informal Structured versus Unstructured State-model based versus Operational Graphical versus Textual

A Sampling of Requirement Representations Natural language prose Numbered paragraphs (ala DoD standards) Functions, Attributes, and Constraints (ala Gause & Weinberg) Structured templates (of various sorts and levels) – e.g., Volere “shell”, XP “user stories” Decision tables Pseudocode programs (cont’d)

A Sampling of Requirement Representations (cont’d) PDL models (PSL, RSL, etc.) Cause-Effect models State-Transition models Pre- and Post-conditions Recursive (“intended”) function definitions Algebraic specifications Z-based Schemas Etc.

Exercise Identify each of the following requirements representations: Sample.specs.pdf

Requirements Sources at Different Levels Typical System-Level Sources Objectives document User manuals (e.g., “MAN Pages”) Installation documents Service manuals Requirements definition/specification (cont’d)

Requirements Sources at Different Levels (cont’d) Typical Unit-Level Sources Module/function/procedure specifications Pseudocode “Logic specifications” Object class/method specifications (cont’d)

Requirements Sources at Different Levels (cont’d) Typical Intermediate- (e.g., Product/ Component) Level Sources Product/component specification “Functional specification” Object use-include relations, sequence/collaboration diagrams, package specification

(Some) Key Attributes Completeness Consistency Unambiguousness Verifiability/Testability Correctness (?)

Completeness Possible Definition for Functional Requirements: The desired response is specified for every possible stimulus and every system state. Definition for Non-Functional Requirements: Constraints and preferences for every relevant attribute of every desired function are specified.

Consistency Possible Definition: There are no contradictions or conflicts in any specified functional or non-functional requirements.

Unambiguousness Possible Definition: Requirements are not subject to multiple interpretations. Gause & Weinberg’s heuristics for identifying potential ambiguity: “Mary Had a Little Lamb” (emphasize different words) “Mary Conned the Trader” (substitute synonyms)

“Mary had a little lamb” Heuristic

“Mary conned the trader” Heuristic Mary owned a petite lamb. Mary consumed a small amount of lamb. Mary had a little lamb. Mary was involved with a young sheep. Mary conned the trader.

Verifiability/Testability Possible Definition: Objective criteria exist for determining whether or not requirements will have been satisfied.

What about CORRECTNESS? The notion of a PROGRAM being correct (with respect to its requirements) is relatively straightforward, but what does it mean to say that a program’s REQUIREMENTS are correct? (cont’d)

What about CORRECTNESS? (cont’d) Possible Definition: The REQUIREMENTS for a (sub-) program are “correct” if the PROGRAM DESIGN which incorporates those requirements is correct with respect to its requirements. Requirements for C C Design for A

What about CORRECTNESS? (cont’d) In other words, the correctness of a (requirements) specification would be considered with respect to a design that incorporates that specification. For example, you might ask: “Was the decision to take this course† correct with respect to my overall plan of study?” † A self-imposed “requirement”. (cont’d)

What about CORRECTNESS? (cont’d) Based on our definition, the answer would be “yes” if your plan of study (a design that incorporates this course) satisfies your educational goals (i.e., the requirements for your plan).

Role of testers in Requirements Engineering? What role can/should testers play in assessing/verifying the degree to which requirements are: complete, consistent, unambiguous, verifiable, correct?

Requirements and Specifications Software Testing and Verification Lecture 3 Prepared by Stephen M. Thebaut, Ph.D. University of Florida