Page 205 - DCAP305_PRINCIPLES_OF_SOFTWARE_ENGINEERING
P. 205

Unit 9: Metrics



               •  In one of the earliest work on information flow metrics, the complexity of a module is   Notes
                 considered as depending on the intramodule complexity and the intermodule complexity.
               •  Software quality metrics focus on the quality aspects of the product, process, and project.
               •  Implement  the  defect  arrival  metric  during  the  last  phase  of  testing,  augmented  by  a
                 qualitative indicator of the number of critical problems (or show stoppers) and the nature
                 of these problems.

               •  The product is shipped, a natural metric is the number of defects coming in from the field
                 over time.

               •  When a product size metric is available, the above metrics can be normalized to form
                 other metrics such as defect density curves over time, during testing or when the product
                 is in the field, and overall defect rate of the product, for a specific duration or for the
                 maintenance life of the product.
               •  Discussion of a few simple and useful metrics as the beginning of a good metrics practice
                 is from the quality perspective. For overall project management.

            9.5 Keywords

            Cohesion  Metrics: Metrics can help software developers and managers assess the quality  of
            software and pinpoint trouble areas in their systems.
            Control Flow Graphs: Control flow graphs describe the logic structure of software modules. A
            module corresponds to a single function or subroutine in typical languages, has a single entry
            and exit point.
            Control Flow Paths: Cyclomatic complexity can be characterized as the number of elements of
            a basis set of control flow paths through the module.

            Cyclomatic Complexity: Cyclomatic complexity is software metric that provides a quantitative
            measure of the logical complexity of a program.

            Flow Graph Notation: The flow graph depicts logical control flow using a diagrammatic notation.
            Each structured construct has a corresponding flow graph symbol.

                          1. Draw the control flow graph with complexity
                          2. Solve the problem of cohesion metrics with example.

            9.6 Review Questions


              1.  What are the matrices?
               2.  Explain the cohesion metrics.

               3.  How many bugs can be expected?
               4.  Define control flow with complexity.

               5.  What do you understand by control flow with complexity 12?

               6.  Differentiate between control flow with complexity 6 and 12.
               7.  Discuss about control flow with complexity 17 and 27.

               8.  What are the network metrics?



                                             LOVELY PROFESSIONAL UNIVERSITY                                   199
   200   201   202   203   204   205   206   207   208   209   210