Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.97 KB | None | 0 0
  1. Scenario: SAME DAY DELIVERY 34lbs bitgit zip - multi
  2. Given a customer wants to order 250 A4 blank envelopes
  3. And a customer wants to order 300 A4 blank envelopes
  4. And order address is set to "288 West Street||, New York, NY, 10013, US"
  5. And order delivery date is set to "%today + 2 business days%"
  6. And order contract type is set to "RUSH"
  7. And order ship type is not specified
  8. And a customer submits the order
  9. And order should be accepted
  10. And I wait 10 seconds
  11. And I go to order admin page
  12. And I get ship group from REST API
  13. And ship group ship from address should be "525 Main Street||, Belleville, NJ, 07109, US"
  14. And order ship type should be "SAME DAY DELIVERY"
  15. And I create product box for order item 1 of order 1
  16. And I create product box for order item 2 of order 1
  17. And I get order item 1 from REST API
  18. And order item 1 quantity to box should be 0
  19. And I get order item 2 from REST API
  20. And order item 2 quantity to box should be 0
  21. And I go to order admin page
  22. And I get ship group 1 from REST API
  23. And I start ship boxing for a ship group 1
  24. And I go to order admin page
  25. And I get ship group 1 from REST API
  26. And I send a POST request to ProFIT on "ship-groups/%ship_group_1%/transition" with body:
  27. """
  28. {
  29. "transition": "start:ship label",
  30. "note": "text"
  31. }
  32. """
  33. And the response code should be 200
  34. And I get a truck for "Next Day Air" schedule
  35. And I send a POST request to ProFIT on "trucks/%truck_id%/create-shipping-container" with body:
  36. """
  37. {
  38. "id": "%truck_id%-LasershipShippingRush-2",
  39. "ship_to": {
  40. "street1":"525 Main Street",
  41. "street2":"",
  42. "street3":"",
  43. "city":"Belleville",
  44. "postal_code":"07109",
  45. "state_code":"NJ",
  46. "country_code":"US"
  47. },
  48. "box_type":"Gaylord"
  49. }
  50. """
  51. And the response code should be 201
  52. And I get ship group for product box 1
  53. And I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
  54. """
  55. {
  56. "shipping_container": "%truck_id%-LasershipShippingRush-2"
  57. }
  58. """
  59. And the response code should be 200
  60. And I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/transition" with body:
  61. """
  62. {
  63. "transition": "stop:container packing",
  64. "note": "Start printing ship label for container"
  65. }
  66. """
  67. And the response code should be 200
  68. And I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/transition"
  69. """
  70. {
  71. "transition": "start:ship label",
  72. "note": "Start printing ship label for container"
  73. }
  74. """
  75. And the response code should be 200
  76. When I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/load-to-truck"
  77. """
  78. {
  79. "truck_name": "%truck_id%",
  80. "truck_number": "547 KPE"
  81. }
  82. """
  83. Then the response code should be 200
  84.  
  85. Scenario: Create Store Pickup multi order without Return Address
  86. Given a customer wants to order 100 2x6 bookmarks
  87. And a customer wants to order 100 2x6 bookmarks
  88. And order ship type is set to "Store Pickup"
  89. And order address is set to "2801 B Street||, San Diego, CA, 92666, US"
  90. When a customer submits the order
  91. Then the order should be accepted
  92. And I download all files for all order items
  93. And I want to create a press sheet
  94. And I place order item 1 of order 1 to press sheet
  95. And I place order item 2 of order 1 to press sheet
  96. And I submit the press sheet
  97. And press sheet should be accepted
  98. And press sheet is ready for boxing
  99. And I create product boxes for press sheet
  100. And I go to order admin page
  101. And I get ship group from REST API
  102. And order ship type should be "Store Pickup"
  103. And I create product box for order item 1 of order 1
  104. When I get order item 1 from REST API
  105. Then order item 1 quantity to box should be 0
  106. And I create product box for order item 2 of order 1
  107. When I get order item 2 from REST API
  108. Then order item 2 quantity to box should be 0
  109. And I go to order admin page
  110. And I get ship group from REST API
  111. And I start ship boxing for a ship group 1
  112. And I go to order admin page
  113. And I get ship group 1 from REST API
  114. When I send a POST request to ProFIT on "ship-groups/%ship_group_1%/transition" with body:
  115. """
  116. {
  117. "transition": "start:ship label",
  118. "note": "text"
  119. }
  120. """
  121. Then the response code should be 200
  122. And I get ship group 2 from REST API
  123. When I send a POST request to ProFIT on "ship-groups/%ship_group_2%/transition" with body:
  124. """
  125. {
  126. "transition": "start:ship label",
  127. "note": "text"
  128. }
  129. """
  130. Then the response code should be 200
  131. And I get a truck for "GSO" schedule
  132. When I send a POST request to ProFIT on "trucks/%truck_id%/create-shipping-container" with body:
  133. """
  134. {
  135. "id": "%truck_id%-StorePickupShipping-4",
  136. "ship_to": {
  137. "street1":"2801 B Street",
  138. "street2":"",
  139. "street3":"",
  140. "city":"San Diego",
  141. "postal_code":"92666",
  142. "state_code":"CA",
  143. "country_code":"US"
  144. },
  145. "box_type":"Gaylord"
  146. }
  147. """
  148. And the response code should be 201
  149. And I get ship group for product box 1
  150. When I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
  151. """
  152. {
  153. "shipping_container": "%truck_id%-StorePickupShipping-4"
  154. }
  155. """
  156. Then the response code should be 200
  157. And I get ship group for product box 2
  158. When I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
  159. """
  160. {
  161. "shipping_container": "%truck_id%-StorePickupShipping-4"
  162. }
  163. """
  164. Then the response code should be 200
  165. When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/transition" with body:
  166. """
  167. {
  168. "transition": "stop:container packing",
  169. "note": "Start printing ship label for container"
  170. }
  171. """
  172. Then the response code should be 200
  173. When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/transition"
  174. """
  175. {
  176. "transition": "start:ship label",
  177. "note": "Start printing ship label for container"
  178. }
  179. """
  180. Then the response code should be 200
  181. When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/load-to-truck"
  182. """
  183. {
  184. "truck_name": "%truck_id%",
  185. "truck_number": "547 KPE"
  186. }
  187. """
  188. Then the response code should be 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement