Orbit_allocator Unit Test Procedures for SpacePort

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

Code Reviewed By:

Unit Tested By:

Successful Spacecraft Docking and Undocking

Legs Taken:

Test Procedures:

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

CR:

UT:

2.Send OrbitAvailabilityCheck to orbit_allocator (Message from spaceship_obj)
  1. OrbitAvailabilityCheck message handler should be called
  2. orbit_allocator should send OrbitAvailabilityStatus to spaceship_obj with fields status = ORBIT_AVAILABLE

CR:

UT:

3.Send OrbitAllocRequest to orbit_allocator (Message from spaceship_obj)
  1. OrbitAllocRequest message handler should be called
  2. orbit_allocator should allocate resource "Docking orbit"
  3. orbit_allocator should send OrbitAllocResponse to spaceship_obj with fields orbit_location

CR:

UT:

4.Send OrbitDeallocRequest to orbit_allocator (Message from spaceship_obj)
  1. OrbitDeallocRequest message handler should be called
  2. orbit_allocator should free resource "Docking orbit"
  3. orbit_allocator should send OrbitDeallocResponse to spaceship_obj

CR:

UT:

5.Send OrbitAllocRequest to orbit_allocator (Message from undocking)
  1. OrbitAllocRequest message handler should be called
  2. orbit_allocator should allocate resource "Undocking orbit"
  3. orbit_allocator should send OrbitAllocResponse to undocking with fields orbit_location

CR:

UT:

6.Send OrbitDeallocRequest to orbit_allocator (Message from spaceship_obj)
  1. OrbitDeallocRequest message handler should be called
  2. orbit_allocator should free resource "Undocking orbit"
  3. orbit_allocator should send OrbitDeallocResponse to spaceship_obj

CR:

UT:

Orbit Resource not Available

Leg Taken:

Test Procedures:

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

CR:

UT:

2.Send OrbitAvailabilityCheck to orbit_allocator (Message from spaceship_obj)
  1. OrbitAvailabilityCheck message handler should be called
  2. orbit_allocator should send OrbitAvailabilityStatus to spaceship_obj with fields status = NO_ORBIT_AVAILABLE

CR:

UT:

Docking Resource not Available

Legs Taken:

Test Procedures:

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

CR:

UT:

2.Send OrbitAvailabilityCheck to orbit_allocator (Message from spaceship_obj)
  1. OrbitAvailabilityCheck message handler should be called
  2. orbit_allocator should send OrbitAvailabilityStatus to spaceship_obj with fields status = ORBIT_AVAILABLE

CR:

UT: