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
I have 2 yrs 10 months experience in manual testing. there is a gap of 3 yrs in between. just 3 months before i rejoined the same company. I am looking for new & better job.What I have to enhance my career to up level, should I have to do Automation course or any other. Guide me properly.
What is the difference between code walkthrough and code review? What is the difference between walkthrough and inspection?
What types of documentation are used in qa?
Hi Friends, I want to know the best institute in hyderabad which is giving training in 'SAP Testing' and who is the best faculty. Regards, Imtiyaz..
hi all I have an overall experience of 12 years working in an EDP setup(worked in a manufacturing setup in a German MNC). On my request, I was relieved from my duties in Sep 06 for maternity reasons. However I would like to pursue a career in a software organization as a manual tester. I obtained my proficiency certificate in Software Testing from STAG SOFTWARE LIMITED 2 months ago i.e in May and would now like to continue working in this field. However I am unable to find a job until now. If anybody knows of a opening at bangalore, kindly let me know.
How to do manual testing of a E-insurance project (end to end process)
difference between change management and configuration management
Discuss what test metrics you feel are important to publish an organization?
Hi,Please can any one tell me about SAP Testing concepts.
What are the advantages of automation over manual testing?
How to test the search functionality.For example in naukri advance search is there.how ca i test that page.
what are the Cs in testing
Can anyone tell me about banking project? abt the transactions? the flow?
What is test closure?
What are the standard you follow in your company to prepare test plan document? Content is same in every standard or not. Also is there any document to read about the testing standards? Thanks in advance for giving me the answer.