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
Explain the sub-genres of performance testing?
if go through 1 or 2 projects clearly,then i feel comfortable to search the job,please help me
What are some best practices that you should follow when writing test cases?
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
How we can test Cookies Manually?
Do submit teststrategy to customer if yes at what time
1.How can you Pick Integration Test Cases? 2.When will you start Regression Testing? 3.What is the difference between QA & QC? 4.When Will you Exit In Testing? 5.Test Deliverable's 6.What is the difference between windows based appln and web based appln? 7.What are the types of regression testing?
How to test the search functionality.For example in naukri advance search is there.how ca i test that page.
how many meeting in realtime environment? what are they?plz explain?
how will you test a wine filled bottle along with 100 glasses
What is error cusing tecnique
Hi i am looking for Test Engineer Job, i have done the course, but i don't have work experience on it, Is it So important to have real time Exp or knowledge is enough? and please let me know like how i can improve for the interview. You can send me a mail on this id: rashmi_vastred@yahoo.co.in
can you tell me how to write test cases for payments, receipts, inward clearing, outward clearing, A/c statements ?
My name is Akpos from Nigeria. I have finished manual testing course. Please, can someone advise me where to go on from here?
I am having 2 years of experience in Manual Testing, 2marrow I have an interview with a Company. Which type of questions they will ask me?How should I prepare for interview?Please guide me so that I will clear the interview.