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
how to clarify functional requirements and non functional requirements in a srs?
What is software configuration management?
Explain Testing process in your organization?
Can list out some disadvantages of manual testing?
can anyone tell me few critical bugs in ecommerce project.
After insert the record in front-end, how will you check the back end by manually? Please explain?
Hi, i am looking job in perfomance testing using Loadrunner can any body help me a project in any domine plz(Usah) chs_29@rediffmail.com
What is Independent Testing?
do we need to write test cases for workflow of the product for instance: there is 2 module "TRAINING ASSIGN MODULE" and "EMPLOYEE" in TRAINING assign MODULE iam assigning training to employee setp is 1.selct traning "oracle" 2.select employee u want assign "peter" 3.apply. now to check whether training assign or not GOTO EMPLOYEE module 1.click on "peter" 2.click on 'view assign to employee'link.now this is a flow do i need to write test cases for this fllow.plz help me guy mail me nirmal_rawatt@rediff.com
Give the real-time example for back-to-back testing?
How will you determine when to stop testing?
if go through 1 or 2 projects clearly,then i feel comfortable to search the job,please help me
How do you test for the coockies for a web application?
what are your achievements in your organization ? Guyz very very urgent , help me
how to write test cases for epos/pos testing.