Bin Unit Test Procedures for HelixStore

EventHelix.com/EventStudio 2.0
Generated on 05-Jul-03 11:23

Code Reviewed By:

Unit Tested By:

Customer Purchases a Product

Test Procedures:

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

CR:

UT:

2.Send order_product to bin (Message from server) with parameters SKU, customer, ship_addr
  1. order_product message handler should be called
  2. bin should take action "Select item for shipping"
  3. bin should take action "Program magnetic strip with customer name, ship address"
  4. bin should send PRODUCT to router

CR:

UT:

HelixStore Replenishes Inventory

Test Procedures:

NumActionResultStatus
1.Create object bin
  1. Check if object bin data-structures and objects have been initialized correctly
  2. bin should take action "Check if inventory has fallen below a pre specified threshold"
  3. bin should send inventory_fallen to server with fields SKU

CR:

UT:

2.Send PRODUCTS to bin (Message from router)
  1. PRODUCTS message handler should be called
  2. bin should take action "Collect all the items corresponding to a the specified order number"
  3. bin should send items_received to server with fields order_number, SKU, quantity

CR:

UT:

Adding a New Product to HelixStore

Test Procedures:

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

CR:

UT:

2.Send product_setup to bin (Message from server) with parameters SKU, inventory_thresholds, routing_table
  1. product_setup message handler should be called
  2. bin should send product_setup_ack to server

CR:

UT:

3.Send start_operation to bin (Message from server)
  1. start_operation message handler should be called
  2. bin should take action "Check the Inventory"
  3. bin should send inventory_fallen to server with fields SKU

CR:

UT: