questionuse the following system printprimes for


Question

Use the following system printPrimes() for questions a-f below.

(a) Illustrate the control flow graph for the printPrimes() method.

(b) Consider test cases t1 = (n = 3) and t2 = (n = 5). Although these tour same prime paths in printPrimes(), they do not essentially find the same faults. Plan a simple fault that t2 would be more likely to discover than t1 would.

(c) For printPrimes(), find a test case such that corresponding test path visits the edge that connects the beginning of the while statement to for statement without going through the body of while loop.

(d) Specify test requirements for Node Coverage, Edge Coverage, and Prime Path Coverage for the graph for printPrimes().

(e) List test paths that achieve Node Coverage but not Edge Coverage on graph.

(f) List test paths that achieve Edge Coverage but not Prime Path Coverage on graph.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionuse the following system printprimes for
Reference No:- TGS0444929

Expected delivery within 24 Hours