0
2.2kviews
Explain Basic path testing and Cyclometric complexity.

Subject: Software Engineering

Topic: Testing Stratergies and Tactics

Difficulty: High

1 Answer
0
16views

Computing Cyclomatic Complexity: Cyclomatic complexity has a foundation in graph theory and provides us with extremely useful software metric. Complexity is computed in one of the three ways:

  1. The number of regions of the flow graph corresponds to the Cyclomatic complexity.

  2. Cyclomatic complexity, V(G), for a flow graph, G is defined as V (G) = E-N+2P Where E, is the number of flow graph edges, N is the number of flow graph nodes, P is independent component.

  3. Cyclomatic complexity, V (G) for a flow graph, G is also defined as: V (G) = Pie+1 where Pie is the number of predicate nodes contained in the flow graph G.

  4. Graph Matrices:The procedure for deriving the flow graph and even determining a set of basis paths is amenable to mechanization. To develop a software tool that assists in basis path testing, a data structure, called a graph matrix can be quite useful.

A Graph Matrix is a square matrix whose size is equal to the number of nodes on the flow graph. Each row and column corresponds to an identified node, and matrix entries correspond to connections between nodes. The connection matrix can also be used to find the cyclomatic complexity

Please log in to add an answer.