Tuesday, 1 October 2013

continued...  
                                         
Spiral Model is another primitive model.

The spiral model is shown in the figure in the next page.

Ra- requirements analysis of module A. Similarly with Rb, Rc, Rd.
Da – design of module A. Similarly with Db, Dc, Dd
Ca – coding of module A. Similarly with Cb, Cc, Cd
Ta – testing of module A. Similarly with Tb, Tc, Td


In Spiral model, the software product is developed in small modules. Let us consider the figure shown below in developing a s/w product X. X is built by integrating A,B,C and D.

The module A – requirements of the module is collected first and then the module is designed. The coding of module A is done after which it is tested for defects and bugs.

The module B – once module A has been built, we start the same process for module B. But while testing module B, we test for 3 conditions – a)test module B b)test integration of module B with A c)test module A.

The module C – after building module A,B, we start the same process for module C. Here we test for the following conditions – 1) test module c, b, a 2) test for integration of C and B, C and A, A and B.


Spiral Model

And thus the cycle continues for different modules. Thus in the above example, module B can be built only after module A has been built correctly and similarly for module C.

For spiral model, the best example that we can consider is the MS-Excel application.

The MS-Excel sheet consists of a number of cells that are the components of Excel sheet.
Here we have to create the cells first (module A). Then we can do operations on the cells like merge cells into two , split cell into half (module B ). Then we can draw graphs on the excel sheet (module C).

Advantages of Spiral Model :-

1)  Requirement changes are allowed.

2)  After we develop one feature / module of the product, then only we can go on to develop the next module of the product.

Whenever the customer request for major changes in requirements in a particular module, then we change only that module and do testing of both unit and integration of units. This change in requirements comes up in a separate cycle just to do the changes.
Whenever the customer request minor changes in the product, then the s/w team makes the minor changes along with the new module to be developed simultaneously in a single cycle. We don’t consider making the minor change in a separate cycle of the spiral model due to time and resource constraints.

The documents collected by Business analysts during requirement collection stage is known as CRS ( Customer Requirement Specification ) or BRS ( Business Requirement Specification ) or BS ( Business Specification ). In this document , the client explains how their business works or the requirement of the s/w he needs. The BA gathers CRS from the client and translates it into SRS ( Software Requirement Specification ). The SRS contains how the software should be developed and is given by the BA to developers. For more detailed explanation of how to go about developing the s/w, the BA/developer builds another document – FS ( Functional Specification ). FS explains how each and every component should work.

Drawbacks of Spiral Model – Traditional model and thus developers only did testing job as well.

Applications of Spiral Model

- whenever there is dependency in building the different modules of the software, then we use Spiral Model.
-whenever the customer gives the requirements in stages, we develop the product in stages.
Software Testing involves a cycle for testing is called Software Development Life Cycle

Software Development Life Cycle:

It is a procedure to develop the software.It is a process of creating or altering systems and the models and methodologies that people use to develop these systems.Any SDLC should result in a high quality system that meets or exceeds customer expectations, reaches completion within time and cost estimates, works effectively and efficiently and is inexpensive to maintain and cost effective to enhance.

There are different Models, One of the primitive model is.....

Water Fall Model: It is free flow model, just like water flow it involves stages as shown below

Water Flow Model

Requirements Collection :-
- done by Business Analysts and Product Analysts
- gathering requirements
- translates business language into software language
For ex, let us consider the example of a banking software.

Feasibility Study :-
- done by software team consisting of project managers, business analysts, architects, finance, HR, developers but not testers
- architect – is the person who tells whether the product can be developed and if yes, then which technology is best suited to develop it.
- here we check for,
                                 - technical feasibility
                                 - financial feasibility
                                 - resource feasibility

Design :-
There are 2 stages in design,
                                                HLD – High Level Design
                                                LLD – Low Level Design
HLD – gives the architecture of the software product to be developed and is done by architects and senior developers
LLD – done by senior developers. It describes how each and every feature in the product should work and how every component should work. Here, only the design will be there and not the code.
For ex, let us consider the example of building a house.

Coding / Programming :-
- done by all developers – seniors, juniors, freshers
- this is the process where we start building the software and start writing the code for the product.

Testing :-
- done by test engineers
- it is the process of checking for all defects and rectifying it.

Installation :-
- done by installation engineers
- to install the product at a client’s place for using after the software has been developed and tested.
For ex, consider the example of a software to be developed and installed at Reliance petrol bunk.

Maintenance:-
- here as the customer uses the product, he finds certain bugs and defects and sends the product back for error correction and bug fixing.
- bug fixing takes place
- minor changes like adding, deleting or modifyingy small feature in the software product

Major drawback of waterfall model – testing is a small phase which is done after coding. Requirement is not tested, design is not tested, if there is a bug in the requirement, it goes on till the end and leads to lot of re-work.
Advantages of waterfall model – requirements do not change nor does design and code, so we get a stable product.
Applications of waterfall model :-
Used in – developing a simple application
              - for short term projects
              - whenever we are sure that the requirements will not change