Question: 5. For the following program P3 written in pseudocode, given the test set T: T = {t1 = <5, 2>, t2 = <3, 1>, t3
5. For the following program P3 written in pseudocode, given the test set T: T = {t1 = <5, 2>, t2 = <3, 1>, t3 = <9, 3>} a) What is the domain for statement coverage of P3? Note: do not include syntactical markers such as comments, {, }, else, begin, end. b) What is the statement coverage for T? c) What test cases (if any) should you add to T to provide 100% statement coverage? d) What is the domain for decision coverage of P3? e) What is the decision coverage for T? f) What test cases (if any) should you add to T to provide 100% decision coverage? g) What is the domain for condition coverage of P3? h) What is the condition coverage for T? i) What test cases (if any) should you add to T to provide 100% condition coverage? When measuring test coverage, normally coverage is expressed as a percentage. It can also be expressed as a fraction, and using an unsimplified fraction is preferred for this assignment. Note that when adding test cases, there are many possible test cases that satisfy the objective: provide 100% coverage for a given test criterion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
