You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.