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
How will you do beta testing?
What does you mean by positive and negative testing & what is the difference between them. Can anyone explain with an example?
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.
Define brain stromming?
how to write defects in excel sheets when defects occured
I know functional test cases are derived from frs and system design specs. But are test cases for performance, database, boundary, relational integrity and other types of tests other than functional tests created from frs and system design specs as well? When are these test cases created? Are they in the same test plans alongside functional test cases or is their a different test plan that includes these test cases?
How do you estimate white box testing?
how do u manage scripts in winrunner when you application is changing frequently?
How we test the bulk of contents in web page using manual testing? Is any open source tool available for that ? Thanks in advance..
You may be overqualified for this position we have to offer
How do u prepare test environment for ur application?
What is concurrent user hits in load testing?
what exactly is heuristic checklist approach for unit testing?
1.What is bidirectional traceability ??? and how it is implemented? 2.What is Automation Test frame work ? 3. Define the components present in test strategy? 4. Define the components present in test plan? 5. Have u written Test plan ?…. thank u!plz reply........
How to do security implementation for any URL??