Skip to main content

Edge Case & Boundary Test Matrices

This matrix lists complex real-world edge cases that QA engineers must test to ensure system stability under stress.


1. Inventory & Concurrency Edge Cases​

Case IDEdge ScenarioSetup / TriggerExpected Outcome
EC-INV-01Simultaneous Last-Item Race ConditionAvailable stock = 1 unit. Two orders for that SKU hit PointNXT within 50 milliseconds from Shopify and Amazon.Exactly one order claims the reservation and moves to CONFIRMED. The second order transitions to ON_HOLD (Insufficient Stock). Available stock must NEVER go negative if blockOversell=true.
EC-INV-02Physical Stock Wipeout via Cycle CountAvailable stock = 5, Reserved = 2. Cycle count adjustment enters physical stock as 1 (due to warehouse water damage).Available stock adjusts to max⁡(0,1−2)=0\max(0, 1 - 2) = 0. The two already-confirmed orders remain confirmed. PointNXT pushes 0 to all external channels immediately.
EC-INV-03Decimal Quantity PreventionAPI call attempts to order or inward 1.5 units of a discrete item (shoes).Request rejected with 400 Bad Request validation error.

2. Order Lifecycle & Status Edge Cases​

Case IDEdge ScenarioSetup / TriggerExpected Outcome
EC-ORD-01Cancel Order during Active PackingPacker at packing bench scans item 1 of 2. Customer support clicks "Cancel Order" in Admin portal simultaneously.Packing bench UI alerts packer with a pop-up: "Order Cancelled by Customer. Please return items to tote". Shipping label generation is blocked.
EC-ORD-02Courier API Outage during Label GenerationDelhivery API returns HTTP 503 or times out during packing.Packing bench displays clear message: "Carrier API unreachable. Switched to backup carrier (Bluedart) or queued for retry". No corrupted or half-saved orders.
EC-ORD-03Address Change Post-ManifestCustomer calls support asking to change city after parcel was manifested.Admin UI blocks address editing with error: "Address cannot be changed for manifested shipment. Contact carrier support directly".

3. Reverse Logistics & RTO Edge Cases​

Case IDEdge ScenarioSetup / TriggerExpected Outcome
EC-RET-01Duplicate RTO Inward ScanWarehouse worker accidentally scans the same returned box twice at the QC station.System shows warning: "AWB already inwarded and restocked on [Date/Time] by Operator X". Stock is NOT incremented a second time.
EC-RET-02Customer Returns Wrong ProductCustomer ordered iPhone; returned an old dummy handset.QC officer flags Grade C: Fraudulent / Mismatched Return. Stock is not added to inventory; customer refund is blocked; fraud incident report created.
EC-RET-03Delivery Attempt on Cancelled OrderCourier delivers a parcel that was cancelled and marked RTO.Delivery webhook is logged with conflict warning; order moves to investigation state for claims.