SlideShare una empresa de Scribd logo
1 de 40
Requirements 1
Understand and specifying
requirements
A problem of scale
For small scale: understand and specifying requirements is
easy
For large scale: very hard; probably the hardest, most
problematic and error prone
The requirements task:
Input: User needs in minds of people (hopefully)
Output: precise statement of what the future system will
do
Requirements 2
Challenges
 Identifying and specifying requirements
 Necessarily involves people interaction
 Cannot be automated
Requirements 3
Background..
 What is a Requirement?
 A condition or capability that must be possessed
by a system (IEEE)
 What is the work product of the Req. phase ?
 A software requirements specification (SRS)
document
 What is an SRS ?
 A complete specification of what the proposed
system should do!
Requirements 4
Purpose of SRS document?
 SRS establishes basis of agreement between the
user and the supplier.
 Users needs have to be satisfied, but user may not
understand software
 Developers will develop the system, but may not know
about problem domain
 SRS is
 the medium to bridge the communications gap, and
 specifies user needs in a manner both can understand
Requirements 5
Need for SRS…
Helps user understand his needs.
users do not always know their needs
must analyze and understand the potential
The requirement process helps clarify needs
SRS provides a reference for validation of the
final product
Clear understanding about what is expected.
Validation - “ SW satisfies the SRS “
Requirements 6
Need for SRS…
 High quality SRS essential for high Quality SW
 Requirement errors get manifested in final sw
 To satisfy the quality objective, must begin with
high quality SRS
 Requirements defects cause later problems
 25% of all defects in one study; 54% of all defects
found after user testing
 defects often found in previously approved SRS.
Requirements 7
Need for SRS…
 Good SRS reduces the development cost
 SRS errors are expensive to fix later
 Req. changes can cost a lot (up to 40%)
 Good SRS can minimize changes and errors
 Substantial savings; extra effort spent during req.
saves multiple times that effort
 An Example
 Cost of fixing errors in req. , design , coding ,
acceptance testing and operation are 2 , 5 , 15 , 50 ,
150 person-months
Requirements 8
Requirements Process
 Basic activities:
 Problem or requirement analysis
 Requirement specification
 Validation
 Analysis involves elicitation and is the hardest
Requirements 9
Requirement process..
 Process is not linear, it is
iterative and parallel
 Overlap between phases
- some parts may be
analyzed and specified
 Specification itself may
help analysis
 Validation can show gaps
that can lead to further
analysis and spec
Requirements 10
needs
Analysis
Specification
Validation
Requirements Process…
 Divide and conquer is the basic strategy
 Decompose into small parts, understand each
part and relation between parts
 Large volumes of information is generated
 Organizing them is a key
 Techniques like data flow diagrams, object
diagrams etc. used in the analysis
Requirements 11
Problem Analysis
Aim: to gain an understanding of the needs,
requirements, and constraints on the
software
Analysis involves
Interviewing client and users
Reading manuals
Studying current systems
Helping client/users understand new
possibilities
Like becoming a consultant
Must understand the working of the
organization , client, and users
Requirements 12
Analysis
Specification
Validation
Problem Analysis…
 Some issues
 Obtaining the necessary information
 Brainstorming: interacting with clients to establish
desired properties
 Information organization, as large amount of info.
gets collected
 Ensuring completeness
 Ensuring consistency
 Avoiding internal design
Requirements 13
Problem Analysis…
 Interpersonal issues are important
 Communication skills are very important
 Basic principle: problem partition
 Partition w.r.t what?
 Object - OO analysis
 Function - structural analysis
 Events in the system – event partitioning
 Projection - get different views
 Will discuss few different analysis techniques
Requirements 14
Informal Approach to
Analysis
 No defined methodology; info obtained through
analysis, observation, interaction, discussions,…
 No formal model of the system built
 Obtained info organized in the SRS; SRS
reviewed with clients
 Relies on analyst experience and feedback from
clients in reviews
 Useful in many contexts
Requirements 15
Data Flow Modeling
 Widely used; focuses on functions performed
in the system
 Views a system as a network of data
transforms through which the data flows
 Uses data flow diagrams (DFDs) and
functional decomposition in modeling
 The Structured System Analysis and Design
(SSAD) methodology uses DFD to organize
information, and guide analysis
Requirements 16
Example DFD: Enrolling in a
University
Requirements 17
In Gane and Sarson notation
Data flow diagrams
There are only four symbols:
1. Squares representing external
entities, which are sources or
destinations of data.
2.Rounded rectangles representing processes,
which take data as input, do something to it, and
output it.
3. Arrows representing the data flows, which can
either be electronic data or physical items.
4.Open-ended rectangles representing data
stores, including electronic stores such as
databases or XML files and physical stores such
as or filing cabinets or stacks of paper.
Requirements 18
Data flow diagrams
 A DFD shows flow of data through the system
 Views system as transforming inputs to outputs
 Transformation done through transforms
 DFD captures how transformation occurs from input to
output as data moves through the transforms
 Not limited to software
Requirements 19
Data flow diagrams…
 Other common DFD notation:
 A rectangle represents a source or sink and is
originator/consumer of data (often outside the
system)
 Transforms represented by named circles/bubbles
 Bubbles connected by arrows on which named data
travels
 Data stored underlined
 Moral: choose one and stick with it – can be
helpful to provide a legend to make sure
readers are aware of the conventions in use
Requirements 20
DFD Example
Requirements 21
DFD Conventions
 External files shown as labeled straight lines
 Need for multiple data flows by a process
represented by * (means and)
 OR relationship represented by +
 All processes and arrows should be named
 Processes should represent transforms, arrows
should represent some data
Requirements 22
Data flow diagrams…
 Focus on what transforms happen, how they
are done is not important
 Usually major inputs/outputs shown, minor
are ignored in this modeling
 No loops , conditional thinking , …
 DFD is NOT a control chart, no algorithmic
design/thinking
Requirements 23
Other Approaches to RA
 Prototyping
 Evolutionary
 Throw-away
 Object Oriented
 Classes, attributes, methods
 Association between classes
 Class hierarchies
Requirements 24
Requirements Specification
Final output of requirements task is the SRS
Why are DFDs, OO models, etc not SRS ?
SRS focuses on external behavior, while
modeling focuses on problem structure
UI etc. not modeled, but have to be in SRS
Error handling, constraints etc. also needed in
SRS
Transition from analysis to specification is not
straight forward
Knowledge about the system acquired in
analysis used in specification
Requirements 25
Analysis
Specification
Validation
Characteristics of an SRS
 Correct
 Complete
 Unambiguous
 Consistent
 Verifiable
 Traceable
 Modifiable
 Ranked for importance and/or stability
Requirements 26
Characteristics…
 Correctness
 Each requirement accurately represents some
desired feature in the final system
 Completeness
 All desired features/characteristics specified
 Hardest to satisfy
 Completeness and correctness strongly related
 Unambiguous
 Each req has exactly one meaning
 Without this errors will creep in
 Important as natural languages often usedRequirements 27
Characteristics…
 Verifiability
 There must exist a cost effective way of checking if sw
satisfies requirements
 Consistent
 two requirements don’t contradict each other
 Traceable
 The origin of the req, and how the req relates to
software elements can be determined
 Ranked for importance/stability
 Needed for prioritizing in construction
 To reduce risks due to changing requirements
Requirements 28
Components of an SRS
 What should an SRS contain ?
 Clarifying this will help ensure completeness
 An SRS must specify requirements on
 Functionality
 Performance
 Design constraints
 External interfaces
Requirements 29
Functional Requirements
 Heart of the SRS document; this forms the bulk
of the specs
 Specifies all the functionality that the system
should support
 Outputs for the given inputs and the relationship
between them
 All operations the system is to do
 Must specify behavior for invalid inputs too
Requirements 30
Performance Requirements
 All the performance constraints on the
software system
 Generally on response time , throughput etc
=> dynamic
 Capacity requirements => static
 Must be in measurable terms (verifiability)
 Eg resp time should be xx 90% of the time
Requirements 31
Design Constraints
 Factors in the client environment that restrict
the choices
 Some such restrictions
 Standard compliance and compatibility with other
systems
 Hardware Limitations
 Reliability, fault tolerance, backup req.
 Security
Requirements 32
External Interface
 All interactions of the software with people,
hardware, and sw
 User interface most important
 General requirements of “friendliness” should
be avoided
 These should also be verifiable
Requirements 33
Specification Language
 Language should support desired
charateristics of the SRS
 Formal languages are precise and
unambiguous but hard
 Natural languages mostly used, with some
structure for the document
 Formal languages used for special features or
in highly critical systemsRequirements 34
Structure of an SRS
 Introduction
 Purpose , the basic objective of the system
 Scope of what the system is to do , not to do
 Overview
 Overall description
 Product perspective
 Product functions
 User characteristics
 Assumptions
 Constraints
Requirements 35
Structure of an SRS…
Specific requirements
External interfaces
Functional requirements
Performance requirements
Design constraints
Acceptable criteria
desirable to specify this up front.
This standardization of the SRS was done by IEEE.
Requirements 36
Requirements Validation
 Lot of room for misunderstanding
 Errors possible
 Expensive to fix req defects later
 Must try to remove most errors in SRS
 Most common errors
 Omission - 30%
 Inconsistency - 10-30%
 Incorrect fact - 10-30%
 Ambiguity - 5 -20%
Requirements 37
Analysis
Specification
Validation
Requirements Review
 SRS reviewed by a group of people
 Group: author, client, user, dev team rep.
 Must include client and a user
 Process – standard inspection process
 Effectiveness - can catch 40-80% of req. errors
Requirements 38
Summary
 Having a good quality SRS is essential for Q&P
 The req. phase has 3 major sub phases
 analysis , specification and validation
 Analysis
 for problem understanding and modeling
 Methods used: SSAD, OOA , Prototyping
 Key properties of an SRS: correctness,
completeness, consistency, traceablity,
unambiguousness
Requirements 39
Summary..
 Specification
 must contain functionality, performance ,
interfaces and design constraints
 Mostly natural languages used
 Validation - through reviews
Requirements 40

Más contenido relacionado

La actualidad más candente

Software Engineering- Requirement Elicitation and Specification
Software Engineering- Requirement Elicitation and SpecificationSoftware Engineering- Requirement Elicitation and Specification
Software Engineering- Requirement Elicitation and SpecificationNishu Rastogi
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationAjit Nayak
 
SOFTWARE PROJECT MANAGEMENT TOOL PPT
SOFTWARE PROJECT MANAGEMENT TOOL PPTSOFTWARE PROJECT MANAGEMENT TOOL PPT
SOFTWARE PROJECT MANAGEMENT TOOL PPTSai Charan
 
Software cost estimation techniques presentation
Software cost estimation techniques presentationSoftware cost estimation techniques presentation
Software cost estimation techniques presentationKudzai Rerayi
 
Phased life cycle model
Phased life cycle modelPhased life cycle model
Phased life cycle modelStephennancy
 
Software architecture design ppt
Software architecture design pptSoftware architecture design ppt
Software architecture design pptfarazimlak
 
Introduction to Requirement engineering
Introduction to Requirement engineeringIntroduction to Requirement engineering
Introduction to Requirement engineeringNameirakpam Sundari
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notesSiva Ayyakutti
 
software requirement specification
software requirement specificationsoftware requirement specification
software requirement specificationmaliksiddique1
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software EngineeringFáber D. Giraldo
 
Software requirement and specification
Software requirement and specificationSoftware requirement and specification
Software requirement and specificationAman Adhikari
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineeringDarshit Metaliya
 
Requirement analysis and specification
Requirement analysis and specificationRequirement analysis and specification
Requirement analysis and specificationM.E. at GTU- PG School
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement SpecificationNiraj Kumar
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 

La actualidad más candente (20)

Software Engineering- Requirement Elicitation and Specification
Software Engineering- Requirement Elicitation and SpecificationSoftware Engineering- Requirement Elicitation and Specification
Software Engineering- Requirement Elicitation and Specification
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
 
SOFTWARE PROJECT MANAGEMENT TOOL PPT
SOFTWARE PROJECT MANAGEMENT TOOL PPTSOFTWARE PROJECT MANAGEMENT TOOL PPT
SOFTWARE PROJECT MANAGEMENT TOOL PPT
 
Software cost estimation techniques presentation
Software cost estimation techniques presentationSoftware cost estimation techniques presentation
Software cost estimation techniques presentation
 
Software Architecture
Software ArchitectureSoftware Architecture
Software Architecture
 
Requirements Engineering
Requirements EngineeringRequirements Engineering
Requirements Engineering
 
Phased life cycle model
Phased life cycle modelPhased life cycle model
Phased life cycle model
 
Software architecture design ppt
Software architecture design pptSoftware architecture design ppt
Software architecture design ppt
 
Introduction to Requirement engineering
Introduction to Requirement engineeringIntroduction to Requirement engineering
Introduction to Requirement engineering
 
Software requirements
Software requirementsSoftware requirements
Software requirements
 
Requirements management
Requirements managementRequirements management
Requirements management
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
 
software requirement specification
software requirement specificationsoftware requirement specification
software requirement specification
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 
Software requirement and specification
Software requirement and specificationSoftware requirement and specification
Software requirement and specification
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineering
 
Requirement analysis and specification
Requirement analysis and specificationRequirement analysis and specification
Requirement analysis and specification
 
Staffing level estimation
Staffing level estimation Staffing level estimation
Staffing level estimation
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement Specification
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 

Destacado

Requirement Analysis
Requirement AnalysisRequirement Analysis
Requirement Analysissslovepk
 
requirements analysis and design
requirements analysis and designrequirements analysis and design
requirements analysis and designPreeti Mishra
 
Business requirement analysis session 5
Business requirement analysis   session 5Business requirement analysis   session 5
Business requirement analysis session 5sampad_senapati
 
Requirement and Specification
Requirement and SpecificationRequirement and Specification
Requirement and Specificationsarojsaroza
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and TestingDr Sukhpal Singh Gill
 
Model based software testing
Model based software testingModel based software testing
Model based software testingSachin MK
 
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGA WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGJournal For Research
 
Requirement Analysis
Requirement AnalysisRequirement Analysis
Requirement AnalysisWebx
 
Software (requirement) analysis using uml
Software (requirement) analysis using umlSoftware (requirement) analysis using uml
Software (requirement) analysis using umlDhiraj Shetty
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testingSlideshare
 
Software requirement specification
Software requirement specificationSoftware requirement specification
Software requirement specificationAmit Gandhi
 
Tech On Trend - Chatbots
Tech On Trend - ChatbotsTech On Trend - Chatbots
Tech On Trend - ChatbotsPioneers.io
 
Chatbot 101 - Robert McGovern
Chatbot 101 - Robert McGovernChatbot 101 - Robert McGovern
Chatbot 101 - Robert McGovernRobert McGovern
 
College Management System project srs 2015
College Management System project srs 2015College Management System project srs 2015
College Management System project srs 2015Surendra Mahala
 
Artificially Intelligent chatbot Implementation
Artificially Intelligent chatbot ImplementationArtificially Intelligent chatbot Implementation
Artificially Intelligent chatbot ImplementationRakesh Chintha
 

Destacado (18)

Requirement Analysis
Requirement AnalysisRequirement Analysis
Requirement Analysis
 
requirements analysis and design
requirements analysis and designrequirements analysis and design
requirements analysis and design
 
Business requirement analysis session 5
Business requirement analysis   session 5Business requirement analysis   session 5
Business requirement analysis session 5
 
Requirement and Specification
Requirement and SpecificationRequirement and Specification
Requirement and Specification
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and Testing
 
Model based software testing
Model based software testingModel based software testing
Model based software testing
 
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGA WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
 
Blackbox
BlackboxBlackbox
Blackbox
 
SRS Slide
SRS SlideSRS Slide
SRS Slide
 
Requirement Analysis
Requirement AnalysisRequirement Analysis
Requirement Analysis
 
Software (requirement) analysis using uml
Software (requirement) analysis using umlSoftware (requirement) analysis using uml
Software (requirement) analysis using uml
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testing
 
Software requirement specification
Software requirement specificationSoftware requirement specification
Software requirement specification
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
Tech On Trend - Chatbots
Tech On Trend - ChatbotsTech On Trend - Chatbots
Tech On Trend - Chatbots
 
Chatbot 101 - Robert McGovern
Chatbot 101 - Robert McGovernChatbot 101 - Robert McGovern
Chatbot 101 - Robert McGovern
 
College Management System project srs 2015
College Management System project srs 2015College Management System project srs 2015
College Management System project srs 2015
 
Artificially Intelligent chatbot Implementation
Artificially Intelligent chatbot ImplementationArtificially Intelligent chatbot Implementation
Artificially Intelligent chatbot Implementation
 

Similar a Requirement specification

software requirement and architecture.pdf
software requirement and architecture.pdfsoftware requirement and architecture.pdf
software requirement and architecture.pdfwajoce8790
 
Ch 2-RE-process.pptx
Ch 2-RE-process.pptxCh 2-RE-process.pptx
Ch 2-RE-process.pptxbalewayalew
 
5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)randhirlpu
 
Sofyware Engineering
Sofyware EngineeringSofyware Engineering
Sofyware EngineeringAmberSinghal1
 
CIB 3103: Requirements Capture
CIB 3103: Requirements CaptureCIB 3103: Requirements Capture
CIB 3103: Requirements CaptureAhmad Ammari
 
Chapter 2 SRS_241222135554.ppt
Chapter 2 SRS_241222135554.pptChapter 2 SRS_241222135554.ppt
Chapter 2 SRS_241222135554.pptHaviQueen
 
SE_Module2.pdf
SE_Module2.pdfSE_Module2.pdf
SE_Module2.pdfADARSHN40
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...madhurpatidar2
 
Business Analyst Overview
Business Analyst OverviewBusiness Analyst Overview
Business Analyst OverviewSalil Vaidya
 
Managing IT Projects
Managing IT ProjectsManaging IT Projects
Managing IT ProjectsRhys Leong
 
Requirement Management.ppt
Requirement Management.pptRequirement Management.ppt
Requirement Management.pptSoham De
 

Similar a Requirement specification (20)

Chapter 3 requirements
Chapter 3 requirementsChapter 3 requirements
Chapter 3 requirements
 
software requirement and architecture.pdf
software requirement and architecture.pdfsoftware requirement and architecture.pdf
software requirement and architecture.pdf
 
3-Requirements.ppt
3-Requirements.ppt3-Requirements.ppt
3-Requirements.ppt
 
VTU - MIS Module 4 - SDLC
VTU - MIS Module 4 - SDLCVTU - MIS Module 4 - SDLC
VTU - MIS Module 4 - SDLC
 
Ch 2-RE-process.pptx
Ch 2-RE-process.pptxCh 2-RE-process.pptx
Ch 2-RE-process.pptx
 
5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)
 
SE UNIT-2.pdf
SE UNIT-2.pdfSE UNIT-2.pdf
SE UNIT-2.pdf
 
Sofyware Engineering
Sofyware EngineeringSofyware Engineering
Sofyware Engineering
 
CIB 3103: Requirements Capture
CIB 3103: Requirements CaptureCIB 3103: Requirements Capture
CIB 3103: Requirements Capture
 
Chapter 2 SRS_241222135554.ppt
Chapter 2 SRS_241222135554.pptChapter 2 SRS_241222135554.ppt
Chapter 2 SRS_241222135554.ppt
 
SE_Module2.pdf
SE_Module2.pdfSE_Module2.pdf
SE_Module2.pdf
 
Se lec-uosl-8
Se lec-uosl-8Se lec-uosl-8
Se lec-uosl-8
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_03-01-2022_Sof...
 
Business Analyst Overview
Business Analyst OverviewBusiness Analyst Overview
Business Analyst Overview
 
Managing IT Projects
Managing IT ProjectsManaging IT Projects
Managing IT Projects
 
SE chapters 6-7
SE chapters 6-7SE chapters 6-7
SE chapters 6-7
 
Slides chapters 6-7
Slides chapters 6-7Slides chapters 6-7
Slides chapters 6-7
 
Lecture3
Lecture3Lecture3
Lecture3
 
Requirement Management.ppt
Requirement Management.pptRequirement Management.ppt
Requirement Management.ppt
 
Requirement Analysis - Dr. Hu.pdf
Requirement Analysis - Dr. Hu.pdfRequirement Analysis - Dr. Hu.pdf
Requirement Analysis - Dr. Hu.pdf
 

Más de Abdul Basit

Atlassian git cheatsheet
Atlassian git cheatsheetAtlassian git cheatsheet
Atlassian git cheatsheetAbdul Basit
 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheetAbdul Basit
 
White box testing
White box testingWhite box testing
White box testingAbdul Basit
 
Testing the documentation
Testing the documentationTesting the documentation
Testing the documentationAbdul Basit
 
Testing software security
Testing software securityTesting software security
Testing software securityAbdul Basit
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentalsAbdul Basit
 
Test cases planning
Test cases planningTest cases planning
Test cases planningAbdul Basit
 
Software Testing
Software TestingSoftware Testing
Software TestingAbdul Basit
 
Software Compatibility testing
Software Compatibility testingSoftware Compatibility testing
Software Compatibility testingAbdul Basit
 
Black box testing
Black box testingBlack box testing
Black box testingAbdul Basit
 
Software Automated testing and tools
Software Automated testing and toolsSoftware Automated testing and tools
Software Automated testing and toolsAbdul Basit
 
Why test software
Why test softwareWhy test software
Why test softwareAbdul Basit
 
Git Developer Cheatsheet
Git Developer CheatsheetGit Developer Cheatsheet
Git Developer CheatsheetAbdul Basit
 
Static white box testing lecture 12
Static white box testing lecture 12Static white box testing lecture 12
Static white box testing lecture 12Abdul Basit
 
Software testing lecture 10
Software testing lecture 10Software testing lecture 10
Software testing lecture 10Abdul Basit
 
Software testing lecture 9
Software testing lecture 9Software testing lecture 9
Software testing lecture 9Abdul Basit
 
Software quality assurance lecture 1
Software quality assurance lecture 1Software quality assurance lecture 1
Software quality assurance lecture 1Abdul Basit
 
Software measurement lecture 7
Software measurement lecture 7Software measurement lecture 7
Software measurement lecture 7Abdul Basit
 

Más de Abdul Basit (20)

Atlassian git cheatsheet
Atlassian git cheatsheetAtlassian git cheatsheet
Atlassian git cheatsheet
 
Github git-cheat-sheet
Github git-cheat-sheetGithub git-cheat-sheet
Github git-cheat-sheet
 
White box testing
White box testingWhite box testing
White box testing
 
Web testing
Web testingWeb testing
Web testing
 
Testing the documentation
Testing the documentationTesting the documentation
Testing the documentation
 
Testing software security
Testing software securityTesting software security
Testing software security
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Test planning
Test planningTest planning
Test planning
 
Test cases planning
Test cases planningTest cases planning
Test cases planning
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software Compatibility testing
Software Compatibility testingSoftware Compatibility testing
Software Compatibility testing
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Software Automated testing and tools
Software Automated testing and toolsSoftware Automated testing and tools
Software Automated testing and tools
 
Why test software
Why test softwareWhy test software
Why test software
 
Git Developer Cheatsheet
Git Developer CheatsheetGit Developer Cheatsheet
Git Developer Cheatsheet
 
Static white box testing lecture 12
Static white box testing lecture 12Static white box testing lecture 12
Static white box testing lecture 12
 
Software testing lecture 10
Software testing lecture 10Software testing lecture 10
Software testing lecture 10
 
Software testing lecture 9
Software testing lecture 9Software testing lecture 9
Software testing lecture 9
 
Software quality assurance lecture 1
Software quality assurance lecture 1Software quality assurance lecture 1
Software quality assurance lecture 1
 
Software measurement lecture 7
Software measurement lecture 7Software measurement lecture 7
Software measurement lecture 7
 

Último

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Último (20)

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Requirement specification

  • 2. Understand and specifying requirements A problem of scale For small scale: understand and specifying requirements is easy For large scale: very hard; probably the hardest, most problematic and error prone The requirements task: Input: User needs in minds of people (hopefully) Output: precise statement of what the future system will do Requirements 2
  • 3. Challenges  Identifying and specifying requirements  Necessarily involves people interaction  Cannot be automated Requirements 3
  • 4. Background..  What is a Requirement?  A condition or capability that must be possessed by a system (IEEE)  What is the work product of the Req. phase ?  A software requirements specification (SRS) document  What is an SRS ?  A complete specification of what the proposed system should do! Requirements 4
  • 5. Purpose of SRS document?  SRS establishes basis of agreement between the user and the supplier.  Users needs have to be satisfied, but user may not understand software  Developers will develop the system, but may not know about problem domain  SRS is  the medium to bridge the communications gap, and  specifies user needs in a manner both can understand Requirements 5
  • 6. Need for SRS… Helps user understand his needs. users do not always know their needs must analyze and understand the potential The requirement process helps clarify needs SRS provides a reference for validation of the final product Clear understanding about what is expected. Validation - “ SW satisfies the SRS “ Requirements 6
  • 7. Need for SRS…  High quality SRS essential for high Quality SW  Requirement errors get manifested in final sw  To satisfy the quality objective, must begin with high quality SRS  Requirements defects cause later problems  25% of all defects in one study; 54% of all defects found after user testing  defects often found in previously approved SRS. Requirements 7
  • 8. Need for SRS…  Good SRS reduces the development cost  SRS errors are expensive to fix later  Req. changes can cost a lot (up to 40%)  Good SRS can minimize changes and errors  Substantial savings; extra effort spent during req. saves multiple times that effort  An Example  Cost of fixing errors in req. , design , coding , acceptance testing and operation are 2 , 5 , 15 , 50 , 150 person-months Requirements 8
  • 9. Requirements Process  Basic activities:  Problem or requirement analysis  Requirement specification  Validation  Analysis involves elicitation and is the hardest Requirements 9
  • 10. Requirement process..  Process is not linear, it is iterative and parallel  Overlap between phases - some parts may be analyzed and specified  Specification itself may help analysis  Validation can show gaps that can lead to further analysis and spec Requirements 10 needs Analysis Specification Validation
  • 11. Requirements Process…  Divide and conquer is the basic strategy  Decompose into small parts, understand each part and relation between parts  Large volumes of information is generated  Organizing them is a key  Techniques like data flow diagrams, object diagrams etc. used in the analysis Requirements 11
  • 12. Problem Analysis Aim: to gain an understanding of the needs, requirements, and constraints on the software Analysis involves Interviewing client and users Reading manuals Studying current systems Helping client/users understand new possibilities Like becoming a consultant Must understand the working of the organization , client, and users Requirements 12 Analysis Specification Validation
  • 13. Problem Analysis…  Some issues  Obtaining the necessary information  Brainstorming: interacting with clients to establish desired properties  Information organization, as large amount of info. gets collected  Ensuring completeness  Ensuring consistency  Avoiding internal design Requirements 13
  • 14. Problem Analysis…  Interpersonal issues are important  Communication skills are very important  Basic principle: problem partition  Partition w.r.t what?  Object - OO analysis  Function - structural analysis  Events in the system – event partitioning  Projection - get different views  Will discuss few different analysis techniques Requirements 14
  • 15. Informal Approach to Analysis  No defined methodology; info obtained through analysis, observation, interaction, discussions,…  No formal model of the system built  Obtained info organized in the SRS; SRS reviewed with clients  Relies on analyst experience and feedback from clients in reviews  Useful in many contexts Requirements 15
  • 16. Data Flow Modeling  Widely used; focuses on functions performed in the system  Views a system as a network of data transforms through which the data flows  Uses data flow diagrams (DFDs) and functional decomposition in modeling  The Structured System Analysis and Design (SSAD) methodology uses DFD to organize information, and guide analysis Requirements 16
  • 17. Example DFD: Enrolling in a University Requirements 17 In Gane and Sarson notation
  • 18. Data flow diagrams There are only four symbols: 1. Squares representing external entities, which are sources or destinations of data. 2.Rounded rectangles representing processes, which take data as input, do something to it, and output it. 3. Arrows representing the data flows, which can either be electronic data or physical items. 4.Open-ended rectangles representing data stores, including electronic stores such as databases or XML files and physical stores such as or filing cabinets or stacks of paper. Requirements 18
  • 19. Data flow diagrams  A DFD shows flow of data through the system  Views system as transforming inputs to outputs  Transformation done through transforms  DFD captures how transformation occurs from input to output as data moves through the transforms  Not limited to software Requirements 19
  • 20. Data flow diagrams…  Other common DFD notation:  A rectangle represents a source or sink and is originator/consumer of data (often outside the system)  Transforms represented by named circles/bubbles  Bubbles connected by arrows on which named data travels  Data stored underlined  Moral: choose one and stick with it – can be helpful to provide a legend to make sure readers are aware of the conventions in use Requirements 20
  • 22. DFD Conventions  External files shown as labeled straight lines  Need for multiple data flows by a process represented by * (means and)  OR relationship represented by +  All processes and arrows should be named  Processes should represent transforms, arrows should represent some data Requirements 22
  • 23. Data flow diagrams…  Focus on what transforms happen, how they are done is not important  Usually major inputs/outputs shown, minor are ignored in this modeling  No loops , conditional thinking , …  DFD is NOT a control chart, no algorithmic design/thinking Requirements 23
  • 24. Other Approaches to RA  Prototyping  Evolutionary  Throw-away  Object Oriented  Classes, attributes, methods  Association between classes  Class hierarchies Requirements 24
  • 25. Requirements Specification Final output of requirements task is the SRS Why are DFDs, OO models, etc not SRS ? SRS focuses on external behavior, while modeling focuses on problem structure UI etc. not modeled, but have to be in SRS Error handling, constraints etc. also needed in SRS Transition from analysis to specification is not straight forward Knowledge about the system acquired in analysis used in specification Requirements 25 Analysis Specification Validation
  • 26. Characteristics of an SRS  Correct  Complete  Unambiguous  Consistent  Verifiable  Traceable  Modifiable  Ranked for importance and/or stability Requirements 26
  • 27. Characteristics…  Correctness  Each requirement accurately represents some desired feature in the final system  Completeness  All desired features/characteristics specified  Hardest to satisfy  Completeness and correctness strongly related  Unambiguous  Each req has exactly one meaning  Without this errors will creep in  Important as natural languages often usedRequirements 27
  • 28. Characteristics…  Verifiability  There must exist a cost effective way of checking if sw satisfies requirements  Consistent  two requirements don’t contradict each other  Traceable  The origin of the req, and how the req relates to software elements can be determined  Ranked for importance/stability  Needed for prioritizing in construction  To reduce risks due to changing requirements Requirements 28
  • 29. Components of an SRS  What should an SRS contain ?  Clarifying this will help ensure completeness  An SRS must specify requirements on  Functionality  Performance  Design constraints  External interfaces Requirements 29
  • 30. Functional Requirements  Heart of the SRS document; this forms the bulk of the specs  Specifies all the functionality that the system should support  Outputs for the given inputs and the relationship between them  All operations the system is to do  Must specify behavior for invalid inputs too Requirements 30
  • 31. Performance Requirements  All the performance constraints on the software system  Generally on response time , throughput etc => dynamic  Capacity requirements => static  Must be in measurable terms (verifiability)  Eg resp time should be xx 90% of the time Requirements 31
  • 32. Design Constraints  Factors in the client environment that restrict the choices  Some such restrictions  Standard compliance and compatibility with other systems  Hardware Limitations  Reliability, fault tolerance, backup req.  Security Requirements 32
  • 33. External Interface  All interactions of the software with people, hardware, and sw  User interface most important  General requirements of “friendliness” should be avoided  These should also be verifiable Requirements 33
  • 34. Specification Language  Language should support desired charateristics of the SRS  Formal languages are precise and unambiguous but hard  Natural languages mostly used, with some structure for the document  Formal languages used for special features or in highly critical systemsRequirements 34
  • 35. Structure of an SRS  Introduction  Purpose , the basic objective of the system  Scope of what the system is to do , not to do  Overview  Overall description  Product perspective  Product functions  User characteristics  Assumptions  Constraints Requirements 35
  • 36. Structure of an SRS… Specific requirements External interfaces Functional requirements Performance requirements Design constraints Acceptable criteria desirable to specify this up front. This standardization of the SRS was done by IEEE. Requirements 36
  • 37. Requirements Validation  Lot of room for misunderstanding  Errors possible  Expensive to fix req defects later  Must try to remove most errors in SRS  Most common errors  Omission - 30%  Inconsistency - 10-30%  Incorrect fact - 10-30%  Ambiguity - 5 -20% Requirements 37 Analysis Specification Validation
  • 38. Requirements Review  SRS reviewed by a group of people  Group: author, client, user, dev team rep.  Must include client and a user  Process – standard inspection process  Effectiveness - can catch 40-80% of req. errors Requirements 38
  • 39. Summary  Having a good quality SRS is essential for Q&P  The req. phase has 3 major sub phases  analysis , specification and validation  Analysis  for problem understanding and modeling  Methods used: SSAD, OOA , Prototyping  Key properties of an SRS: correctness, completeness, consistency, traceablity, unambiguousness Requirements 39
  • 40. Summary..  Specification  must contain functionality, performance , interfaces and design constraints  Mostly natural languages used  Validation - through reviews Requirements 40