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.

Use basis path testing to develop the test cases for the following

Here are instructions for the solution...

code. Use the line (statement) numbers shown in your CFG. Use the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!