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 decision table testing?
if you have 100 test cases, in that 80 passed and 20 failed, Which test cases your select for Retest and Regression testing?
What is showstopper defect?
please give possible testcases for a mobile phone
3 Answers Barclays, JPMorgan Chase, MSIIT, Wipro,
I HAVE AN INTERVIEW IN A SOFTWARE COMPANY FOR THE POST OF FUNCTIONAL TEST ENGINEER. THEY WANT THE PERSON FROM BCOM BACK GROUND( I AM A BCOME GRADUATE 2006) AND THE PERSON SHOULD HAVE GOOD ACCOUNTS KNOWLEDGE. NOW I WANT TO KNOW WHAT KINDS OF QUESTIONS THEY CAN ASK OR CAN GIVE IN WRITTEN TEST. I M NERVOUS COZ ITS BEEN 5 YEARS I HAVE DONE BCOM. SO HOW SHUD I PREPARE FOR INTERVIEW.PLEASE HELP? reply me pls. its urgent. thanks
What is cookie testing?
What makes a good QA or Test manager?
what is user interface testing?
What SQL statements have you used in Database Testing?
what is test metrics? difference between test matrix and test metrics? (Asked in Zensar Hyderabad today(17-1-12010))
SAY I HAVE A GMAIL PAGE OPENED IN IE 8 NOW WHAT WOULD BE YOUR COMPATABILITY TEST CASES FOR THAT>?
how to determine if a test environment is approritate?