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 the difference between buglog and defect tracking?
Give proper Seq. to following testing Types Regression, Retesting, Funtional, Sanity and Performance Testing.?
How will we come to know that its a bug,in what situations we consider it as a bug?
How many hours a week should a tester work?
if my documents (SRS &FRS) having erros(does not meets) the requirements in that situation,which document i should take to write the testcases?(othere wise which steps i should take? Thanks In Advance
What is mean by bug? how its gets injected into application?
Iam new to testing field and i put lot of experiences so i want to get prepared for the interview in all the ways both in manual and Automation can any one help me how to answer there questions in real time. also can anyone send the top questions and answers to me plz its urget u can mail me at vaisu72@yahoo.com
What is verification in software testing?
what is the difference between Bug and Defect
If a webapplication is handed over and you are requested to come out with a test strategy. what are all the key things will you include in test strategy?
What is positive and negative testing?
how do u develop test harness?