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

What kind of testing to be done in client server application and web application? Explain

735


Beyond the customary advantages of having a testing group, what are the benefits does a company receive from a well run, automated testing group?

2985


In which all places, testing is done?One is from the server by calling server name.Can u suggest others?

1472


qtp9.2 and qtp10.0 difference

3021


What is localization testing (l10n testing)?

735






You want a automation tool to be used for your project. How will you convince the client for the same. Please give me specific answer.

1464


What is the Myers Boundary Table?

1547


What do you like about computers?

1773


What r the documents required for performance testing

1803


What is alpha testing?

665


wat are the questions would the project leader ask about the project?? please do send the answers early.

6533


What is the quality process is following in your organization.

1761


Hi there, I am new to the world of testing. Is there any place where I can have a look at an actual specification documents or test plans or test cases. This will help me in generating a level of confidence. Looking forward to your replies

1443


Hello again!! wanted to ask you HOW EXACTLY create stubs and driver in integration testing? 2.whats the difference between integration testing and system integration testing? Thanks!!

1700


What are the different levels of manual testing?

653