Advertisement
Guest User

disassociate

a guest
Jun 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. Scenario: Disassociate Bin with invalid prodboxes by name - all prodboxes in bin and packing list isn't printed
  2.  
  3. And profit has Orders:
  4. | id | tsOrdered | status | contactName | shipAddress1 | shipCity | shipState | shipZip | shipCountry | jsiInvoice | contractType | shipType | jsiRequester |
  5. | 143 | 2012-02-04 03:29:11+00 | valid | ProFIT devs | Magazine st 2929 | Louisville | KY | 40211 | US | 33233434 | STANDARD | 1 | 2 |
  6.  
  7. And profit has Order Items:
  8. | id | quantity | tsCurrent | shipInterval | substrate | contractUsed | order | productType | number | truck |
  9. | 9a088af2-fc19-4453-a645-a11adcfad190 | 2250 | 2012-02-02 03:29:11+00 | 104:37:59 | 14PT | STANDARD | 143 | business cards | 1 | 1 |
  10.  
  11. And profit has Signatures:
  12. | orderItemId | number | quantityRemaining | substrate | signatureType | pageList | creep | uvFront | uvBack |
  13. | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 | 0 | 14PT | F2-1 business cards | 1,2 | 0 | None | None |
  14.  
  15. And profit has Press Sheets:
  16. | pressSheetType | substrate | id | tsGenerated | status | quantityRequested | quantityNeeded | generatorId | internal | name | generatorType | expireTime |
  17. | 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 |
  18.  
  19. And profit has Press Sheet Items:
  20. | id | position | flip | reprintCount | status | type | cuttingStatus | autoQc | pressSheet | orderItem | signature |
  21. | 11 | 1 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
  22. | 12 | 2 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
  23. | 13 | 3 | false | 0 | 0 | 0 | 1 | false | 111111 | 9a088af2-fc19-4453-a645-a11adcfad190 | 1 |
  24.  
  25. And profit has Product Boxes:
  26. | barcode | quantity | tsCreated | reprintCount | valid | envelope | pressSheetItem | orderItem | productBoxType | weight |
  27. | PRODBOX-3-1 | 1000 | 2012-02-04 03:40:11+00 | 0 | true | false | 11 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-1000 | 10 |
  28. | PRODBOX-3-2 | 1000 | 2012-02-04 03:40:11+00 | 0 | true | false | 12 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-1000 | 10 |
  29. | PRODBOX-3-3 | 250 | 2012-02-04 03:40:11+00 | 0 | true | false | 13 | 9a088af2-fc19-4453-a645-a11adcfad190 | BC-250 | 2.5 |
  30.  
  31. And profit has Ship Groups:
  32. | id | boxBarcode | binName |
  33. | 2d68d416af328d74f7ac0e4a86d1e454 | | BRAVO 9B |
  34.  
  35. And profit has Ship Group Items:
  36. | status | productBox | shipGroup |
  37. | pre | PRODBOX-3-1 | 2d68d416af328d74f7ac0e4a86d1e454 |
  38. | pre | PRODBOX-3-2 | 2d68d416af328d74f7ac0e4a86d1e454 |
  39. | pre | PRODBOX-3-3 | 2d68d416af328d74f7ac0e4a86d1e454 |
  40.  
  41. And profit has Fulfillment Actions:
  42. | productBox | action | status |
  43. | PRODBOX-3-1 | binning | in progress |
  44. | PRODBOX-3-1 | truck loading | needs |
  45. | PRODBOX-3-2 | binning | in progress |
  46. | PRODBOX-3-2 | truck loading | needs |
  47. | PRODBOX-3-3 | binning | in progress |
  48. | PRODBOX-3-3 | truck loading | needs |
  49.  
  50. And profit has Fulfillment Actions:
  51. | shipGroup | action | status |
  52. | 2d68d416af328d74f7ac0e4a86d1e454 | binning | in progress |
  53.  
  54. And I create wsse header
  55. Then I send a POST request to "/api/orders/143/items/1/cancel"
  56. And the response code should be 200
  57. Then I send a POST request to "/api/bins/BRAVO%209B/disassociate"
  58. Then the response code should be 200
  59. And the response is JSON
  60. And the response should contain json:
  61. """
  62. {
  63. "id": 365,
  64. "aisle": "BRAVO",
  65. "name": "BRAVO 9B",
  66. "preference": 62,
  67. "primary_assignment": "RUSH",
  68. "ship_group": null,
  69. "order": null,
  70. "enabled": true,
  71. "url": "%base_url%\/api\/bins\/365"
  72. }
  73. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement