Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario: Disassociate Bin with invalid prodboxes by name - all prodboxes in bin and packing list isn't printed
- And profit has Orders:
- | id | tsOrdered | status | contactName | shipAddress1 | shipCity | shipState | shipZip | shipCountry | jsiInvoice | contractType | shipType | jsiRequester |
- | 143 | 2012-02-04 03:29:11+00 | valid | ProFIT devs | Magazine st 2929 | Louisville | KY | 40211 | US | 33233434 | STANDARD | 1 | 2 |
- And profit has Order Items:
- | id | quantity | tsCurrent | shipInterval | substrate | contractUsed | order | productType | number | truck |
- | 9a088af2-fc19-4453-a645-a11adcfad190 | 2250 | 2012-02-02 03:29:11+00 | 104:37:59 | 14PT | STANDARD | 143 | business cards | 1 | 1 |
- And profit has Signatures:
- | orderItemId | number | quantityRemaining | substrate | signatureType | pageList | creep | uvFront | uvBack |
- | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 | 0 | 14PT | F2-1 business cards | 1,2 | 0 | None | None |
- And profit has Press Sheets:
- | pressSheetType | substrate | id | tsGenerated | status | quantityRequested | quantityNeeded | generatorId | internal | name | generatorType | expireTime |
- | 1 | 14PT | 111111 | 2012-02-03 03:29:11+00 | valid | 1000 | 1000 | RESTAPI | PressSheet | K1-111111 | M | 2012-05-05 03:39:11+00 |
- And profit has Press Sheet Items:
- | id | position | flip | reprintCount | status | type | cuttingStatus | autoQc | pressSheet | orderItem | signature |
- | 11 | 1 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
- | 12 | 2 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
- | 13 | 3 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
- And profit has Product Boxes:
- | barcode | quantity | tsCreated | reprintCount | valid | envelope | pressSheetItem | orderItem | productBoxType | weight |
- | PRODBOX-3-1 | 1000 | 2012-02-04 03:40:11+00 | 0 | true | false | 11 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-1000 | 10 |
- | PRODBOX-3-2 | 1000 | 2012-02-04 03:40:11+00 | 0 | true | false | 12 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-1000 | 10 |
- | PRODBOX-3-3 | 250 | 2012-02-04 03:40:11+00 | 0 | true | false | 13 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-250 | 2.5 |
- And profit has Ship Groups:
- | id | boxBarcode | binName |
- | 2d68d416af328d74f7ac0e4a86d1e454 | | BRAVO 9B |
- And profit has Ship Group Items:
- | status | productBox | shipGroup |
- | pre | PRODBOX-3-1 | 2d68d416af328d74f7ac0e4a86d1e454 |
- | pre | PRODBOX-3-2 | 2d68d416af328d74f7ac0e4a86d1e454 |
- | pre | PRODBOX-3-3 | 2d68d416af328d74f7ac0e4a86d1e454 |
- And profit has Fulfillment Actions:
- | productBox | action | status |
- | PRODBOX-3-1 | binning | in progress |
- | PRODBOX-3-1 | truck loading | needs |
- | PRODBOX-3-2 | binning | in progress |
- | PRODBOX-3-2 | truck loading | needs |
- | PRODBOX-3-3 | binning | in progress |
- | PRODBOX-3-3 | truck loading | needs |
- And profit has Fulfillment Actions:
- | shipGroup | action | status |
- | 2d68d416af328d74f7ac0e4a86d1e454 | binning | in progress |
- And I create wsse header
- Then I send a POST request to "/api/orders/143/items/1/cancel"
- And the response code should be 200
- Then I send a POST request to "/api/bins/BRAVO%209B/disassociate"
- Then the response code should be 200
- And the response is JSON
- And the response should contain json:
- """
- {
- "id": 365,
- "aisle": "BRAVO",
- "name": "BRAVO 9B",
- "preference": 62,
- "primary_assignment": "RUSH",
- "ship_group": null,
- "order": null,
- "enabled": true,
- "url": "%base_url%\/api\/bins\/365"
- }
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement