WebTaxi Taxi_mgr Unit Test Procedures

EventHelix.com/EventStudio 2.0
Generated on 05-Jul-03 16:41

Code Reviewed By:

Unit Tested By:

Taxi available within 5 min. - taxi_mgr1

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr1
  1. Check if object taxi_mgr1 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr1 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called
  2. taxi_mgr1 should send map_request to mapping_service with fields start, end

CR:

UT:

3.Send map_response to taxi_mgr1 (Message from mapping_service) with parameters map, distance, time
  1. map_response message handler should be called
  2. taxi_mgr1 should send trip_ack to taxi_session with fields phone_num, resp_time = TWO_MIN

CR:

UT:

4.Send trip_query to taxi_mgr1 (Message from taxi_session)
  1. trip_query message handler should be called
  2. taxi_mgr1 should take action "Taxi Mgr displays the details about the next trip and waits for taxi driver's response"
  3. taxi_mgr1 should send trip_accepted to taxi_session
  4. taxi_mgr1 should send ready to taxi_session

CR:

UT:

5.Send ready_ack to taxi_mgr1 (Message from taxi_session)
  1. ready_ack message handler should be called
  2. taxi_mgr1 should send start_service to taxi_session

CR:

UT:

6.Send start_service_ack to taxi_mgr1 (Message from taxi_session)
  1. start_service_ack message handler should be called
  2. taxi_mgr1 should send end_service to taxi_session

CR:

UT:

7.Send end_service_ack to taxi_mgr1 (Message from taxi_session)
  1. end_service_ack message handler should be called

CR:

UT:

Taxi available within 5 min. - taxi_mgr2

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr2
  1. Check if object taxi_mgr2 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr2 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called
  2. taxi_mgr2 should send map_request to mapping_service with fields start, end

CR:

UT:

3.Send map_response to taxi_mgr2 (Message from mapping_service) with parameters map, distance, time
  1. map_response message handler should be called
  2. taxi_mgr2 should send trip_ack to taxi_session with fields phone_num, resp_time = FOUR_MIN

CR:

UT:

Taxi available within 5 min. - taxi_mgr3

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr3
  1. Check if object taxi_mgr3 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr3 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called

CR:

UT:

Taxi available within 10 min. - taxi_mgr1

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr1
  1. Check if object taxi_mgr1 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr1 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called
  2. taxi_mgr1 should send map_request to mapping_service with fields start, end

CR:

UT:

3.Send map_response to taxi_mgr1 (Message from mapping_service) with parameters map, distance, time
  1. map_response message handler should be called

CR:

UT:

4.Send trip_request to taxi_mgr1 (Message from mobile_msg_service) with parameters max_time_to_resp = TEN_MIN
  1. trip_request message handler should be called
  2. taxi_mgr1 should send trip_ack to taxi_session with fields phone_num, time_to_resp = SIX_MIN

CR:

UT:

5.Send trip_query to taxi_mgr1 (Message from taxi_session)
  1. trip_query message handler should be called
  2. taxi_mgr1 should take action "Taxi Mgr displays the details about the next trip and waits for taxi driver's response"
  3. taxi_mgr1 should send trip_rejected to taxi_session

CR:

UT:

Taxi available within 10 min. - taxi_mgr2

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr2
  1. Check if object taxi_mgr2 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr2 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called
  2. taxi_mgr2 should send map_request to mapping_service with fields start, end

CR:

UT:

3.Send map_response to taxi_mgr2 (Message from mapping_service) with parameters map, distance, time
  1. map_response message handler should be called

CR:

UT:

4.Send trip_request to taxi_mgr2 (Message from mobile_msg_service) with parameters max_time_to_resp = TEN_MIN
  1. trip_request message handler should be called
  2. taxi_mgr2 should send trip_ack to taxi_session with fields phone_num, time_to_resp = NINE_MIN

CR:

UT:

5.Send trip_query to taxi_mgr2 (Message from taxi_session)
  1. trip_query message handler should be called
  2. taxi_mgr2 should take action "Taxi Mgr displays the details about the next trip and waits for taxi driver's response"
  3. taxi_mgr2 should send trip_accepted to taxi_session
  4. taxi_mgr2 should send ready to taxi_session

CR:

UT:

6.Send ready_ack to taxi_mgr2 (Message from taxi_session)
  1. ready_ack message handler should be called
  2. taxi_mgr2 should send start_service to taxi_session

CR:

UT:

7.Send start_service_ack to taxi_mgr2 (Message from taxi_session)
  1. start_service_ack message handler should be called
  2. taxi_mgr2 should send end_service to taxi_session

CR:

UT:

8.Send end_service_ack to taxi_mgr2 (Message from taxi_session)
  1. end_service_ack message handler should be called

CR:

UT:

Taxi available within 10 min. - taxi_mgr3

Leg Taken:

Test Procedures:

NumActionResultStatus
1.Create object taxi_mgr3
  1. Check if object taxi_mgr3 data-structures and objects have been initialized correctly

CR:

UT:

2.Send trip_request to taxi_mgr3 (Message from mobile_msg_service) with parameters max_time_to_resp = FIVE_MIN
  1. trip_request message handler should be called

CR:

UT:

3.Send trip_request to taxi_mgr3 (Message from mobile_msg_service) with parameters max_time_to_resp = TEN_MIN
  1. trip_request message handler should be called

CR:

UT: