Find statement coverage and branch coverage:
1) Read P
Read Q
if P+Q>100
then print "Plarge"
endif
2. Disc=0
order_qty=0
Read order_qty
if order_qty>=20
Disc=0.05
if order_qty>=100 then
Disc=0.1
endif
endif
Answer Posted / nitin
for 1) - For stmnt. coverage we would require only 2 test
case to execute all the stmnts. in section 1.
for 2) For branch coverage we would require 3 test cases.
B'coz for every if condition we need to execute true and
false. So, false condition can be executed in a one go for
both IF condition and 2 test case would be required to
execute true for both IF condition.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
diff b/w desktop based testing & web application testing
user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc
how we write test cases to brs,srs,hlds,llds
What is boundary value testing? Give an example.
Do you know anything about Set Top Boxes?
How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.
What type of testing you perform in organization while you do system testing, give clearly?
HOW TO CREATE SRS REVIEW REPORT TO PL?
what are risks and contigencies(solutions) of an ecommerce (online shopping and bidding project)application?we describe this in Test plan can anyone tell me abt this?
Which are the standards for software test plans?
What is mean by Schedule report who is the responsible for generated that one ?
can anyone tell me the scenarios for online banking transaction ?
hi what are the test cases for web application..i need these example..please..mail me at mina_ims@yahoo.com
I have an UI issue "please fill out this field" pop up in firefox browser keeps scrolling with the page is it valid???
*) Internal review defect gets detected… 1) During peer review. 2) By the own stuff member onsite/offshore. 3) During Informal review process. 4) None of these 5) All of these