SlideShare a Scribd company logo
1
Life Cycle Models
(Lecture 2)
Prof. R. Mall
Dept. of CSE, IIT, Kharagpur
2
Classical Waterfall Model
●
Classical waterfall model divides life cycle
into phases:
– feasibility study,
– requirements analysis and specification,
– design,
– coding and unit testing,
– integration and system testing,
– maintenance.
3
Classical Waterfall Model
Feasibility Study
Req. Analysis
Design
Coding
Testing
Maintenance
4
Relative Effort for Phases
●
Phases between feasibility
study and testing
– known as development phases.
●
Among all life cycle phases
Among all life cycle phases
– maintenance phase consumes
maintenance phase consumes
maximum effort.
maximum effort.
●
Among development phases,
– testing phase consumes the
maximum effort. 0
10
20
30
40
50
60
Req.
Sp
Design
Coding
Test
Maintnce
Relative Effort
5
Classical Waterfall Model
(CONT.)
●
Most organizations usually define:
– standards on the outputs (deliverables) produced
at the end of every phase
– entry and exit criteria for every phase.
●
They also prescribe specific methodologies for:
– specification,
– design,
– testing,
– project management, etc.
6
Classical Waterfall Model
(CONT.)
●
The guidelines and methodologies of an
organization:
– called the organization's software
software
development methodology
development methodology.
.
●
Software development organizations:
– expect fresh engineers to master the
organization's software development
methodology.
7
Feasibility Study
●
Main aim of feasibility study:determine whether
developing the product
– financially worthwhile
– technically feasible.
●
First roughly understand what the customer wants:
– different data which would be input to the system,
– processing needed on these data,
– output data to be produced by the system,
– various constraints on the behavior of the system.
8
Activities during Feasibility
Study
●
Work out an overall understanding of the
problem.
●
Formulate different solution strategies.
●
Examine alternate solution strategies in
terms of:
●
resources required,
●
cost of development, and
●
development time.
9
Activities during Feasibility
Study
●
Perform a cost/benefit analysis:
– to determine which solution is the best.
– you may determine that none of the
solutions is feasible due to:
●
high cost,
●
resource constraints,
●
technical reasons.
10
Requirements Analysis and
Specification
●
Aim of this phase:
– understand the exact requirements of
the customer,
– document them properly.
●
Consists of two distinct activities:
– requirements gathering and analysis
– requirements specification.
11
Goals of Requirements Analysis
●
Collect all related data from the
customer:
– analyze the collected data to clearly
understand what the customer wants,
– find out any inconsistencies and
incompleteness in the requirements,
– resolve all inconsistencies and
incompleteness.
12
Requirements Gathering
●
Gathering relevant data:
– usually collected from the end-users
through interviews and discussions.
– For example, for a business accounting
software:
●
interview all the accountants of the
organization to find out their requirements.
13
Requirements Analysis (CONT.)
●
The data you initially collect from
the users:
– would usually contain several
contradictions and ambiguities:
– each user typically has only a
partial and incomplete view of the
system.
14
Requirements Analysis (CONT.)
●
Ambiguities and contradictions:
– must be identified
– resolved by discussions with the customers.
●
Next, requirements are organized:
– into a Software Requirements Specification
(SRS) document.
15
Requirements Analysis (CONT.)
●
Engineers doing requirements
analysis and specification:
– are designated as analysts.
16
Design
●
Design phase transforms
requirements specification:
– into a form suitable for
implementation in some
programming language.
17
Design
●
In technical terms:
– during design phase, software
architecture is derived from the SRS
document.
●
Two design approaches:
– traditional approach,
– object oriented approach.
18
Traditional Design Approach
●
Consists of two activities:
– Structured analysis
– Structured design
19
Structured Analysis Activity
●
Identify all the functions to be
performed.
●
Identify data flow among the functions.
●
Decompose each function recursively into
sub-functions.
– Identify data flow among the subfunctions as
well.
20
Structured Analysis (CONT.)
●
Carried out using Data flow diagrams
(DFDs).
●
After structured analysis, carry out
structured design:
– architectural design (or high-level
design)
– detailed design (or low-level design).
21
Structured Design
●
High-level design:
– decompose the system into modules,
– represent invocation relationships among the
modules.
●
Detailed design:
– different modules designed in greater detail:
●
data structures and algorithms for each module are
designed.
22
Object Oriented Design
●
First identify various objects (real world
entities) occurring in the problem:
– identify the relationships among the objects.
– For example, the objects in a pay-roll software
may be:
●
employees,
●
managers,
●
pay-roll register,
●
Departments, etc.
23
Object Oriented Design (CONT.)
●
Object structure
– further refined to obtain the detailed
design.
●
OOD has several advantages:
– lower development effort,
– lower development time,
– better maintainability.
24
Implementation
●
Purpose of implementation phase
(aka coding and unit testing
phase):
– translate software design into
source code.
25
Implementation
●
During the implementation phase:
– each module of the design is coded,
– each module is unit tested
●
tested independently as a stand alone unit,
and debugged,
– each module is documented.
26
Implementation (CONT.)
●
The purpose of unit testing:
– test if individual modules work correctly.
●
The end product of implementation
phase:
– a set of program modules that have been
tested individually.
27
Integration and System
Testing
●
Different modules are integrated in a
planned manner:
– modules are almost never integrated in one
shot.
– Normally integration is carried out through a
number of steps.
●
During each integration step,
– the partially integrated system is tested.
28
Integration and System
Testing
M1
M4
M3
M2
29
System Testing
●
After all the modules have been
successfully integrated and tested:
– system testing is carried out.
●
Goal of system testing:
– ensure that the developed system
functions according to its
requirements as specified in the SRS
document.
30
Maintenance
●
Maintenance of any software
product:
– requires much more effort than
the effort to develop the product
itself.
– development effort to
maintenance effort is typically
40:60.
31
Maintenance (CONT.)
●
Corrective maintenance:
– Correct errors which were not discovered during the
product development phases.
●
Perfective maintenance:
– Improve implementation of the system
– enhance functionalities of the system.
●
Adaptive maintenance:
– Port software to a new environment,
●
e.g. to a new computer or to a new operating system.
32
Iterative Waterfall Model
●
Classical waterfall model is idealistic:
– assumes that no defect is introduced
during any development activity.
– in practice:
●
defects do get introduced in almost every
phase of the life cycle.
33
Iterative Waterfall Model
(CONT.)
●
Defects usually get detected much
later in the life cycle:
– For example, a design defect might
go unnoticed till the coding or
testing phase.
34
Iterative Waterfall Model
(CONT.)
●
Once a defect is detected:
– we need to go back to the phase where it was
introduced
– redo some of the work done during that and
all subsequent phases.
●
Therefore we need feedback paths in the
classical waterfall model.
35
Iterative Waterfall Model
(CONT.)
Feasibility Study
Req. Analysis
Design
Coding
Testing
Maintenance
36
Iterative Waterfall Model
(CONT.)
●
Errors should be detected
 in the same phase in which they are
introduced.
●
For example:
 if a design problem is detected in the
design phase itself,

the problem can be taken care of much
more easily

than say if it is identified at the end of
the integration and system testing phase.
37
Phase containment of errors
●
Reason: rework must be carried out not only to
the design but also to code and test phases.
●
The principle of detecting errors as close to its
point of introduction as possible:
– is known as phase containment of errors.
●
Iterative waterfall model is by far the most
widely used model.
– Almost every other model is derived from the
waterfall model.
38
Classical Waterfall Model
(CONT.)
●
Irrespective of the life cycle model
actually followed:
– the documents should reflect a classical
waterfall model of development,
– comprehension of the documents is
facilitated.
39
Classical Waterfall Model
(CONT.)
●
Metaphor of mathematical theorem
proving:
– A mathematician presents a proof as a
single chain of deductions,
●
even though the proof might have come
from a convoluted set of partial attempts,
blind alleys and backtracks.
40
Prototyping Model
●
Before starting actual development,
– a working prototype of the system should first
be built.
●
A prototype is a toy implementation of a
system:
– limited functional capabilities,
– low reliability,
– inefficient performance.
41
Reasons for developing a
prototype
●
Illustrate to the customer:
– input data formats, messages,
reports, or interactive dialogs.
●
Examine technical issues associated
with product development:
– Often major design decisions depend
on issues like:
●
response time of a hardware controller,
●
efficiency of a sorting algorithm, etc.
42
Prototyping Model (CONT.)
●
The third reason for developing a
prototype is:
– it is impossible to ``get it right'' the
first time,
– we must plan to throw away the first
product
●
if we want to develop a good product.
43
Prototyping Model (CONT.)
●
Start with approximate requirements.
●
Carry out a quick design.
●
Prototype model is built using several
short-cuts:
– Short-cuts might involve using inefficient,
inaccurate, or dummy functions.
●
A function may use a table look-up rather than
performing the actual computations.
44
Prototyping Model (CONT.)
●
The developed prototype is submitted to
the customer for his evaluation:
– Based on the user feedback, requirements
are refined.
– This cycle continues until the user approves
the prototype.
●
The actual system is developed using the
classical waterfall approach.
45
Prototyping Model (CONT.)
Requirements
Gathering Quick Design
Refine
Requirements
Build Prototype
Customer
Evaluation of
Prototype
Design
Implement
Test
Maintain
Customer
satisfied
46
Prototyping Model (CONT.)
●
Requirements analysis and specification phase
becomes redundant:
– final working prototype (with all user feedbacks
incorporated) serves as an animated requirements
specification.
●
Design and code for the prototype is usually thrown
away:
– However, the experience gathered from developing the
prototype helps a great deal while developing the actual
product.
47
Prototyping Model (CONT.)
●
Even though construction of a working prototype
model involves additional cost --- overall
development cost might be lower for:
– systems with unclear user requirements,
– systems with unresolved technical issues.
●
Many user requirements get properly defined and
technical issues get resolved:
– these would have appeared later as change
requests and resulted in incurring massive redesign
costs.
48
Evolutionary Model
●
Evolutionary model (aka successive versions or
incremental model):
– The system is broken down into several modules which
can be incrementally implemented and delivered.
●
First develop the core modules of the system.
●
The initial product skeleton is refined into
increasing levels of capability:
– by adding new functionalities in successive versions.
49
Evolutionary Model (CONT.)
●
Successive version of the product:
– functioning systems capable of
performing some useful work.
– A new release may include new
functionality:
●
also existing functionality in the current
release might have been enhanced.
50
Evolutionary Model (CONT.)
A
B
C
A A
B
51
Advantages of Evolutionary
Model
●
Users get a chance to experiment with a partially
developed system:
– much before the full working version is released,
●
Helps finding exact user requirements:
– much before fully working system is developed.
●
Core modules get tested thoroughly:
– reduces chances of errors in final product.
52
Disadvantages of
Evolutionary Model
●
Often, difficult to subdivide problems
into functional units:
– which can be incrementally implemented
and delivered.
– evolutionary model is useful for very
large problems,
●
where it is easier to find modules for
incremental implementation.
53
Evolutionary Model with
Iteration
●
Many organizations use a combination
of iterative and incremental
development:
– a new release may include new
functionality
– existing functionality from the current
release may also have been modified.
54
Evolutionary Model with
iteration
●
Several advantages:
– Training can start on an earlier release
●
customer feedback taken into account
– Markets can be created:
●
for functionality that has never been offered.
– Frequent releases allow developers to fix
unanticipated problems quickly.
55
Spiral Model
●
Proposed by Boehm in 1988.
●
Each loop of the spiral represents a phase of the
software process:
– the innermost loop might be concerned with system
feasibility,
– the next loop with system requirements definition,
– the next one with system design, and so on.
●
There are no fixed phases in this model, the
phases shown in the figure are just examples.
56
Spiral Model (CONT.)
●
The team must decide:
– how to structure the project into phases.
●
Start work using some generic model:
– add extra phases
●
for specific projects or when problems are
identified during a project.
●
Each loop in the spiral is split into four
sectors (quadrants).
57
Spiral Model (CONT.)
Determine
Objectives
Identify &
Resolve Risks
Develop Next
Level of Product
Customer
Evaluation of
Prototype
58
Objective Setting (First
Quadrant)
●
Identify objectives of the phase,
●
Examine the risks associated with these
objectives.
– Risk:
●
any adverse circumstance that might
hamper successful completion of a
software project.
●
Find alternate solutions possible.
59
Risk Assessment and Reduction (Second
Quadrant)
●
For each identified project risk,
– a detailed analysis is carried out.
●
Steps are taken to reduce the risk.
●
For example, if there is a risk that the
requirements are inappropriate:
– a prototype system may be developed.
60
Spiral Model (CONT.)
●
Development and Validation (Third quadrant
Third quadrant):
– develop and validate the next level of the product.
●
Review and Planning (Fourth quadrant
Fourth quadrant):
– review the results achieved so far with the customer
and plan the next iteration around the spiral.
●
With each iteration around the spiral:
– progressively more complete version of the software
gets built.
61
Spiral Model as a meta
model
●
Subsumes all discussed models:
– a single loop spiral represents waterfall model.
– uses an evolutionary approach --
●
iterations through the spiral are evolutionary levels.
– enables understanding and reacting to risks
during each iteration along the spiral.
– uses:
●
prototyping as a risk reduction mechanism
●
retains the step-wise approach of the waterfall model.
62
Comparison of Different Life
Cycle Models
●
Iterative waterfall model
– most widely used model.
– But, suitable only for well-understood
problems.
●
Prototype model is suitable for projects
not well understood:
– user requirements
– technical aspects
63
Comparison of Different Life
Cycle Models (CONT.)
●
Evolutionary model is suitable for large
problems:
– can be decomposed into a set of modules
that can be incrementally implemented,
– incremental delivery of the system is
acceptable to the customer.
●
The spiral model:
– suitable for development of technically
challenging software products that are
subject to several kinds of risks.

More Related Content

PPT
Waterfall models.ppt
PPT
chapter 2 (1).ppt
PPT
PPT
2.SDLC Models.ppt
PPT
2 (1).ppt
PPT
2.Basic Introduction of SDLC Phases and explanation of SDLC Models.ppt
PPT
2.Basic Introduction of SDLC Phases and explanation of SDLC Models (1).ppt
PPT
2.Basic Introduction of SDLC Phases and explanation of SDLC Models.ppt
Waterfall models.ppt
chapter 2 (1).ppt
2.SDLC Models.ppt
2 (1).ppt
2.Basic Introduction of SDLC Phases and explanation of SDLC Models.ppt
2.Basic Introduction of SDLC Phases and explanation of SDLC Models (1).ppt
2.Basic Introduction of SDLC Phases and explanation of SDLC Models.ppt

Similar to 2. Life Cycle Models for Software Engineeting (20)

PPT
softwareengineeringlpufeasibilitystudyca
PDF
Software Engineering : Process Models
PDF
SE18_Lec 02_Software Life Cycle Model
PPTX
Software engineering
PPTX
Fundamentals of software development
PPT
Water fall model
PPTX
Presentation of waterfall model
PPTX
Software life-cycle
PDF
Life cycle models cccccccccccccccccccccccccccccccccccccccccccccccc.pdf
PPTX
Software life-cycle
PDF
SPM software project management nptel fife cycle model
PPTX
LECTURE 155662355366589625633022333.pptx
PDF
Software model
PDF
7 5-94-101
PPTX
lect3-Life-Cycle-models-I.pptx
PPT
2. Software process
PPTX
61f4fc87-9977-4003-baf8-37f13200977b.pptx
PPT
Year13_SystemModelsmypresentationTechnology.ppt
PPTX
Software Engineering Introduction -UNIT 1.pptx
PPTX
Software engineering Satish.pptx
softwareengineeringlpufeasibilitystudyca
Software Engineering : Process Models
SE18_Lec 02_Software Life Cycle Model
Software engineering
Fundamentals of software development
Water fall model
Presentation of waterfall model
Software life-cycle
Life cycle models cccccccccccccccccccccccccccccccccccccccccccccccc.pdf
Software life-cycle
SPM software project management nptel fife cycle model
LECTURE 155662355366589625633022333.pptx
Software model
7 5-94-101
lect3-Life-Cycle-models-I.pptx
2. Software process
61f4fc87-9977-4003-baf8-37f13200977b.pptx
Year13_SystemModelsmypresentationTechnology.ppt
Software Engineering Introduction -UNIT 1.pptx
Software engineering Satish.pptx
Ad

More from stuti8985 (6)

PDF
Estimation and Planning poker in Agile.pdf
PDF
4. Agile Development in the course of advanced SEPM
PPT
1. Introduction to Software Engineering.ppt
PPTX
Chap3-Data Warehousing and OLAP operations..pptx
PPTX
Chap2-Data.pptx. It is all about data in data mining.
PPTX
Chap1-Introduction.pptx. Data Mining and introduction about it in a specified...
Estimation and Planning poker in Agile.pdf
4. Agile Development in the course of advanced SEPM
1. Introduction to Software Engineering.ppt
Chap3-Data Warehousing and OLAP operations..pptx
Chap2-Data.pptx. It is all about data in data mining.
Chap1-Introduction.pptx. Data Mining and introduction about it in a specified...
Ad

Recently uploaded (20)

PDF
Business Ethics Teaching Materials for college
PDF
Pre independence Education in Inndia.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Open folder Downloads.pdf yes yes ges yes
Business Ethics Teaching Materials for college
Pre independence Education in Inndia.pdf
PPH.pptx obstetrics and gynecology in nursing
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
O7-L3 Supply Chain Operations - ICLT Program
Week 4 Term 3 Study Techniques revisited.pptx
Microbial diseases, their pathogenesis and prophylaxis
Cardiovascular Pharmacology for pharmacy students.pptx
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
TR - Agricultural Crops Production NC III.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Open folder Downloads.pdf yes yes ges yes

2. Life Cycle Models for Software Engineeting

  • 1. 1 Life Cycle Models (Lecture 2) Prof. R. Mall Dept. of CSE, IIT, Kharagpur
  • 2. 2 Classical Waterfall Model ● Classical waterfall model divides life cycle into phases: – feasibility study, – requirements analysis and specification, – design, – coding and unit testing, – integration and system testing, – maintenance.
  • 3. 3 Classical Waterfall Model Feasibility Study Req. Analysis Design Coding Testing Maintenance
  • 4. 4 Relative Effort for Phases ● Phases between feasibility study and testing – known as development phases. ● Among all life cycle phases Among all life cycle phases – maintenance phase consumes maintenance phase consumes maximum effort. maximum effort. ● Among development phases, – testing phase consumes the maximum effort. 0 10 20 30 40 50 60 Req. Sp Design Coding Test Maintnce Relative Effort
  • 5. 5 Classical Waterfall Model (CONT.) ● Most organizations usually define: – standards on the outputs (deliverables) produced at the end of every phase – entry and exit criteria for every phase. ● They also prescribe specific methodologies for: – specification, – design, – testing, – project management, etc.
  • 6. 6 Classical Waterfall Model (CONT.) ● The guidelines and methodologies of an organization: – called the organization's software software development methodology development methodology. . ● Software development organizations: – expect fresh engineers to master the organization's software development methodology.
  • 7. 7 Feasibility Study ● Main aim of feasibility study:determine whether developing the product – financially worthwhile – technically feasible. ● First roughly understand what the customer wants: – different data which would be input to the system, – processing needed on these data, – output data to be produced by the system, – various constraints on the behavior of the system.
  • 8. 8 Activities during Feasibility Study ● Work out an overall understanding of the problem. ● Formulate different solution strategies. ● Examine alternate solution strategies in terms of: ● resources required, ● cost of development, and ● development time.
  • 9. 9 Activities during Feasibility Study ● Perform a cost/benefit analysis: – to determine which solution is the best. – you may determine that none of the solutions is feasible due to: ● high cost, ● resource constraints, ● technical reasons.
  • 10. 10 Requirements Analysis and Specification ● Aim of this phase: – understand the exact requirements of the customer, – document them properly. ● Consists of two distinct activities: – requirements gathering and analysis – requirements specification.
  • 11. 11 Goals of Requirements Analysis ● Collect all related data from the customer: – analyze the collected data to clearly understand what the customer wants, – find out any inconsistencies and incompleteness in the requirements, – resolve all inconsistencies and incompleteness.
  • 12. 12 Requirements Gathering ● Gathering relevant data: – usually collected from the end-users through interviews and discussions. – For example, for a business accounting software: ● interview all the accountants of the organization to find out their requirements.
  • 13. 13 Requirements Analysis (CONT.) ● The data you initially collect from the users: – would usually contain several contradictions and ambiguities: – each user typically has only a partial and incomplete view of the system.
  • 14. 14 Requirements Analysis (CONT.) ● Ambiguities and contradictions: – must be identified – resolved by discussions with the customers. ● Next, requirements are organized: – into a Software Requirements Specification (SRS) document.
  • 15. 15 Requirements Analysis (CONT.) ● Engineers doing requirements analysis and specification: – are designated as analysts.
  • 16. 16 Design ● Design phase transforms requirements specification: – into a form suitable for implementation in some programming language.
  • 17. 17 Design ● In technical terms: – during design phase, software architecture is derived from the SRS document. ● Two design approaches: – traditional approach, – object oriented approach.
  • 18. 18 Traditional Design Approach ● Consists of two activities: – Structured analysis – Structured design
  • 19. 19 Structured Analysis Activity ● Identify all the functions to be performed. ● Identify data flow among the functions. ● Decompose each function recursively into sub-functions. – Identify data flow among the subfunctions as well.
  • 20. 20 Structured Analysis (CONT.) ● Carried out using Data flow diagrams (DFDs). ● After structured analysis, carry out structured design: – architectural design (or high-level design) – detailed design (or low-level design).
  • 21. 21 Structured Design ● High-level design: – decompose the system into modules, – represent invocation relationships among the modules. ● Detailed design: – different modules designed in greater detail: ● data structures and algorithms for each module are designed.
  • 22. 22 Object Oriented Design ● First identify various objects (real world entities) occurring in the problem: – identify the relationships among the objects. – For example, the objects in a pay-roll software may be: ● employees, ● managers, ● pay-roll register, ● Departments, etc.
  • 23. 23 Object Oriented Design (CONT.) ● Object structure – further refined to obtain the detailed design. ● OOD has several advantages: – lower development effort, – lower development time, – better maintainability.
  • 24. 24 Implementation ● Purpose of implementation phase (aka coding and unit testing phase): – translate software design into source code.
  • 25. 25 Implementation ● During the implementation phase: – each module of the design is coded, – each module is unit tested ● tested independently as a stand alone unit, and debugged, – each module is documented.
  • 26. 26 Implementation (CONT.) ● The purpose of unit testing: – test if individual modules work correctly. ● The end product of implementation phase: – a set of program modules that have been tested individually.
  • 27. 27 Integration and System Testing ● Different modules are integrated in a planned manner: – modules are almost never integrated in one shot. – Normally integration is carried out through a number of steps. ● During each integration step, – the partially integrated system is tested.
  • 29. 29 System Testing ● After all the modules have been successfully integrated and tested: – system testing is carried out. ● Goal of system testing: – ensure that the developed system functions according to its requirements as specified in the SRS document.
  • 30. 30 Maintenance ● Maintenance of any software product: – requires much more effort than the effort to develop the product itself. – development effort to maintenance effort is typically 40:60.
  • 31. 31 Maintenance (CONT.) ● Corrective maintenance: – Correct errors which were not discovered during the product development phases. ● Perfective maintenance: – Improve implementation of the system – enhance functionalities of the system. ● Adaptive maintenance: – Port software to a new environment, ● e.g. to a new computer or to a new operating system.
  • 32. 32 Iterative Waterfall Model ● Classical waterfall model is idealistic: – assumes that no defect is introduced during any development activity. – in practice: ● defects do get introduced in almost every phase of the life cycle.
  • 33. 33 Iterative Waterfall Model (CONT.) ● Defects usually get detected much later in the life cycle: – For example, a design defect might go unnoticed till the coding or testing phase.
  • 34. 34 Iterative Waterfall Model (CONT.) ● Once a defect is detected: – we need to go back to the phase where it was introduced – redo some of the work done during that and all subsequent phases. ● Therefore we need feedback paths in the classical waterfall model.
  • 35. 35 Iterative Waterfall Model (CONT.) Feasibility Study Req. Analysis Design Coding Testing Maintenance
  • 36. 36 Iterative Waterfall Model (CONT.) ● Errors should be detected  in the same phase in which they are introduced. ● For example:  if a design problem is detected in the design phase itself,  the problem can be taken care of much more easily  than say if it is identified at the end of the integration and system testing phase.
  • 37. 37 Phase containment of errors ● Reason: rework must be carried out not only to the design but also to code and test phases. ● The principle of detecting errors as close to its point of introduction as possible: – is known as phase containment of errors. ● Iterative waterfall model is by far the most widely used model. – Almost every other model is derived from the waterfall model.
  • 38. 38 Classical Waterfall Model (CONT.) ● Irrespective of the life cycle model actually followed: – the documents should reflect a classical waterfall model of development, – comprehension of the documents is facilitated.
  • 39. 39 Classical Waterfall Model (CONT.) ● Metaphor of mathematical theorem proving: – A mathematician presents a proof as a single chain of deductions, ● even though the proof might have come from a convoluted set of partial attempts, blind alleys and backtracks.
  • 40. 40 Prototyping Model ● Before starting actual development, – a working prototype of the system should first be built. ● A prototype is a toy implementation of a system: – limited functional capabilities, – low reliability, – inefficient performance.
  • 41. 41 Reasons for developing a prototype ● Illustrate to the customer: – input data formats, messages, reports, or interactive dialogs. ● Examine technical issues associated with product development: – Often major design decisions depend on issues like: ● response time of a hardware controller, ● efficiency of a sorting algorithm, etc.
  • 42. 42 Prototyping Model (CONT.) ● The third reason for developing a prototype is: – it is impossible to ``get it right'' the first time, – we must plan to throw away the first product ● if we want to develop a good product.
  • 43. 43 Prototyping Model (CONT.) ● Start with approximate requirements. ● Carry out a quick design. ● Prototype model is built using several short-cuts: – Short-cuts might involve using inefficient, inaccurate, or dummy functions. ● A function may use a table look-up rather than performing the actual computations.
  • 44. 44 Prototyping Model (CONT.) ● The developed prototype is submitted to the customer for his evaluation: – Based on the user feedback, requirements are refined. – This cycle continues until the user approves the prototype. ● The actual system is developed using the classical waterfall approach.
  • 45. 45 Prototyping Model (CONT.) Requirements Gathering Quick Design Refine Requirements Build Prototype Customer Evaluation of Prototype Design Implement Test Maintain Customer satisfied
  • 46. 46 Prototyping Model (CONT.) ● Requirements analysis and specification phase becomes redundant: – final working prototype (with all user feedbacks incorporated) serves as an animated requirements specification. ● Design and code for the prototype is usually thrown away: – However, the experience gathered from developing the prototype helps a great deal while developing the actual product.
  • 47. 47 Prototyping Model (CONT.) ● Even though construction of a working prototype model involves additional cost --- overall development cost might be lower for: – systems with unclear user requirements, – systems with unresolved technical issues. ● Many user requirements get properly defined and technical issues get resolved: – these would have appeared later as change requests and resulted in incurring massive redesign costs.
  • 48. 48 Evolutionary Model ● Evolutionary model (aka successive versions or incremental model): – The system is broken down into several modules which can be incrementally implemented and delivered. ● First develop the core modules of the system. ● The initial product skeleton is refined into increasing levels of capability: – by adding new functionalities in successive versions.
  • 49. 49 Evolutionary Model (CONT.) ● Successive version of the product: – functioning systems capable of performing some useful work. – A new release may include new functionality: ● also existing functionality in the current release might have been enhanced.
  • 51. 51 Advantages of Evolutionary Model ● Users get a chance to experiment with a partially developed system: – much before the full working version is released, ● Helps finding exact user requirements: – much before fully working system is developed. ● Core modules get tested thoroughly: – reduces chances of errors in final product.
  • 52. 52 Disadvantages of Evolutionary Model ● Often, difficult to subdivide problems into functional units: – which can be incrementally implemented and delivered. – evolutionary model is useful for very large problems, ● where it is easier to find modules for incremental implementation.
  • 53. 53 Evolutionary Model with Iteration ● Many organizations use a combination of iterative and incremental development: – a new release may include new functionality – existing functionality from the current release may also have been modified.
  • 54. 54 Evolutionary Model with iteration ● Several advantages: – Training can start on an earlier release ● customer feedback taken into account – Markets can be created: ● for functionality that has never been offered. – Frequent releases allow developers to fix unanticipated problems quickly.
  • 55. 55 Spiral Model ● Proposed by Boehm in 1988. ● Each loop of the spiral represents a phase of the software process: – the innermost loop might be concerned with system feasibility, – the next loop with system requirements definition, – the next one with system design, and so on. ● There are no fixed phases in this model, the phases shown in the figure are just examples.
  • 56. 56 Spiral Model (CONT.) ● The team must decide: – how to structure the project into phases. ● Start work using some generic model: – add extra phases ● for specific projects or when problems are identified during a project. ● Each loop in the spiral is split into four sectors (quadrants).
  • 57. 57 Spiral Model (CONT.) Determine Objectives Identify & Resolve Risks Develop Next Level of Product Customer Evaluation of Prototype
  • 58. 58 Objective Setting (First Quadrant) ● Identify objectives of the phase, ● Examine the risks associated with these objectives. – Risk: ● any adverse circumstance that might hamper successful completion of a software project. ● Find alternate solutions possible.
  • 59. 59 Risk Assessment and Reduction (Second Quadrant) ● For each identified project risk, – a detailed analysis is carried out. ● Steps are taken to reduce the risk. ● For example, if there is a risk that the requirements are inappropriate: – a prototype system may be developed.
  • 60. 60 Spiral Model (CONT.) ● Development and Validation (Third quadrant Third quadrant): – develop and validate the next level of the product. ● Review and Planning (Fourth quadrant Fourth quadrant): – review the results achieved so far with the customer and plan the next iteration around the spiral. ● With each iteration around the spiral: – progressively more complete version of the software gets built.
  • 61. 61 Spiral Model as a meta model ● Subsumes all discussed models: – a single loop spiral represents waterfall model. – uses an evolutionary approach -- ● iterations through the spiral are evolutionary levels. – enables understanding and reacting to risks during each iteration along the spiral. – uses: ● prototyping as a risk reduction mechanism ● retains the step-wise approach of the waterfall model.
  • 62. 62 Comparison of Different Life Cycle Models ● Iterative waterfall model – most widely used model. – But, suitable only for well-understood problems. ● Prototype model is suitable for projects not well understood: – user requirements – technical aspects
  • 63. 63 Comparison of Different Life Cycle Models (CONT.) ● Evolutionary model is suitable for large problems: – can be decomposed into a set of modules that can be incrementally implemented, – incremental delivery of the system is acceptable to the customer. ● The spiral model: – suitable for development of technically challenging software products that are subject to several kinds of risks.