what is cyclomatic complexity? plz explain with example
Answer Posted / mrinalini
Cyclomatic complexity is a metric used for complexity based
testing proposed by McCabe
McCabe actually proposed 3 metrics:cyclomatic,essential and
actual complexity.All 3 are based on the graphical
representation of the program being tested.First 2 are
calculated from the graph and the 3rd one is runtime metric.
mcCabe used the theory of graph in defining Cylocamatic
complexityThere are sets of
linearly independent program paths through any program
graph. A maximum set of these linearly
independent paths, called a basis set, can always be found.
Intuitively, since the program graph
and any path through the graph can be constructed from the
basis set, the size of this basis set should be related to
program complexity. hence in a layman's language Cyclomatic
complexity is number of Decision statements in the program
being tested plus one.
| Is This Answer Correct ? | 41 Yes | 9 No |
Post New Answer View All Answers
1) how will you do validation testing in combo box ? (2)Suppose user does not want maximum length validation message, but when tester inserts data in textbox and it gets truncated, how will you resolve this issue ? (3)if a user inserts maximum number in quantity textbox in a PHP based web application then what result will show?
What’s the difference between verification and validation in testing?
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
what is a data guidelines?
wht is Manual Testing Frame work
can anyone tell me the questions that can be posed in an interview for a 5 year experienced person in manual testing
what is the critical defect in telecom domain?help me out from this prob its very urgent
how can you test the web environment for security testing?
What is a test server?
plz send the test scenarios and test cases for "user name should contain 4 to 8 chars and they should have only vowels"
define risk management system with example ?
What is the Jar file?
Write a set of test cases to test youtube?
How can write testcases on a code under development pls give asnwer
Do you know anything about Set Top Boxes?