what is cyclomatic complexity? plz explain with example
Answer Posted / amit
Cyclomatic Complaxity comes under white box testing.
It means best path searching. To measure logical Complaxity
of a prog.
for ex.
1-main()
2-if(a>1)
3{
------
------
}
4-else
5-{
-------
-------
}
}
Now a diagram would drawn from top as it would start from 1.
underneath it would be 2. and 2 would have two edges i.e. 3
and 4. they would futher combine to form 5.
2,3,4 & 5 would make close regeoin while outside would
become open region..
the arrows joining would be edges 2 would become predicate
node. while others are simple nodes.
it has got a formula:
v(g)=Node-edges+2
v(g)= 5-5+2
v(g)=2
v(g)= predicate node+1
v(g)=1+1
v(g)=2
So its logical correct.
Please correct me if i'm wrong.
| Is This Answer Correct ? | 74 Yes | 29 No |
Post New Answer View All Answers
What is an exit criteria?
when database testing comes into manual tesing
Tell me the advantage and disadvantage of cookies?
What is pesticide paradox?
What is change request, how you use it?
what is diffrence between dynamic black box testing and dynamic white box testing
How to integrate Bugzilla with QTP?
what kind of testing have u done?
how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple
What is Dynamic Binding and Dynamic Loss?
what are all the things we will include in " what to be tested and what not to be tested" in Test Plan
Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan
Can Anbody please send me Daily Work status format in which I can save my daily work activity
Can you explain tpa analysis?
Beyond the customary advantages of having a testing group, what are the benefits does a company receive from a well run, automated testing group?