what is cyclomatic complexity? plz explain with example

Answer Posted / hnv bhaskar

Cyclomatic complexity is a white box testing technique, used
for Structural Testing.
CC can be calculated with two types of formulae:
a) M=E-N+2P
b) M=E-N+P (For Strongly connected systems, i.e, Exit point
is connected back to Starting Point.

E= No. of Edges.
N= No. of Nodes.
P= No. of Connected components.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write test cases on wall

1722


how many meeting in realtime environment? what are they?plz explain?

1480


What are differences between Testing in Uncontrolled Environment and Abnormal Environment?

2374


Testcases for msword( microsoct office word??

1666


1.what is the approach while writing test cases in your project. 2.tell some intresting scenareo in your project

1825






how to connect your project in database?

1525


Explain test metric and the information it provides.

686


Can anyone please answer the below question on Manual Testing: Tell me about atleast 5 bugs you come across in your last testing?

1589


Artifacts in design phase of SDLC ?

3080


Upps..., sorry my email id is this : preet405p@yahoo.com Thanks in advanced.

1662


can u merge 10GUI map files into a single GUI map file in winrunner?

1558


Can you explain equivalence partitioning?

598


Explain the manual testing process?

724


What is an mr?

674


wht is Manual Testing Frame work

1663