Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario: SAME DAY DELIVERY 34lbs bitgit zip - multi
- Given a customer wants to order 250 A4 blank envelopes
- And a customer wants to order 300 A4 blank envelopes
- And order address is set to "288 West Street||, New York, NY, 10013, US"
- And order delivery date is set to "%today + 2 business days%"
- And order contract type is set to "RUSH"
- And order ship type is not specified
- And a customer submits the order
- And order should be accepted
- And I wait 10 seconds
- And I go to order admin page
- And I get ship group from REST API
- And ship group ship from address should be "525 Main Street||, Belleville, NJ, 07109, US"
- And order ship type should be "SAME DAY DELIVERY"
- And I create product box for order item 1 of order 1
- And I create product box for order item 2 of order 1
- And I get order item 1 from REST API
- And order item 1 quantity to box should be 0
- And I get order item 2 from REST API
- And order item 2 quantity to box should be 0
- And I go to order admin page
- And I get ship group 1 from REST API
- And I start ship boxing for a ship group 1
- And I go to order admin page
- And I get ship group 1 from REST API
- And I send a POST request to ProFIT on "ship-groups/%ship_group_1%/transition" with body:
- """
- {
- "transition": "start:ship label",
- "note": "text"
- }
- """
- And the response code should be 200
- And I get a truck for "Next Day Air" schedule
- And I send a POST request to ProFIT on "trucks/%truck_id%/create-shipping-container" with body:
- """
- {
- "id": "%truck_id%-LasershipShippingRush-2",
- "ship_to": {
- "street1":"525 Main Street",
- "street2":"",
- "street3":"",
- "city":"Belleville",
- "postal_code":"07109",
- "state_code":"NJ",
- "country_code":"US"
- },
- "box_type":"Gaylord"
- }
- """
- And the response code should be 201
- And I get ship group for product box 1
- And I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
- """
- {
- "shipping_container": "%truck_id%-LasershipShippingRush-2"
- }
- """
- And the response code should be 200
- And I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/transition" with body:
- """
- {
- "transition": "stop:container packing",
- "note": "Start printing ship label for container"
- }
- """
- And the response code should be 200
- And I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/transition"
- """
- {
- "transition": "start:ship label",
- "note": "Start printing ship label for container"
- }
- """
- And the response code should be 200
- When I send a POST request to ProFIT on "shipping-containers/%truck_id%-LasershipShippingRush-2/load-to-truck"
- """
- {
- "truck_name": "%truck_id%",
- "truck_number": "547 KPE"
- }
- """
- Then the response code should be 200
- Scenario: Create Store Pickup multi order without Return Address
- Given a customer wants to order 100 2x6 bookmarks
- And a customer wants to order 100 2x6 bookmarks
- And order ship type is set to "Store Pickup"
- And order address is set to "2801 B Street||, San Diego, CA, 92666, US"
- When a customer submits the order
- Then the order should be accepted
- And I download all files for all order items
- And I want to create a press sheet
- And I place order item 1 of order 1 to press sheet
- And I place order item 2 of order 1 to press sheet
- And I submit the press sheet
- And press sheet should be accepted
- And press sheet is ready for boxing
- And I create product boxes for press sheet
- And I go to order admin page
- And I get ship group from REST API
- And order ship type should be "Store Pickup"
- And I create product box for order item 1 of order 1
- When I get order item 1 from REST API
- Then order item 1 quantity to box should be 0
- And I create product box for order item 2 of order 1
- When I get order item 2 from REST API
- Then order item 2 quantity to box should be 0
- And I go to order admin page
- And I get ship group from REST API
- And I start ship boxing for a ship group 1
- And I go to order admin page
- And I get ship group 1 from REST API
- When I send a POST request to ProFIT on "ship-groups/%ship_group_1%/transition" with body:
- """
- {
- "transition": "start:ship label",
- "note": "text"
- }
- """
- Then the response code should be 200
- And I get ship group 2 from REST API
- When I send a POST request to ProFIT on "ship-groups/%ship_group_2%/transition" with body:
- """
- {
- "transition": "start:ship label",
- "note": "text"
- }
- """
- Then the response code should be 200
- And I get a truck for "GSO" schedule
- When I send a POST request to ProFIT on "trucks/%truck_id%/create-shipping-container" with body:
- """
- {
- "id": "%truck_id%-StorePickupShipping-4",
- "ship_to": {
- "street1":"2801 B Street",
- "street2":"",
- "street3":"",
- "city":"San Diego",
- "postal_code":"92666",
- "state_code":"CA",
- "country_code":"US"
- },
- "box_type":"Gaylord"
- }
- """
- And the response code should be 201
- And I get ship group for product box 1
- When I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
- """
- {
- "shipping_container": "%truck_id%-StorePickupShipping-4"
- }
- """
- Then the response code should be 200
- And I get ship group for product box 2
- When I send a PATCH request to ProFIT on "ship-groups/%ship_group_barcode_1%" with body:
- """
- {
- "shipping_container": "%truck_id%-StorePickupShipping-4"
- }
- """
- Then the response code should be 200
- When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/transition" with body:
- """
- {
- "transition": "stop:container packing",
- "note": "Start printing ship label for container"
- }
- """
- Then the response code should be 200
- When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/transition"
- """
- {
- "transition": "start:ship label",
- "note": "Start printing ship label for container"
- }
- """
- Then the response code should be 200
- When I send a POST request to ProFIT on "shipping-containers/%truck_id%-StorePickupShipping-4/load-to-truck"
- """
- {
- "truck_name": "%truck_id%",
- "truck_number": "547 KPE"
- }
- """
- Then the response code should be 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement