Question: Use basis path testing to develop the test cases for the following code. Use the line (statement) numbers shown in your CFG. Use the following
Use basis path testing to develop the test cases for the following code. Use the line (statement) numbers shown in your CFG. Use the following template for the test case table. No assumptions on the range of distance.

Here are instructions for the solution...

public void setWarnings (double distance){ 1 2 redLight-yellowLight-greenLight-buzzer-brakes-false; if (distance >= 200.0) 4 greenLight-true; else 6 if (distance > 75.0) yellowLight-true; 8 9 10 else (distance 25.0) redLight-true yellowlight-true;) 12 13 14 else brakes-true redLight-true; yellowLight-true; buzzer=true;} 16 17 Test case table format: Expected Outputs TestInputs Case Distance RedLight YellowLight GreenLight BuzzerBrakes Basis Path
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
