Direct Flow
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Scenario 1: Given Create a POL for P/E mix And Set 2 Physical with "createInventory": "Instance, Holding, Item" And Set 2 Electronic with "createInventory": "Instance, Holding, Item" And Set one location "Location 1" And Save and open PO And Edit POL and change location on "Location 2" and increase Electronic quantity from 2 to 3 When Save and close POL Then Actual : 4 old pieces still there and 5 new pieces created with "Location 2" 4 old items still there and 5 new items created with "Location 2" Expected : 3 Pieces for Electronic and 2 for Physical with "Location 2" 3 Items for Electronic and 2 for Physical with "Location 2" Scenario 2: Given Create a POL for P/E mix And Set 1 Physical with "createInventory": "Instance, Holding, Item" And Set 1 Electronic with "createInventory": "Instance, Holding" And Set one location "Location 1" And Save and open PO And Edit POL and change location on "Location 2" and increase Electronic quantity from 1 to 2 When Save and close POL Then Actual : 2 old pieces still there and 3 new pieces created with "Location 2" 1 old items still there and 1 new Physical items created with "Location 2" Expected : 2 Pieces for Electronic and 1 for Physical with "Location 2" 1 Old Items for Physical with "Location 1" still there Scenario 3: Given Create a POL for P/E mix And Set 1 Physical with "createInventory": "Instance, Holding, Item" And Set 1 Electronic with "createInventory": "Instance, Holding" And Set one location "Location 1" And Save and open PO And Receive 1 Physical piece And Edit POL and change location on "Location 2" and increase Physical quantity from 1 to 2 When Save and close POL Then Actual : 2 old pieces still there with "Location 1" and 3 new pieces created with "Location 2" 1 old items still there with "Location 1" and 1 new Physical items created with "Location 2" Expected : 1 Received Pieces for Physical with "Location 1" and 1 Expected for Physical with "Location 2" 1 Expected Pieces for Electronic with "Location 1" 1 Item for Physical with "Location 1" and 1 Item for Physical with "Location 2" |
...