SlideShare uma empresa Scribd logo
1 de 27
Software Metrics




                                                          What it is?
                                      What are the different Metrics?
                  The act of collecting Software measurement Data.




13 January 2012     Made By Utpal Ray                                   1
Software Metrics

 The Story So Far
  4 Blocks SDLC ( Software Development Life Cycle ) Model




                                 Design and
             SPECIFI-                          Testing and   Maintenance
                                Development
             CATION                             Validation




                              Software Measurement Process




13 January 2012         Made By Utpal Ray                                  2
Software Metrics



  Why do we do software measurement?
    Measurement is fundamental to any engineering
    discipline, and software engineering is no exception.
    To get an insight into the software process.
    To do process improvement.
    To make the quality of the product better.
    To express the qualitative factor by a number.
    To make a better estimate of the cost, schedule,
    complexity, effort requirements etc. of the s/w
    development process.


13 January 2012   Made By Utpal Ray                         3
Software Metrics



 Why do we do software measurement? ( contd. )
 The answer was nicely given by Lord Kelvin:-
 When you can measure what you are speaking about and
 express it in numbers, you know something about it; but
 when you cannot measure, when you cannot express it in
 numbers, your knowledge is of a meager and unsatisfactory
 kind: it may be the beginning of knowledge, but you have
 scarcely , in your thoughts, advanced to the stage of science.




  13 January 2012   Made By Utpal Ray                        4
Software Metrics


  Measures, Measurements, Metrics, Indicators
    Measure is a quantitative indication of the extent, size,
    amount, dimension, capacity of some attributes of a
    product or a process.
    Measurement is the act of determining a measure.
    Metric is a quantitative measure of the degree to which
    a system, component, or a process possesses a given
    attribute.
    An indicator is a metric or a combination of metrics
    that provide insight into the s/w process, a s/w project
    or the s/w product itself.

13 January 2012   Made By Utpal Ray                             5
Software Metrics

 Measures, Measurements, Metrics, Indicators ( contd. )




                       S/W
                    Engineering
                     Process
                                                                          Measures
                                           Data Collection
                    S/W Projects
                                                                            Metrics
                                                       Metrics
                        S/W                          Computation
                      Products
                                                              Metrics     Indicators
                                                             Evaluation

  13 January 2012          Made By Utpal Ray                                      6
Software Metrics


  An example of “Measures, Measurements, Metrics,
   Indicators”
 All test engineers of a certain project started collecting
   the following measure – ‘The errors found in the test
   cycle’.
 But this measure is not enough to compute a suitable
   metric. You need two more measurements, which are
   number of test engineer and the number of months
   spent on the testing process.
 Suppose there were 5 test engineers and they spent
   about 6 months to do the necessary testing of the
   product. So, the total engineer-month is 30.

13 January 2012   Made By Utpal Ray                           7
Software Metrics


  An example of “Measures, Measurements, Metrics,
   Indicators” ( contd. )
 And let’s assume, all together they found about 60 errors.
 So, using all those measures mentioned above we can
   compute a Metric, which could be ‘Errors found per
   Engineer-Month’; and the value of that metric here is 2.
 This metric can be used here as an indicator regarding how
   efficient the test teams are or how good the product is.
 For example, after introducing an automated testing tool, the
   above metric may reach a value of ‘5’; which indicates the
   effectiveness of the automated testing tool used by the test
   team.
 So, this Metric can be used as an indicator of the efficiency of
   a project team.

13 January 2012   Made By Utpal Ray                                 8
Software Metrics


  Process, Project and Product Metrics
 - The process metrics are those metrics which are
   concerned with Software Development Life Cycle (
   SDLC ). They can be used to improve the process
   efficiency of the SDLC. For example, the process
   metric ‘Defect Rate’ – the amount of defects reaching
   the customer can be used to improve the efficiency of
   the Development and the Testing team. If ‘Defect rate’
   is less, we know that the efficiency of the Development
   and the Testing team is improving.




13 January 2012   Made By Utpal Ray                          9
Software Metrics



  Process, Project and Product Metrics (contd.)

 - The project metrics are those metrics which are more
   relevant to a project team. They can be used to
   measure the efficiency of a project team or any other
   tools being used by the team members. One example
   of a project metric is ‘Errors found per engineer-
   month’ which was mentioned before. This is a relevant
   project metric for a test team.




13 January 2012   Made By Utpal Ray                    10
Software Metrics



  Process, Project and Product Metrics (contd.)
 - The product metrics are those metrics which has more
   meaning in the perspective of the software product
   being developed. One of the example is, quality of the
   developed product. Considering the fact that quality is
   a subjective attribute, one needs a very good
   understanding of the measures based on which the
   quality metrics are computed.




13 January 2012   Made By Utpal Ray                      11
Software Metrics


  Private and Public Metrics
 - The Private metrics are those metrics which are
   collected by individual software professionals. They
   are mostly used by any software professional to get an
   insight regarding how is his productivity or any other
   parameter of interests to him. For example, a test
   engineer may keep ‘errors found in a week’ as a
   private metric. Similarly, for a development engineer,
   ‘lines of code written in a week’ could be a private
   metric of interests to him. Also, an IT professional may
   keep ‘Number of new technology studied in a
   month’ as a private metric.

13 January 2012   Made By Utpal Ray                       12
Software Metrics


  Private and Public Metrics ( contd. )
 - The public metrics has more meaning on a overall team
   basis. The public metrics can be computed depending
   upon the private metrics made public by the
   individual software professional. They are more
   concerned with the project team rather than any
   individual software professional. The examples are,
   ‘Errors found per engineer-month’, ‘Lines of code
   written per engineer-month’, etc.




13 January 2012   Made By Utpal Ray                    13
Software Metrics

  Private and Public Metrics ( contd. )
 - It may happen that some of the product metrics are
    private metrics maintained by the individual engineer.
    When these metrics are shared by all the engineer on
    the team basis, those metrics can be combined to
    develop a set of project metrics on a project level. In
    addition to that, these project metrics can be
    consolidated to create a set of process metrics. So, at
    the end these process metrics become the public
    metrics for the whole organization.




13 January 2012   Made By Utpal Ray                           14
Software Metrics


  Size Oriented Metrics
    The size oriented metrics are those metrics, which are
    computed keeping size of the software as main
    consideration.
    The size of the software are usually expressed in terms
    of KLOC ( Kilo Line Of Code ).
    The table on the following slide gives various project
    data ( measures ) for three different projects executed
    over 3 successive years.
    Using those project data one can come out with
    different size oriented metrics.

13 January 2012   Made By Utpal Ray                           15
Software Metrics

        Size Oriented Metrics ( contd. )
     Project      Line of Total         Cost    Doc        Errors    Defects No of
     Name         Code    Effort in     ( Lac   Produc     found     found   person
                  ( LOC) person-        of Rs ) ed (       in test   in the  s
                          month                 pages )    Cycle     field
     ALPHA        12,000 24             5           400    150       25      3
     ( 2002 )


     BETA         24,000 50             12          1000   250       50      6
     ( 2003 )


     GAMMA 18,000 33                    8           800    175       30      5
     ( 2004 )



13 January 2012                 Made By Utpal Ray                                     16
Software Metrics


        Size Oriented Metrics ( contd. )
       The four different metrics which can be computed from the
         previous table are, Errors per KLOC, Defects per KLOC,
         Cost per KLOC and Doc per KLOC.
                   Errors per      Defects per    Cost per      Doc per
                   KLOC            KLOC           KLOC (Thou)   KLOC

        ALPHA          12.5                   2       42            33
        ( 2002 )

        BETA           10.4                   2       50            41
        ( 2003 )

        GAMMA          9.7                1.5         44            44
        ( 2004 )


13 January 2012           Made By Utpal Ray                               17
Software Metrics

  Size Oriented Metrics ( contd. )
 If we try to evaluate these metrics, we may end up
    finding one or two major indicators. These indicators
    may point towards a better quality process which was
    incorporated during those three years.
 For example, both ‘Error rate’ and ‘Defect Rate’ were
    gradually down as recent projects had been executed.
    These may give indication that, whatever quality
    process methodology was introduced during those
    projects had given out results towards the right
    direction.




13 January 2012   Made By Utpal Ray                         18
Software Metrics

  Function Oriented Metrics (A. J. Albrecht, 1979)
 It’s a metric which gives the degree of functionality
    delivered by a software system. Since
  ‘functionality’ can not be measured directly; an
  indirect measurement is done by computing
  Function-Point ( FP ).
 FP is derived using an empirical relationship based
  on countable ( direct ) measures of software’s
  information domain and assessment of software
  complexity.
 FP can be computed by completing the table shown
  in the next slide and then applying some formulae.

13 January 2012   Made By Utpal Ray                      19
Software Metrics

        Function Oriented Metrics ( contd. )

     Measurement            count             Weighing Factor           Sub-
     Parameter                           Simple Average Complex         total
     No of User Inputs               X       3     4           6    =

     No of User Outputs              X       4     5           7    =

     No of User Inquiries            X       3     4           6    =

     No of Files                     X       7     10          15   =

     No of External                  X       5     7           10   =
     Interfaces

                                                 Count Total


13 January 2012              Made By Utpal Ray                                  20
Software Metrics



  Function Oriented Metrics ( contd. )
 The weighing factor mentioned in the previous table
  depends upon the fact, whether that particular entry is
  simple, average or complex.
 FP can be given by the following formulae-
 FP = Count-Total x [ 0.65 + 0.01 x      ( Fi ) ]
 Where, Fi ( i=1 to 14 ) are “complexity adjustment value”,
  based on the responses of the following questions.
  Each of the question is answered in a scale of 0 ( not
  important or applicable ) to 5 ( absolutely essential ).


13 January 2012   Made By Utpal Ray                       21
Software Metrics


   Function Oriented Metrics ( contd. )
         Complexity Adjustment Questions
 1. Does the system require reliable Backup and
    Recovery?
 2. Are Data Communication required?
 3. Are there any Distributed Processing function?
 4. Is Performance critical?
 5. Will the system run in an existing, heavily utilizied
    Operational Environment ?
 6. Does the system require Online Data Entry ?
 7. Does the Online Data Entry require the input
    transaction to be built over multiple screens or
    operations ?

13 January 2012   Made By Utpal Ray                         22
Software Metrics


  Function Oriented Metrics ( contd. )
      Complexity Adjustment Questions ( contd. )
 8. Are the Master files updated Online?
 9. Are the Inputs, Outputs, Inquiries, Files complex ?
 10. Is the Internal Processing complex ?
 11. Is the code designed to be Re-usable?
 12. Are Conversion and Installation included in the
    design ?
 13. Is the system designed for Multiple Installation in
    different organization ?
 14. Is the application designed to facilitate Change and
    Ease of Use by the user?

13 January 2012   Made By Utpal Ray                         23
Software Metrics


  Function Oriented Metrics ( contd. )
 Once the FP is computed, the following metrics can be
   derived using FP as a normalization value.
 - Errors per FP
   Defects per FP
   Cost per FP
   Doc per FP
   FP per person-month




13 January 2012   Made By Utpal Ray                      24
Software Metrics

        The relationship between LOC and FP ( C. Jones, 1998 )

                    Prog Lang                  LOC/FP
                  Assembly Lang                  320
                        C                        128
                     COBOL                       106
                    FORTRAN                      106
                     PASCAL                       90
                       C++                        64
                  VISUAL BASIC                    32
                  POWEBUILDER                     16
                       SQL                        12

13 January 2012           Made By Utpal Ray                       25
Software Metrics


  Defect Removal Efficiency ( DRE )
 It is a metric which benefits both in the project level
   and process level. DRE is defined as;
       DRE= E / ( E + D )
 Where, E is the number of errors found before the
   delivery of the software to the end user and D is
   the number of defects found after delivery.
 Ideally DRE should be 1 (means D is zero).
 DRE can also be used within a project team, to
   measure the team’s efficiency. In that context, E is
   the total number of errors uncovered in the project
   team; and D is the total number of defects
   uncovered in the next stage.

13 January 2012   Made By Utpal Ray                        26
Software Metrics



   HOME TASK
 1. Give 2 more examples of private metrics.
 2. Think about 3 more metrics based on LOC.
 3. Think about 2 more metrics based on FP.
 4. Compute the FP for ‘SafeHome’ problem.
 5. Compute the FP for the ‘Max Number’ prog.




13 January 2012   Made By Utpal Ray             27

Mais conteúdo relacionado

Mais procurados

Software matrics and measurement
Software matrics and measurementSoftware matrics and measurement
Software matrics and measurementGurpreet Saini
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategiesSHREEHARI WADAWADAGI
 
Analysis concepts and principles
Analysis concepts and principlesAnalysis concepts and principles
Analysis concepts and principlessaurabhshertukde
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquesSiva Priya
 
Chapter 8 software testing
Chapter 8 software testingChapter 8 software testing
Chapter 8 software testingdespicable me
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Chapter 4 software project planning
Chapter 4 software project planningChapter 4 software project planning
Chapter 4 software project planningPiyush Gogia
 
Software process and project metrics
Software process and project metricsSoftware process and project metrics
Software process and project metricsIndu Sharma Bhardwaj
 
MG6088 SOFTWARE PROJECT MANAGEMENT
MG6088 SOFTWARE PROJECT MANAGEMENTMG6088 SOFTWARE PROJECT MANAGEMENT
MG6088 SOFTWARE PROJECT MANAGEMENTKathirvel Ayyaswamy
 

Mais procurados (20)

Software matrics and measurement
Software matrics and measurementSoftware matrics and measurement
Software matrics and measurement
 
Context diagram
Context diagramContext diagram
Context diagram
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
software quality
software qualitysoftware quality
software quality
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Analysis concepts and principles
Analysis concepts and principlesAnalysis concepts and principles
Analysis concepts and principles
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
Chapter 8 software testing
Chapter 8 software testingChapter 8 software testing
Chapter 8 software testing
 
Software quality management standards
Software quality management standardsSoftware quality management standards
Software quality management standards
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Software quality management lecture notes
Software quality management lecture notesSoftware quality management lecture notes
Software quality management lecture notes
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 
Chapter 4 software project planning
Chapter 4 software project planningChapter 4 software project planning
Chapter 4 software project planning
 
COCOMO (Software Engineering)
COCOMO (Software Engineering)COCOMO (Software Engineering)
COCOMO (Software Engineering)
 
RMMM Plan
RMMM PlanRMMM Plan
RMMM Plan
 
Software process and project metrics
Software process and project metricsSoftware process and project metrics
Software process and project metrics
 
MG6088 SOFTWARE PROJECT MANAGEMENT
MG6088 SOFTWARE PROJECT MANAGEMENTMG6088 SOFTWARE PROJECT MANAGEMENT
MG6088 SOFTWARE PROJECT MANAGEMENT
 

Semelhante a 13 software metrics

Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application tanveer ahmad
 
software metrics(process,project,product)
software metrics(process,project,product)software metrics(process,project,product)
software metrics(process,project,product)Amisha Narsingani
 
Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)MuskanSony
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.pptssuser3f82c9
 
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT ijseajournal
 
Importance of software quality metrics
Importance of software quality metricsImportance of software quality metrics
Importance of software quality metricsPiyush Sohaney
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSijcsa
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSijcsa
 
Lecture3
Lecture3Lecture3
Lecture3soloeng
 
Software Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsSoftware Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsVishvi Vidanapathirana
 
Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptxrituah
 
Hard work matters for everyone in everytbing
Hard work matters for everyone in everytbingHard work matters for everyone in everytbing
Hard work matters for everyone in everytbinglojob95766
 

Semelhante a 13 software metrics (20)

14 software technical_metrics
14 software technical_metrics14 software technical_metrics
14 software technical_metrics
 
Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application
 
software metrics(process,project,product)
software metrics(process,project,product)software metrics(process,project,product)
software metrics(process,project,product)
 
Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.ppt
 
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
 
Importance of software quality metrics
Importance of software quality metricsImportance of software quality metrics
Importance of software quality metrics
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
 
242296
242296242296
242296
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
Lecture3
Lecture3Lecture3
Lecture3
 
Software Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsSoftware Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development Projects
 
01 software engineering_aspects
01 software engineering_aspects01 software engineering_aspects
01 software engineering_aspects
 
Guide to Software Estimation
Guide to Software EstimationGuide to Software Estimation
Guide to Software Estimation
 
Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptx
 
Ijcet 06 06_001
Ijcet 06 06_001Ijcet 06 06_001
Ijcet 06 06_001
 
Hard work matters for everyone in everytbing
Hard work matters for everyone in everytbingHard work matters for everyone in everytbing
Hard work matters for everyone in everytbing
 

Mais de University of Computer Science and Technology

Mais de University of Computer Science and Technology (18)

Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-06
Real time-embedded-system-lec-06Real time-embedded-system-lec-06
Real time-embedded-system-lec-06
 
Real time-embedded-system-lec-05
Real time-embedded-system-lec-05Real time-embedded-system-lec-05
Real time-embedded-system-lec-05
 
Real time-embedded-system-lec-04
Real time-embedded-system-lec-04Real time-embedded-system-lec-04
Real time-embedded-system-lec-04
 
Real time-embedded-system-lec-03
Real time-embedded-system-lec-03Real time-embedded-system-lec-03
Real time-embedded-system-lec-03
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-07
Real time-embedded-system-lec-07Real time-embedded-system-lec-07
Real time-embedded-system-lec-07
 
12 software maintenance
12 software maintenance12 software maintenance
12 software maintenance
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
09 coding standards_n_guidelines
09 coding standards_n_guidelines09 coding standards_n_guidelines
09 coding standards_n_guidelines
 
08 component level_design
08 component level_design08 component level_design
08 component level_design
 
07 interface design
07 interface design07 interface design
07 interface design
 
06 architectural design_workout
06 architectural design_workout06 architectural design_workout
06 architectural design_workout
 
05 architectural design
05 architectural design05 architectural design
05 architectural design
 
04 design concepts_n_principles
04 design concepts_n_principles04 design concepts_n_principles
04 design concepts_n_principles
 
03 requirement engineering_process
03 requirement engineering_process03 requirement engineering_process
03 requirement engineering_process
 
02 software process_models
02 software process_models02 software process_models
02 software process_models
 

Último

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 

Último (20)

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 

13 software metrics

  • 1. Software Metrics What it is? What are the different Metrics? The act of collecting Software measurement Data. 13 January 2012 Made By Utpal Ray 1
  • 2. Software Metrics The Story So Far  4 Blocks SDLC ( Software Development Life Cycle ) Model Design and SPECIFI- Testing and Maintenance Development CATION Validation Software Measurement Process 13 January 2012 Made By Utpal Ray 2
  • 3. Software Metrics  Why do we do software measurement? Measurement is fundamental to any engineering discipline, and software engineering is no exception. To get an insight into the software process. To do process improvement. To make the quality of the product better. To express the qualitative factor by a number. To make a better estimate of the cost, schedule, complexity, effort requirements etc. of the s/w development process. 13 January 2012 Made By Utpal Ray 3
  • 4. Software Metrics  Why do we do software measurement? ( contd. ) The answer was nicely given by Lord Kelvin:- When you can measure what you are speaking about and express it in numbers, you know something about it; but when you cannot measure, when you cannot express it in numbers, your knowledge is of a meager and unsatisfactory kind: it may be the beginning of knowledge, but you have scarcely , in your thoughts, advanced to the stage of science. 13 January 2012 Made By Utpal Ray 4
  • 5. Software Metrics  Measures, Measurements, Metrics, Indicators Measure is a quantitative indication of the extent, size, amount, dimension, capacity of some attributes of a product or a process. Measurement is the act of determining a measure. Metric is a quantitative measure of the degree to which a system, component, or a process possesses a given attribute. An indicator is a metric or a combination of metrics that provide insight into the s/w process, a s/w project or the s/w product itself. 13 January 2012 Made By Utpal Ray 5
  • 6. Software Metrics  Measures, Measurements, Metrics, Indicators ( contd. ) S/W Engineering Process Measures Data Collection S/W Projects Metrics Metrics S/W Computation Products Metrics Indicators Evaluation 13 January 2012 Made By Utpal Ray 6
  • 7. Software Metrics  An example of “Measures, Measurements, Metrics, Indicators” All test engineers of a certain project started collecting the following measure – ‘The errors found in the test cycle’. But this measure is not enough to compute a suitable metric. You need two more measurements, which are number of test engineer and the number of months spent on the testing process. Suppose there were 5 test engineers and they spent about 6 months to do the necessary testing of the product. So, the total engineer-month is 30. 13 January 2012 Made By Utpal Ray 7
  • 8. Software Metrics  An example of “Measures, Measurements, Metrics, Indicators” ( contd. ) And let’s assume, all together they found about 60 errors. So, using all those measures mentioned above we can compute a Metric, which could be ‘Errors found per Engineer-Month’; and the value of that metric here is 2. This metric can be used here as an indicator regarding how efficient the test teams are or how good the product is. For example, after introducing an automated testing tool, the above metric may reach a value of ‘5’; which indicates the effectiveness of the automated testing tool used by the test team. So, this Metric can be used as an indicator of the efficiency of a project team. 13 January 2012 Made By Utpal Ray 8
  • 9. Software Metrics  Process, Project and Product Metrics - The process metrics are those metrics which are concerned with Software Development Life Cycle ( SDLC ). They can be used to improve the process efficiency of the SDLC. For example, the process metric ‘Defect Rate’ – the amount of defects reaching the customer can be used to improve the efficiency of the Development and the Testing team. If ‘Defect rate’ is less, we know that the efficiency of the Development and the Testing team is improving. 13 January 2012 Made By Utpal Ray 9
  • 10. Software Metrics  Process, Project and Product Metrics (contd.) - The project metrics are those metrics which are more relevant to a project team. They can be used to measure the efficiency of a project team or any other tools being used by the team members. One example of a project metric is ‘Errors found per engineer- month’ which was mentioned before. This is a relevant project metric for a test team. 13 January 2012 Made By Utpal Ray 10
  • 11. Software Metrics  Process, Project and Product Metrics (contd.) - The product metrics are those metrics which has more meaning in the perspective of the software product being developed. One of the example is, quality of the developed product. Considering the fact that quality is a subjective attribute, one needs a very good understanding of the measures based on which the quality metrics are computed. 13 January 2012 Made By Utpal Ray 11
  • 12. Software Metrics  Private and Public Metrics - The Private metrics are those metrics which are collected by individual software professionals. They are mostly used by any software professional to get an insight regarding how is his productivity or any other parameter of interests to him. For example, a test engineer may keep ‘errors found in a week’ as a private metric. Similarly, for a development engineer, ‘lines of code written in a week’ could be a private metric of interests to him. Also, an IT professional may keep ‘Number of new technology studied in a month’ as a private metric. 13 January 2012 Made By Utpal Ray 12
  • 13. Software Metrics  Private and Public Metrics ( contd. ) - The public metrics has more meaning on a overall team basis. The public metrics can be computed depending upon the private metrics made public by the individual software professional. They are more concerned with the project team rather than any individual software professional. The examples are, ‘Errors found per engineer-month’, ‘Lines of code written per engineer-month’, etc. 13 January 2012 Made By Utpal Ray 13
  • 14. Software Metrics  Private and Public Metrics ( contd. ) - It may happen that some of the product metrics are private metrics maintained by the individual engineer. When these metrics are shared by all the engineer on the team basis, those metrics can be combined to develop a set of project metrics on a project level. In addition to that, these project metrics can be consolidated to create a set of process metrics. So, at the end these process metrics become the public metrics for the whole organization. 13 January 2012 Made By Utpal Ray 14
  • 15. Software Metrics  Size Oriented Metrics The size oriented metrics are those metrics, which are computed keeping size of the software as main consideration. The size of the software are usually expressed in terms of KLOC ( Kilo Line Of Code ). The table on the following slide gives various project data ( measures ) for three different projects executed over 3 successive years. Using those project data one can come out with different size oriented metrics. 13 January 2012 Made By Utpal Ray 15
  • 16. Software Metrics  Size Oriented Metrics ( contd. ) Project Line of Total Cost Doc Errors Defects No of Name Code Effort in ( Lac Produc found found person ( LOC) person- of Rs ) ed ( in test in the s month pages ) Cycle field ALPHA 12,000 24 5 400 150 25 3 ( 2002 ) BETA 24,000 50 12 1000 250 50 6 ( 2003 ) GAMMA 18,000 33 8 800 175 30 5 ( 2004 ) 13 January 2012 Made By Utpal Ray 16
  • 17. Software Metrics  Size Oriented Metrics ( contd. ) The four different metrics which can be computed from the previous table are, Errors per KLOC, Defects per KLOC, Cost per KLOC and Doc per KLOC. Errors per Defects per Cost per Doc per KLOC KLOC KLOC (Thou) KLOC ALPHA 12.5 2 42 33 ( 2002 ) BETA 10.4 2 50 41 ( 2003 ) GAMMA 9.7 1.5 44 44 ( 2004 ) 13 January 2012 Made By Utpal Ray 17
  • 18. Software Metrics  Size Oriented Metrics ( contd. ) If we try to evaluate these metrics, we may end up finding one or two major indicators. These indicators may point towards a better quality process which was incorporated during those three years. For example, both ‘Error rate’ and ‘Defect Rate’ were gradually down as recent projects had been executed. These may give indication that, whatever quality process methodology was introduced during those projects had given out results towards the right direction. 13 January 2012 Made By Utpal Ray 18
  • 19. Software Metrics  Function Oriented Metrics (A. J. Albrecht, 1979) It’s a metric which gives the degree of functionality delivered by a software system. Since ‘functionality’ can not be measured directly; an indirect measurement is done by computing Function-Point ( FP ). FP is derived using an empirical relationship based on countable ( direct ) measures of software’s information domain and assessment of software complexity. FP can be computed by completing the table shown in the next slide and then applying some formulae. 13 January 2012 Made By Utpal Ray 19
  • 20. Software Metrics  Function Oriented Metrics ( contd. ) Measurement count Weighing Factor Sub- Parameter Simple Average Complex total No of User Inputs X 3 4 6 = No of User Outputs X 4 5 7 = No of User Inquiries X 3 4 6 = No of Files X 7 10 15 = No of External X 5 7 10 = Interfaces Count Total 13 January 2012 Made By Utpal Ray 20
  • 21. Software Metrics  Function Oriented Metrics ( contd. ) The weighing factor mentioned in the previous table depends upon the fact, whether that particular entry is simple, average or complex. FP can be given by the following formulae- FP = Count-Total x [ 0.65 + 0.01 x ( Fi ) ] Where, Fi ( i=1 to 14 ) are “complexity adjustment value”, based on the responses of the following questions. Each of the question is answered in a scale of 0 ( not important or applicable ) to 5 ( absolutely essential ). 13 January 2012 Made By Utpal Ray 21
  • 22. Software Metrics  Function Oriented Metrics ( contd. ) Complexity Adjustment Questions 1. Does the system require reliable Backup and Recovery? 2. Are Data Communication required? 3. Are there any Distributed Processing function? 4. Is Performance critical? 5. Will the system run in an existing, heavily utilizied Operational Environment ? 6. Does the system require Online Data Entry ? 7. Does the Online Data Entry require the input transaction to be built over multiple screens or operations ? 13 January 2012 Made By Utpal Ray 22
  • 23. Software Metrics  Function Oriented Metrics ( contd. ) Complexity Adjustment Questions ( contd. ) 8. Are the Master files updated Online? 9. Are the Inputs, Outputs, Inquiries, Files complex ? 10. Is the Internal Processing complex ? 11. Is the code designed to be Re-usable? 12. Are Conversion and Installation included in the design ? 13. Is the system designed for Multiple Installation in different organization ? 14. Is the application designed to facilitate Change and Ease of Use by the user? 13 January 2012 Made By Utpal Ray 23
  • 24. Software Metrics  Function Oriented Metrics ( contd. ) Once the FP is computed, the following metrics can be derived using FP as a normalization value. - Errors per FP Defects per FP Cost per FP Doc per FP FP per person-month 13 January 2012 Made By Utpal Ray 24
  • 25. Software Metrics  The relationship between LOC and FP ( C. Jones, 1998 ) Prog Lang LOC/FP Assembly Lang 320 C 128 COBOL 106 FORTRAN 106 PASCAL 90 C++ 64 VISUAL BASIC 32 POWEBUILDER 16 SQL 12 13 January 2012 Made By Utpal Ray 25
  • 26. Software Metrics  Defect Removal Efficiency ( DRE ) It is a metric which benefits both in the project level and process level. DRE is defined as; DRE= E / ( E + D ) Where, E is the number of errors found before the delivery of the software to the end user and D is the number of defects found after delivery. Ideally DRE should be 1 (means D is zero). DRE can also be used within a project team, to measure the team’s efficiency. In that context, E is the total number of errors uncovered in the project team; and D is the total number of defects uncovered in the next stage. 13 January 2012 Made By Utpal Ray 26
  • 27. Software Metrics  HOME TASK 1. Give 2 more examples of private metrics. 2. Think about 3 more metrics based on LOC. 3. Think about 2 more metrics based on FP. 4. Compute the FP for ‘SafeHome’ problem. 5. Compute the FP for the ‘Max Number’ prog. 13 January 2012 Made By Utpal Ray 27