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 a critical bug?
Can anyone write test cases on google account creation page in the testing template format , urgent pls and explain if possible how to execute also
how to write test cases on SRS?tell me any example which type of certification is usefull for less then 1 yr exp. people in testing. can anybody know immediatly sent it which the answer
what kind of testing have u done?
How we can test Cookies Manually?
what will be verification and validation test cases for yahoo login page (only functional test cases)? Please explain in details.
Do you know anything about Set Top Boxes?
I have an UI issue "please fill out this field" pop up in firefox browser keeps scrolling with the page is it valid???
Hi All I want discuss abt Testing tools is any one available online in google chat?
How do you scope,organise and execute a test project.
PLEASE CAN ANYONE SEND ME THE TEST SCENARIO BASED QUESTIONS FOR 3+ EXPERIENCE IN MANUAL TESTING
When we are recording in WinRunner and interact with the AUT, what does WinRunner do?
Actually by using severity you should know which one you need to solve so what is the need of priority?
What are all the scenario for 1.google analytics 2.api 3.paypal
wht is Manual Testing Frame work