Question: Question 2 Consider the following Traffic Light System specification and transition diagram in figure 2 below. Traffic light system works as follow: Whenever the system

 Question 2 Consider the following Traffic Light System specification and transition

diagram in figure 2 below. Traffic light system works as follow: Whenever

the system start-up, the red light on, and the other lights off.

Question 2 Consider the following Traffic Light System specification and transition diagram in figure 2 below. Traffic light system works as follow: Whenever the system start-up, the red light on, and the other lights off. When the red light on, it will on for 10 seconds, then the red light off and the green lights on. When the green light on, it will on for 10 seconds, then the green light off and the orange light on. When the orange light on, it will on for 2 seconds, then the orange light off and the red light on. The input value is the current traffic light colour (either red, green or yellow), and the duration in seconds, whilst the output is the next traffic light colour. RED 2s 10s ORANGE GREEN 10s Figure 2: Transition diagram of traffic light system. i. Create state transition table. ii. Identify how many test cases to cover 100% test coverage. iii. Write all possible test cases

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!