Unit - Ii: Software Measurements
Unit - Ii: Software Measurements
SOFTWARE MEASUREMENTS
6 Benefits
Aspect of Software Size
Simple measure of size are often rejected because they do not
adequately reflect:
- Here object point is used for size measure in COCOMO 2.0. object points
calculation involves counting the no. of screens, reports & 3rd generation
Language components.
3. DeMarco’s approach
• This approach proposed a functionality measure based on structured
analysis & design notation
• This approach involves bang metrics (specification weight metrics)
• Bang metric involve 2-measure
• Measuring efficiency:-
– Data Structure
2.7 CONTROL FLOW STRUCTURE
V (F)= e-n+2
OR
V (F)= 1+d
e= 11 & n=10
V (F)=11-10+2=3
OR
V (F)=1+2=3
2.7 CONTROL FLOW STRUCTURE
Test strategies:-
1. black-box (closed box) testing:- test cases are derived from
specification/requirement without reference to code or structure
2. White –box (open box) testing :-
Test cases based on knowledge of internal program structure
• M1= modules/procedures
• M2=modules/variables
• Node represents a module & one modules calls the other, we connect
two modules with edges.
• Complete Graph (Kn): It is the graph in which every two nodes are
connected directly by single edge. For example G4, G5 & G6 graph
• For every connected graph G, e can find at one subgraph that is a tree
built on same nodes as G, such a tree is called a Spanning Subtree.
2. Total level of information flow between individual system & rest of system.
Here modules are considered as intra modular attributes.
2.8.8 Information Flow:
Two particular attributes of information flow:
1. Fan in-- module M is the number of local flows that terminate at M.
2. Fan out -- module m is the number of local flows that emanate from m.
2.8.8 Information flow
• There have few attempts to define measure of actual data items & their
structure.
• Some properties:-
1. Adding code to program can’t decrease it’s complexity. so low
comprehensibility is not a key factor in complexity