Can anybody explain me branch/decision coverage with a
example.
Answer Posted / nitin
Branch Coverage reveals, if all branches were executed. (For example, an if-instruction has two branches, the then-branch and the else-branch.)
Decision Coverage reveals, if all decisions evaluated to both true and false. (For example, the decision of an if-instruction is what is between the parentheses.)
if (x > y)
print (x)
else if (x < y)
print (y)
else
print (x,y)
in the above example there are three decisions and 5 branches.
stmt 1 if two branches true or false
stmt 3 else if teo branches true or false
stmt 5 else one branch
so pass values like
x = 2,1,2
y = 1,2,2
so that all three decisions and 5 branches are covered.
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
can anyone tell me the questions that can be posed in an interview for a 5 year experienced person in manual testing
HI can i know who is taking real time testing classes in banglore? i am preparing to put 3+year experience in testing if possible anybody give suggestions for preparing 3+exp
hi every one can you send me ISTQB Course material on my Email id deeptimundra997@gmail.com
What are the two main categories of software testing?
What are the review documents used for testing?
How could we start writing testcases without having the FRS,BRS Docs? My Project has some docs that are related to explain the operations which will be done in the application. It is deployed in UAT server and is a maintainance project. Tell me some technipues or best way to provide the quality to application?
What are the cases why parameterization is necessary when load testing the Web server and the database server?
Hi I want to start online training couses for testing Any body plz help me out how to start the online courses Plz post the answer here or send me a mail for kommineni.1020@gmail.com
What is difference between web site testing, desktop application testing and wireless application testing? what is the difference in testing strategy to test them?
PLEASE CAN ANYONE SEND ME THE TEST SCENARIO BASED QUESTIONS FOR 3+ EXPERIENCE IN MANUAL TESTING
What are the queries mostly asked in testing ? give me some examples.
Explain the defect life cycle.
Can you explain equivalence partitioning?
what is test scenario and test condition?
explain fish model in detail?