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 ID | Edge Scenario | Setup / Trigger | Expected Outcome |
|---|---|---|---|
| EC-INV-01 | Simultaneous Last-Item Race Condition | Available 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-02 | Physical Stock Wipeout via Cycle Count | Available stock = 5, Reserved = 2. Cycle count adjustment enters physical stock as 1 (due to warehouse water damage). | Available stock adjusts to . The two already-confirmed orders remain confirmed. PointNXT pushes 0 to all external channels immediately. |
| EC-INV-03 | Decimal Quantity Prevention | API 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 ID | Edge Scenario | Setup / Trigger | Expected Outcome |
|---|---|---|---|
| EC-ORD-01 | Cancel Order during Active Packing | Packer 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-02 | Courier API Outage during Label Generation | Delhivery 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-03 | Address Change Post-Manifest | Customer 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 ID | Edge Scenario | Setup / Trigger | Expected Outcome |
|---|---|---|---|
| EC-RET-01 | Duplicate RTO Inward Scan | Warehouse 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-02 | Customer Returns Wrong Product | Customer 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-03 | Delivery Attempt on Cancelled Order | Courier delivers a parcel that was cancelled and marked RTO. | Delivery webhook is logged with conflict warning; order moves to investigation state for claims. |