echo |
Test of OISG Status
- Create a Sale Order with several shipgroup
- Create and process the shipments, Then verify the order and shipgroup status at every step of the process
- Create a Purchase Order with several shipgroup
- Create and process the shipments, Then verify the order and shipgroup status at every step of the process
|
|
open |
https://localhost:8443/catalog/control/setSessionLocale?newLocale=en |
|
open |
https://localhost:8443/catalog/control/logout |
|
type |
USERNAME |
admin |
type |
PASSWORD |
ofbiz |
clickAndWait |
//input[@value='Login'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9020 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9020')] |
|
click |
//img[@alt='Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9018 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9018')] |
|
click |
//img[@alt='Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9017 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9017')] |
|
click |
//img[@alt='Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9013 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9013')] |
|
click |
//img[@alt='Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9000 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9000')] |
|
click |
//img[@alt='Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
open |
https://localhost:8443/ordermgr/control/setSessionLocale?newLocale=en |
|
open |
https://localhost:8443/ordermgr/control/logout |
|
type |
USERNAME |
admin |
type |
PASSWORD |
ofbiz |
clickAndWait |
//input[@value='Login'] |
|
clickAndWait |
link=Order Entry |
|
select |
productStoreId |
label=OFBiz E-Commerce Store |
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
type |
add_product_id |
GZ-1000 |
type |
quantity |
8 |
click |
//img[@alt='Click here For Calendar'] |
|
click |
link=Now |
|
click |
link=OK |
|
clickAndWait |
//input[@value='Add To Order'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Finalize Order |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Create New Shipping Address |
|
type |
address1 |
rue du mail |
type |
city |
Angers |
type |
postalCode |
49100 |
select |
countryGeoId |
label=France |
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Shipping |
|
clickAndWait |
link=Create New Ship Group |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
type |
quantity_o_0 |
5 |
select |
toGroupIndex_o_0 |
label=Group Nbr 2 |
clickAndWait |
//input[@value='Submit'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
click |
0_shipping_method_NEXT_DAY@UPS |
|
click |
1_shipping_method_NEXT_DAY@UPS |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
click |
paymentMethodTypeAndId |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Create Order |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
verifyTextNotPresent |
Wait Approval |
|
clickAndWait |
link=Approve Order |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
verifyTextPresent |
Wait Approval |
|
verifyTextPresent |
Shipment Information - 00001 |
|
verifyTextPresent |
Shipment Information - 00002 |
|
storeValue |
orderId |
orderId |
open |
https://localhost:8443/facility/control/setSessionLocale?newLocale=en |
|
open |
https://localhost:8443/facility/control/logout |
|
type |
USERNAME |
admin |
type |
PASSWORD |
ofbiz |
clickAndWait |
//input[@value='Login'] |
|
clickAndWait |
link=Order |
|
clickAndWait |
link=${orderId} |
|
open |
javascript:document.createShipment_00002.submit() |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
storeValue |
shipmentId |
shipmentId |
clickAndWait |
link=Shipment Plan |
|
type |
findOrderItems_orderId |
${orderId} |
type |
findOrderItems_shipGroupSeqId |
00002 |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
verifyTextPresent |
GZ-1000 |
|
click |
//input[@name='submitButton' and @value='Add'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Processing prepare |
|
verifyTextPresent |
Current Processing prepare |
|
clickAndWait |
link=${shipmentId} |
|
clickAndWait |
link=Shipment Plan |
|
clickAndWait |
link=Shipment Plan --> Order Items |
|
type |
quantity_o_0 |
0 |
type |
quantity_o_1 |
5 |
click |
_rowSubmit_o_0 |
|
clickAndWait |
//input[@value='Issue All'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Prepared |
|
verifyTextPresent |
Current Processing prepare |
|
clickAndWait |
link=${shipmentId} |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Pick (Input) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Pack (Picked) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
select |
EditShipment_statusId |
label=Ship (Packed) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Sent |
|
clickAndWait |
link=${shipmentId} |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Deliver (Shipped) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Completed |
|
open |
javascript:document.createShipment_00001.submit() |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
storeValue |
shipmentId |
shipmentId2 |
clickAndWait |
link=Shipment Plan |
|
type |
findOrderItems_orderId |
${orderId} |
type |
findOrderItems_shipGroupSeqId |
00001 |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
type |
quantity_o_0 |
3 |
clickAndWait |
//input[@name='submitButton' and @value='Add'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Shipment Plan --> Order Items |
|
clickAndWait |
//input[@value='Issue All'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Prepared |
|
clickAndWait |
link=${shipmentId2} |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Pick (Input) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Pack (Picked) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
select |
EditShipment_statusId |
label=Ship (Packed) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Sent |
|
clickAndWait |
link=${shipmentId2} |
|
clickAndWait |
link=Edit |
|
select |
EditShipment_statusId |
label=Deliver (Shipped) |
clickAndWait |
submitButton |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId} |
|
verifyTextPresent |
Completed |
|
clickAndWait |
link=Order Entry |
|
select |
supplierPartyId |
label=[DemoSupplier] - Demo Supplier |
open |
javascript:document.poentryform.submit(); |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
type |
add_product_id |
GZ-1000 |
type |
quantity |
20 |
clickAndWait |
//input[@value='Add To Order'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Finalize Order |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
click |
0_shipping_contact_mech_id |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
click |
0_may_split |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Continue |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Create Order |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
storeValue |
orderId |
orderId2 |
clickAndWait |
link=Approve Order |
|
verifyTextPresent |
Wait Approval |
|
clickAndWait |
link=Receive |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
click |
shipmentId |
|
clickAndWait |
link=Receive Selected Shipment |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
storeValue |
shipmentIdReceived |
shipmentId3 |
type |
quantityAccepted_o_0 |
5 |
clickAndWait |
link=Receive Selected Product(s) |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
open |
https://localhost:8443/ordermgr/control/orderview?orderId=${orderId2} |
|
verifyTextPresent |
Processing receive |
|
open |
https://localhost:8443/facility/control/ViewShipment?shipmentId=${shipmentId3} |
|
clickAndWait |
link=Receive Against PO |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
type |
quantityAccepted_o_0 |
15 |
clickAndWait |
link=Receive Item(s) |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=View |
|
clickAndWait |
link=${orderId2} |
|
verifyTextPresent |
Completed |
|
clickAndWait |
link=Catalog |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9020 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9020')] |
|
type |
thruDate |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9018 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9018')] |
|
type |
thruDate |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9017 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9017')] |
|
type |
thruDate |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9013 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9013')] |
|
type |
thruDate |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|
clickAndWait |
link=Promos |
|
clickAndWait |
link=9000 |
|
clickAndWait |
//a[contains(@href, '/catalog/control/EditProductPromoStores?productPromoId=9000')] |
|
type |
thruDate |
|
clickAndWait |
//input[@value='Update'] |
|
assertElementNotPresent |
//div[@class='errorMessage'] |
|