Skip to content

Delivery Simulation #31

@DakotaCondos

Description

@DakotaCondos

As the Order Service,
I want an assigned bot to simulate travel to a fake GPS destination and complete the order,
so that the delivery lifecycle can be tested without a physical robot.

Acceptance Criteria

  • Given a bot accepts an order and is available
    When delivery begins
    Then the bot status changes to OnDelivery.

  • Given a bot accepts an order while already delivering
    When the order is accepted
    Then the bot queues the order internally.

  • Given a bot is on delivery
    When telemetry is generated
    Then the bot’s GPS location moves in a straight-line path toward the fake destination.

  • Given the bot reaches the destination
    When the delivery simulation completes
    Then the bot marks the order as complete.

  • Given the completed order had reserved stock
    When the order is finalized
    Then the bot deducts the delivered quantities from onboard stock.

  • Given the bot has queued orders
    When the current order is completed
    Then the bot begins the next queued order and remains OnDelivery.

  • Given the bot has no queued orders
    When the current order is completed
    Then the bot status changes to Available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions