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
Answers were Sorted based on User's Feedback
Answer / kshama
Hi Nitin,
can you please elaborate ur answer.I am not getting it as
because i don't know how to find statement coverage and
condition coverage. and kindly explain me what all
conditions needs to be keep in mind while find statement
coverage and condition coverage.
Thanks & Regards,
Kshama
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
What is meant by resource allocation?(asked in interview for test lead)?
8 Answers Accenture, Acro Technologies,
what is error handling in qtp
If someone had 2 months experience in manaul testing but not that much effetive knowledge then what he should do show experience or not in his C.V.
HI, I am new to this field. I am a CCNA and want to start career in router testing.I need some sample test cases to Routers. Can someone send me in mail or post them in this forum or can post any website name where I can find the information. Thanks in advance
What is GUI Check list?
2 Answers Covansys, IDS Software,
How to do risk management?
can u tell me the recently u raised the critical defect? tell me u r own plzzzzzzz yar?
Differences between waterfall and V model
Tell me system level and integration level test case for telephone.
How do you go about testing a project?
Hi every1 im working in bangalore d hve 2+ years of experience(Manual),knowledge on automation tools(QTP) ,iam looking for a change plz if any opening in ur company plz mail me mail2priyareddy@gmail.com
What is ERP.Give a simple description about that.