Question: ( Software testing ) Can you answer (a) which is to draw the shown code as a contol flow Part 1: Consider the code of

Part 1: Consider the code of the method getDescription(int a, int b, int c) which implements the specification of the first question in Assignment 1. The method has three parameters: a, b, and c. a. Draw a control flow graph for the program and clearly label each node to show its correspondence to a statement. b. Calculate the program's cyclomatic complexity. What does this mean in terms of the number of test cases to cover the code with respect to its branches? c. Develop a set of test cases to achieve full decision coverage. For each test case, you must provide the input values and the expected output in addition to the covered path. Fill the following table: Path Covered Test Case Identifier Input Values Expected Actual Outputs Outputs Test Case Result (Pass/ Fail) 1 public static String getDescription(int a, int b, int c){ 2 boolean c1, c2, C3; 3 String rs = 4 5 c1 = (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
